Results 1 to 2 of 2
  1. #1

    PushConnException: java.io.EOFException

    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.

    Code:
    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:

    Code:
        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:
    Code:
    "http://someserver.myDomain.com:port user/pass"
    Does anyone know what may cause this kind of exception?

  2. #2
    Solved after an admin could give us server logs. Endpoint was supposed to be https.

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 07:09 AM.