I'm getting an exception trying to connect to a server from the android client. I have checked the firewall and I able to reach the endpoint.
com.myApp.app W/System.errīš com.lightstreamer.ls_client.PushConnException: java.io.EOFException
at com.lightstreamer.ls_client.HttpProvider.connectAndGetAnswer(HttpProvider.java:251)
at com.lightstreamer.ls_client.HttpProvider.doPost(HttpProvider.java:219)
at com.lightstreamer.ls_client.PushServerTranslator.callSession(PushServerTranslator.java:91)
at com.lightstreamer.ls_client.PushServerProxy.connectForSession(PushServerProxy.java:112)
at com.lightstreamer.ls_client.ServerManager.connect(ServerManager.java:101)
at com.lightstreamer.ls_client.LSClient.openConnection(LSClient.java:168)
at com.lightstreamer.ls_client.LSClient$1.run(LSClient.java:97)
Caused by: java.io.EOFException
at libcore.io.Streams.readAsciiLine(Streams.java:203)
at libcore.net.http.HttpEngine.readResponseHeaders(HttpEngine.java:560)
at libcore.net.http.HttpEngine.readResponse(HttpEngine.java:813)
at libcore.net.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:274)
at libcore.net.http.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:168)
at com.lightstreamer.ls_client.HttpProvider.connectAndGetAnswer(HttpProvider.java:244)
... 6 more
This is the connection code from the client:
public void start(int phase, LightstreamerListener listener)
throws PushConnException, PushServerException, PushUserException {
MyAppConnectionListener ls = new MyAppConnectionListener(listener, phase);
ConnectionInfo connInfo = new ConnectionInfo();
connInfo.pushServerUrl = mCfg.getHost();
connInfo.password = mCfg.getPassword();
connInfo.user = mCfg.getUser();
Log.d("Client","Starting host@ "+ mCfg.getHost() + "with user/pw:"+mCfg.getUser()+"/"+mCfg.getPassword());
client.openConnection(connInfo, ls);
}
The Log statement connection confirms that the values are set correctly:
"http://someserver.myDomain.com:port user/pass"
Does anyone know what may cause this kind of exception?