Results 1 to 3 of 3

Hybrid View

  1. #1
    Member
    Join Date
    Feb 2010
    Location
    Heidelberg
    Posts
    1

    FATAL EXCEPTION: Connection close activity

    Hi,

    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 org.apache.harmony.luni.internal.net.www.protocol. http.HttpURLConnectionImpl$ChunkedInputStream.read ChunkSize(HttpURLConnectionImpl.java:405)
    E/AndroidRuntime(26055): at org.apache.harmony.luni.internal.net.www.protocol. http.HttpURLConnectionImpl$ChunkedInputStream.skip OutstandingChunks(HttpURLConnectionImpl.java:377)
    E/AndroidRuntime(26055): at org.apache.harmony.luni.internal.net.www.protocol. http.HttpURLConnectionImpl$ChunkedInputStream.clos e(HttpURLConnectionImpl.java:349)
    E/AndroidRuntime(26055): at com.lightstreamer.ls_client.PushServerProxy$1.run( PushServerProxy.java:631)
    W/ActivityManager( 332): Force finishing activity com.lightstreamer.demo.android/.StockListDemo

    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.
    Thomas

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    972
    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
    Location
    Cesano Maderno, Italy
    Posts
    784
    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 http://www.lightstreamer.com/share/A...Demo_Basic.zip

    Any feedback is appreciated.

 

 

Similar Threads

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

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 11:28 PM.