Closed GoogleCodeExporter closed 8 years ago
It happens roughly 150 times / week on a 90 device base.
Original comment by teopscor...@gmail.com
on 20 May 2015 at 2:56
I'm not really sure where the problem happens, since AutoUpdateApk.java:396 in
my code points to totally different place, but if I understood your correctly,
you may try to fix the problem by replacing the problematic code with the
following:
} catch (ParseException e) {
final String msg = e.getMessage();
Log_e(TAG, msg != null ? msg : "Parse Exception");
} catch (ClientProtocolException e) {
final String msg = e.getMessage();
Log_e(TAG, msg != null ? msg : "Client Protocol Exception");
} catch (IOException e) {
final String msg = e.getMessage();
Log_e(TAG, msg != null ? msg : "IO Exception");
Original comment by lenik.terenin
on 30 May 2015 at 2:37
Indeed, the code in my app have slightly changed due to notifications
customizations and probably the IDE formatter.
The stack trace reported by my log tool (Mint Splunk) does'nt seems to fit with
the actual logcat. The actual problem logcat looks like below. I notice it
seems to be in correlation with the network communication and it appears to be
a problem caused by Mint trying to analyse the communication for reporting.
I just rolled out a new version of my app including the new version of the Mint
SDK. Will report my findings.
AutoUpdateApk V 4918 checking if there's update on the server
System.err W 4918 java.io.FileNotFoundException:
/data/data/com.teops.qsl.reac/files: open failed: EISDIR (Is a directory)
System.err W 4918 at libcore.io.IoBridge.open(IoBridge.java:416)
System.err W 4918 at
java.io.FileOutputStream.<init>(FileOutputStream.java:88)
System.err W 4918 at java.io.FileWriter.<init>(FileWriter.java:58)
System.err W 4918 at com.splunk.mint.DataSaver$1.run(DataSaver.java:51)
System.err W 4918 at java.lang.Thread.run(Thread.java:856)
System.err W 4918 at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
System.err W 4918 at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
System.err W 4918 at java.lang.Thread.run(Thread.java:856)
System.err W 4918 Caused by: libcore.io.ErrnoException: open failed: EISDIR
(Is a directory)
System.err W 4918 at libcore.io.Posix.open(Native Method)
System.err W 4918 at libcore.io.BlockGuardOs.open(BlockGuardOs.java:110)
System.err W 4918 at libcore.io.IoBridge.open(IoBridge.java:400)
System.err W 4918 ... 7 more
Mint I 4918 Could not read the Content-Length HTTP header value
System.err W 4918 java.io.FileNotFoundException:
/data/data/com.teops.qsl.reac/files: open failed: EISDIR (Is a directory)
System.err W 4918 at libcore.io.IoBridge.open(IoBridge.java:416)
System.err W 4918 at
java.io.FileOutputStream.<init>(FileOutputStream.java:88)
System.err W 4918 at java.io.FileWriter.<init>(FileWriter.java:58)
System.err W 4918 at com.splunk.mint.DataSaver$1.run(DataSaver.java:51)
System.err W 4918 at java.lang.Thread.run(Thread.java:856)
System.err W 4918 at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
System.err W 4918 at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
System.err W 4918 at java.lang.Thread.run(Thread.java:856)
System.err W 4918 Caused by: libcore.io.ErrnoException: open failed: EISDIR
(Is a directory)
System.err W 4918 at libcore.io.Posix.open(Native Method)
System.err W 4918 at libcore.io.BlockGuardOs.open(BlockGuardOs.java:110)
System.err W 4918 at libcore.io.IoBridge.open(IoBridge.java:400)
System.err W 4918 ... 7 more
System.err W 4918 com.splunk.mint.network.util.DelegationException:
java.net.SocketException: shutdown failed: EBADF (Bad file number)
System.err W 4918 at
com.splunk.mint.network.util.Delegator.invoke0(Delegator.java:62)
System.err W 4918 at
com.splunk.mint.network.util.Delegator.invoke(Delegator.java:45)
System.err W 4918 at
com.splunk.mint.network.socket.MonitoringSocketImpl.shutdownOutput(MonitoringSoc
ketImpl.java:369)
System.err W 4918 at java.net.Socket.shutdownOutput(Socket.java:628)
System.err W 4918 at
org.apache.http.impl.SocketHttpClientConnection.close(SocketHttpClientConnection
.java:195)
System.err W 4918 at
org.apache.http.impl.conn.DefaultClientConnection.close(DefaultClientConnection.
java:161)
System.err W 4918 at
org.apache.http.impl.conn.AbstractPooledConnAdapter.close(AbstractPooledConnAdap
ter.java:158)
System.err W 4918 at
org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:12
5)
System.err W 4918 at
org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirecto
r.java:428)
System.err W 4918 at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:6
70)
System.err W 4918 at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:5
09)
System.err W 4918 at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:4
87)
System.err W 4918 at
com.teops.tools.update.AutoUpdateApk$checkUpdateTask.doInBackground(AutoUpdateAp
k.java:358)
System.err W 4918 at
com.teops.tools.update.AutoUpdateApk$checkUpdateTask.doInBackground(AutoUpdateAp
k.java:1)
System.err W 4918 at android.os.AsyncTask$2.call(AsyncTask.java:287)
System.err W 4918 at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
System.err W 4918 at java.util.concurrent.FutureTask.run(FutureTask.java:137)
System.err W 4918 at
android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:230)
System.err W 4918 at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
System.err W 4918 at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
System.err W 4918 at java.lang.Thread.run(Thread.java:856)
System.err W 4918 Caused by: java.net.SocketException: shutdown failed: EBADF
(Bad file number)
System.err W 4918 at
java.net.PlainSocketImpl.shutdownOutput(PlainSocketImpl.java:381)
System.err W 4918 at java.lang.reflect.Method.invokeNative(Native Method)
System.err W 4918 at java.lang.reflect.Method.invoke(Method.java:511)
System.err W 4918 at
com.splunk.mint.network.util.Delegator.invoke0(Delegator.java:56)
System.err W 4918 ... 20 more
System.err W 4918 Caused by: libcore.io.ErrnoException: shutdown failed:
EBADF (Bad file number)
System.err W 4918 at libcore.io.Posix.shutdown(Native Method)
System.err W 4918 at libcore.io.ForwardingOs.shutdown(ForwardingOs.java:116)
System.err W 4918 at
java.net.PlainSocketImpl.shutdownOutput(PlainSocketImpl.java:379)
System.err W 4918 ... 23 more
System.err W 4918 com.splunk.mint.network.util.DelegationException:
java.net.SocketException: shutdown failed: EBADF (Bad file number)
System.err W 4918 at
com.splunk.mint.network.util.Delegator.invoke0(Delegator.java:62)
System.err W 4918 at
com.splunk.mint.network.util.Delegator.invoke(Delegator.java:45)
System.err W 4918 at
com.splunk.mint.network.socket.MonitoringSocketImpl.shutdownInput(MonitoringSock
etImpl.java:357)
System.err W 4918 at java.net.Socket.shutdownInput(Socket.java:609)
System.err W 4918 at
org.apache.http.impl.SocketHttpClientConnection.close(SocketHttpClientConnection
.java:199)
System.err W 4918 at
org.apache.http.impl.conn.DefaultClientConnection.close(DefaultClientConnection.
java:161)
System.err W 4918 at
org.apache.http.impl.conn.AbstractPooledConnAdapter.close(AbstractPooledConnAdap
ter.java:158)
System.err W 4918 at
org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:12
5)
System.err W 4918 at
org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirecto
r.java:428)
System.err W 4918 at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:6
70)
System.err W 4918 at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:5
09)
System.err W 4918 at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:4
87)
System.err W 4918 at
com.teops.tools.update.AutoUpdateApk$checkUpdateTask.doInBackground(AutoUpdateAp
k.java:358)
System.err W 4918 at
com.teops.tools.update.AutoUpdateApk$checkUpdateTask.doInBackground(AutoUpdateAp
k.java:1)
System.err W 4918 at android.os.AsyncTask$2.call(AsyncTask.java:287)
System.err W 4918 at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
System.err W 4918 at java.util.concurrent.FutureTask.run(FutureTask.java:137)
System.err W 4918 at
android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:230)
System.err W 4918 at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
System.err W 4918 at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
System.err W 4918 at java.lang.Thread.run(Thread.java:856)
System.err W 4918 Caused by: java.net.SocketException: shutdown failed: EBADF
(Bad file number)
System.err W 4918 at
java.net.PlainSocketImpl.shutdownInput(PlainSocketImpl.java:369)
System.err W 4918 at java.lang.reflect.Method.invokeNative(Native Method)
System.err W 4918 at java.lang.reflect.Method.invoke(Method.java:511)
System.err W 4918 at
com.splunk.mint.network.util.Delegator.invoke0(Delegator.java:56)
System.err W 4918 ... 20 more
System.err W 4918 Caused by: libcore.io.ErrnoException: shutdown failed:
EBADF (Bad file number)
System.err W 4918 at libcore.io.Posix.shutdown(Native Method)
System.err W 4918 at libcore.io.ForwardingOs.shutdown(ForwardingOs.java:116)
System.err W 4918 at
java.net.PlainSocketImpl.shutdownInput(PlainSocketImpl.java:367)
System.err W 4918 ... 23 more
AutoUpdateApk V 4918 update check finished in 4193ms
System.err W 4918 java.io.FileNotFoundException:
/data/data/com.teops.qsl.reac/files: open failed: EISDIR (Is a directory)
System.err W 4918 at libcore.io.IoBridge.open(IoBridge.java:416)
System.err W 4918 at
java.io.FileOutputStream.<init>(FileOutputStream.java:88)
System.err W 4918 at java.io.FileWriter.<init>(FileWriter.java:58)
System.err W 4918 at com.splunk.mint.DataSaver$1.run(DataSaver.java:51)
System.err W 4918 at java.lang.Thread.run(Thread.java:856)
System.err W 4918 at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
System.err W 4918 at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
System.err W 4918 at java.lang.Thread.run(Thread.java:856)
System.err W 4918 Caused by: libcore.io.ErrnoException: open failed: EISDIR
(Is a directory)
System.err W 4918 at libcore.io.Posix.open(Native Method)
System.err W 4918 at libcore.io.BlockGuardOs.open(BlockGuardOs.java:110)
System.err W 4918 at libcore.io.IoBridge.open(IoBridge.java:400)
System.err W 4918 ... 7 more
dalvikvm W 4918 threadid=12: thread exiting with uncaught exception
(group=0x41184438)
Original comment by guillaum...@gmail.com
on 1 Jun 2015 at 1:19
Original issue reported on code.google.com by
teopscor...@gmail.com
on 20 May 2015 at 2:55