由于用户名或密码错误导致Eclipse关闭

时间:2012-06-25 12:03:44

标签: java windows eclipse java-ee

当我尝试启动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.

2 个答案:

答案 0 :(得分:0)

你有一个Eclipse的Glassfish插件。它正在尝试连接到服务器的管理端口,但配置错误。消息“用户名或密码错误”是插件代码从返回HTTP错误502的服务器推断出来的,但该错误与错误的用户名/密码无关,至少不是很明显。

答案 1 :(得分:0)

我建议你从eclipse中为this.uninstall Glassfish建议一个非常简单的解决方案并重新安装。现在安装时,当glassfish安装程序要求你输入username:admin的密码时,请输入密码或者放入密码“admin”作为密码。我希望你不要清空密码字段。
现在当你运行服务器时,它会询问你的用户名和密码,你应该给那个用户名和密码
当我遇到这个问题时,它对我有用:)