getlantern/lantern — Issue #165: Failure to connect treated as bad credentials
Author: forkner
Created: 2012-02-10 15:35:34+00:00
State: open

Failed to connect, erased password in the frontend as a result. It did take some time to fail, so I'm not sure if it maxed out in retries or just timed out once.

```
22256 2012-02-10 10:23:22,440 INFO [qtp791081732-100] xmpp.ControlXmppP2PClient.createSocket (ControlXmppP2PClient.java:955) - Socket connected
22435 2012-02-10 10:23:22,619 INFO [qtp791081732-100] xmpp.ControlXmppP2PClient.newConnection (ControlXmppP2PClient.java:976) - Connection is Secure: true
22436 2012-02-10 10:23:22,620 INFO [qtp791081732-100] xmpp.ControlXmppP2PClient.newConnection (ControlXmppP2PClient.java:977) - Connection is TLS: true
java.io.EOFException: input contained no data
at org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:3003)
at org.xmlpull.mxp1.MXParser.more(MXParser.java:3046)
at org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1410)
at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1395)
at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093)
at org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java:325)
at org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:43)
at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:70)
52444 2012-02-10 10:23:52,628 INFO [qtp791081732-100] xmpp.ControlXmppP2PClient.newConnection (ControlXmppP2PClient.java:981) - Credentials error!
No response from the server.:
at org.jivesoftware.smack.NonSASLAuthentication.authenticate(NonSASLAuthentication.java:73)
at org.jivesoftware.smack.SASLAuthentication.authenticate(SASLAuthentication.java:352)
at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:203)
at org.littleshoot.commom.xmpp.ControlXmppP2PClient.newConnection(ControlXmppP2PClient.java:979)
at org.littleshoot.commom.xmpp.ControlXmppP2PClient.singleXmppConnection(ControlXmppP2PClient.java:967)
at org.littleshoot.commom.xmpp.ControlXmppP2PClient.persistentXmppConnection(ControlXmppP2PClient.java:887)
at org.littleshoot.commom.xmpp.ControlXmppP2PClient.login(ControlXmppP2PClient.java:328)
at org.lantern.DefaultXmppHandler.connect(DefaultXmppHandler.java:233)
at org.lantern.DefaultXmppHandler.connect(DefaultXmppHandler.java:180)
at org.lantern.DefaultSettingsChangeImplementor.setGetMode(DefaultSettingsChangeImplementor.java:140)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.commons.beanutils.PropertyUtilsBean.invokeMethod(PropertyUtilsBean.java:2170)
at org.apache.commons.beanutils.PropertyUtilsBean.setSimpleProperty(PropertyUtilsBean.java:2151)
at org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(PropertyUtils.java:890)
at org.lantern.DefaultLanternApi.setProperty(DefaultLanternApi.java:350)
at org.lantern.DefaultLanternApi.changeSetting(DefaultLanternApi.java:329)
at org.lantern.DefaultLanternApi.changeSetting(DefaultLanternApi.java:324)
at org.lantern.DefaultLanternApi.changeSetting(DefaultLanternApi.java:319)
at org.lantern.DefaultLanternApi.changeSetting(DefaultLanternApi.java:314)
at org.lantern.DefaultLanternApi.changeSetting(DefaultLanternApi.java:300)
at org.lantern.JettyLauncher$1SettingsServlet.processRequest(JettyLauncher.java:135)
at org.lantern.JettyLauncher$1SettingsServlet.doPost(JettyLauncher.java:130)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:546)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:479)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:225)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1031)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:406)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:965)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111)
at org.eclipse.jetty.server.Server.handle(Server.java:349)
at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:449)
at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:910)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:634)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:230)
at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:76)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:611)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:45)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:599)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:534)
at java.lang.Thread.run(Thread.java:680)
52448 2012-02-10 10:23:52,632 INFO [qtp791081732-100] lantern.SystemTrayImpl.onConnectivityStateChanged (SystemTrayImpl.java:212) - Got connectivity state changed DISCONNECTED
52449 2012-02-10 10:23:52,633 INFO [qtp791081732-100] lantern.DefaultSettingsChangeImplementor.setGetMode (DefaultSettingsChangeImplementor.java:150) - Could not login
java.io.IOException: Could not log in?
at org.littleshoot.commom.xmpp.ControlXmppP2PClient.persistentXmppConnection(ControlXmppP2PClient.java:913)
at org.littleshoot.commom.xmpp.ControlXmppP2PClient.login(ControlXmppP2PClient.java:328)
at org.lantern.DefaultXmppHandler.connect(DefaultXmppHandler.java:233)
at org.lantern.DefaultXmppHandler.connect(DefaultXmppHandler.java:180)
at org.lantern.DefaultSettingsChangeImplementor.setGetMode(DefaultSettingsChangeImplementor.java:140)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.commons.beanutils.PropertyUtilsBean.invokeMethod(PropertyUtilsBean.java:2170)
at org.apache.commons.beanutils.PropertyUtilsBean.setSimpleProperty(PropertyUtilsBean.java:2151)
at org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(PropertyUtils.java:890)
at org.lantern.DefaultLanternApi.setProperty(DefaultLanternApi.java:350)
at org.lantern.DefaultLanternApi.changeSetting(DefaultLanternApi.java:329)
at org.lantern.DefaultLanternApi.changeSetting(DefaultLanternApi.java:324)
at org.lantern.DefaultLanternApi.changeSetting(DefaultLanternApi.java:319)
at org.lantern.DefaultLanternApi.changeSetting(DefaultLanternApi.java:314)
at org.lantern.DefaultLanternApi.changeSetting(DefaultLanternApi.java:300)
at org.lantern.JettyLauncher$1SettingsServlet.processRequest(JettyLauncher.java:135)
at org.lantern.JettyLauncher$1SettingsServlet.doPost(JettyLauncher.java:130)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:546)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:479)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:225)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1031)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:406)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:965)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111)
at org.eclipse.jetty.server.Server.handle(Server.java:349)
at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:449)
at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:910)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:634)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:230)
at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:76)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:611)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:45)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:599)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:534)
at java.lang.Thread.run(Thread.java:680)
```