I am getting error Wrong username or password when I try to start Eclipse. I checked logs and found this exception. I am unable to understand.
!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.
Let me suggest you a very simple solution for this.uninstall
Glassfishfrom your eclipse and reinstall.Now While installation , when glassfish installer ask you for password forusername:adminthen put a password or just put “admin” as a password.I want you ti not empty the password field.Now when you will run the server ,it will ask you for the username and apssword and you should giver there that username and password
It worked for me when I got this problem 🙂