dato
I'm a android developer, and recently i get so many crash like that:
07-06 16:28:19.166: ERROR/AndroidRuntime(1450): Uncaught handler:
thread Notifications queue exiting due to uncaught exception
07-06 16:28:19.196: ERROR/AndroidRuntime(1450):
java.util.concurrent.RejectedExecutionException
07-06 16:28:19.196: ERROR/AndroidRuntime(1450): at
java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:1464)
07-06 16:28:19.196: ERROR/AndroidRuntime(1450): at
java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:381)
07-06 16:28:19.196: ERROR/AndroidRuntime(1450): at
java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:854)
07-06 16:28:19.196: ERROR/AndroidRuntime(1450): at
java.util.concurrent.Executors$DelegatedExecutorService.execute(Executors.java:592)
07-06 16:28:19.196: ERROR/AndroidRuntime(1450): at
com.lightstreamer.ls_client.ExtConnectionListener.onConnectTimeout(ExtConnectionListener.java:169)
07-06 16:28:19.196: ERROR/AndroidRuntime(1450): at
com.lightstreamer.ls_client.MyServerListener$11.run(MyServerListener.java:265)
07-06 16:28:19.196: ERROR/AndroidRuntime(1450): at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:648)
07-06 16:28:19.196: ERROR/AndroidRuntime(1450): at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:673)
07-06 16:28:19.196: ERROR/AndroidRuntime(1450): at
java.lang.Thread.run(Thread.java:1060)
so, i want know why that crash happen, and how to avoid that.
Thanks!
Dario Crivelli
We can confirm that there is a bug in LS library.
However, the bug should be harmless and should only cause the exception to be printed, with no other side effect.
What do you mean by "crash"? If you see that your application closes as a consequence of the above exception, then the case should be analyzed in more depth.
Anyway, the bug will be fixed by the next release of the Java Client Library.
thomas.renger@gmail.com
Hi,
we have the same problem and need a bugfix as soon as possible :Smile_Ab: 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.readChunkSize(HttpURLConnectionImpl.java:405)
E/AndroidRuntime(26055): at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl$ChunkedInputStream.skipOutstandingChunks(HttpURLConnectionImpl.java:377)
E/AndroidRuntime(26055): at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl$ChunkedInputStream.close(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