2012-06-25 66 views
-1

我收到错误错误的用户名或密码当我尝试启动Eclipse时。我检查了日志,发现这个异常。我无法理解。
由于用户名或密码错误导致启动错误后关闭Eclipse

!SESSION 2012-06-25 16:57:53.716 ----------------------------------------------- 
eclipse.buildId=M20110909-1335 
java.version=1.7.0_03 
java.vendor=Oracle Corporation 
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US 
Framework arguments: -product org.eclipse.epp.package.jee.product 
Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.jee.product 

!ENTRY oracle.eclipse.tools.glassfish 4 1 2012-06-25 16:58:16.428 
!MESSAGE GlassFish: error 
!STACK 0 
java.io.IOException: Server returned HTTP response code: 502 for URL: http://localhost:9249/__asadmin/__locations 
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) 
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) 
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) 
    at java.lang.reflect.Constructor.newInstance(Unknown Source) 
    at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source) 
    at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source) 
    at java.security.AccessController.doPrivileged(Native Method) 
    at sun.net.www.protocol.http.HttpURLConnection.getChainedException(Unknown Source) 
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) 
    at com.sun.enterprise.jst.server.sunappsrv.commands.CommandRunner.handleReceive(CommandRunner.java:755) 
    at com.sun.enterprise.jst.server.sunappsrv.commands.CommandRunner.call(CommandRunner.java:639) 
    at com.sun.enterprise.jst.server.sunappsrv.commands.CommandRunner.call(CommandRunner.java:1) 
    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) 
    at java.util.concurrent.FutureTask.run(Unknown Source) 
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 
    at java.lang.Thread.run(Unknown Source) 
Caused by: java.io.IOException: Server returned HTTP response code: 502 for URL: http://localhost:9249/__asadmin/__locations 
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) 
    at java.net.HttpURLConnection.getResponseCode(Unknown Source) 
    at com.sun.enterprise.jst.server.sunappsrv.commands.CommandRunner.call(CommandRunner.java:611) 
    ... 6 more 

!ENTRY oracle.eclipse.tools.glassfish 4 150 2012-06-25 16:58:16.428 
!MESSAGE Wrong user name or password. 

回答

0

让我建议你从你的Eclipse和reinstall.Now为this.uninstall Glassfish一个非常简单的解决方案,同时安装,当GlassFish的安装程序询问您的密码username:admin然后把密码或干脆把“admin”作为密码。我希望你不要清空密码栏。
现在当你运行服务器时,它会询问你的用户名和密码,你应该在那里给出那个用户名和密码
当我得到这个问题时它对我有用:)

0

您有Eclipse的Glassfish插件。它试图连接到服务器的管理端口,但配置错误。消息“错误的用户名或密码”是插件代码从服务器返回的HTTP错误502中推导出的结果,但该错误与错误的用户名/密码无关,至少不明显。

+0

Thnx mark,那我该怎么办现在? – khan

+0

我不熟悉那个eclipse插件。该插件发生故障是因为它不应该仅仅因为它未能初始化就关闭Eclipse。由于您现在无法启动Eclipse并重新配置。您是否尝试使用谷歌搜索“eclipse glassfish http 502”? –

+1

哈哈,我刚刚做了,第一次打的就是这个帖子!男孩,是Google快速:) –

相关问题