Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2010

    FATAL EXCEPTION: Connection close activity


    we have the same problem and need a bugfix as soon as possible because we are running out of time.

    We are implementing an android app at the moment and there is an problem if the phone is losing it connectivity or the phone is switching from 3g to wifi or smething like this.

    We've tested the some szenario with your demo app, same problem:

    E/AndroidRuntime(26055): FATAL EXCEPTION: Connection close activity
    E/AndroidRuntime(26055): java.lang.NullPointerException
    E/AndroidRuntime(26055): at http.HttpURLConnectionImpl$ ChunkSize(
    E/AndroidRuntime(26055): at http.HttpURLConnectionImpl$ChunkedInputStream.skip OutstandingChunks(
    E/AndroidRuntime(26055): at http.HttpURLConnectionImpl$ChunkedInputStream.clos e(
    E/AndroidRuntime(26055): at com.lightstreamer.ls_client.PushServerProxy$
    W/ActivityManager( 332): Force finishing activity

    We've already gave the app to selected user group and this is a common scenario. May you can help us?

    Thank you in advance.

  2. #2
    Join Date
    Jul 2006
    We also have found a similar issue, that we have identified as a bug in the Android base libraries for specific environments.
    We observed that when a socket is forcibly closed by the application while data is still being received, a syntax-related exception can be issued either to the invocation of close() or to the currently blocked invocation of read().
    Your case seems to be a variant of the one we got to know.

    We are implementing workarounds for these issues in the java client library, to be available upon the next release of LS.
    Our online Android demo, whose resources can be found here, is based on a more recent version of the java client library and we may apply new workarounds on that library sooner.
    The latter library is compatible with Server version 3.6 as long as the SendMessage support is not used and may be used as an unsupported preview of the fixed library.

  3. #3
    Power Member
    Join Date
    Jul 2006
    Cesano Maderno, Italy
    Hi Thomas,

    we've released an update to the android lib that should solve your issue.
    The library is not yet officially released so that it is not available in our standard distribution package, btw you can find a copy of the new jar with the sources of our android demo located at

    Any feedback is appreciated.



Similar Threads

  1. How to close Session in LS?
    By spganesh in forum Client SDKs
    Replies: 1
    Last Post: February 10th, 2010, 10:23 AM
  2. Suspend when close IE
    By skidrow406 in forum Client SDKs
    Replies: 4
    Last Post: March 11th, 2008, 05:32 PM


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 01:45 PM.