0 Replies Latest reply: Feb 25, 2011 1:37 PM by Manfred Moser RSS

Android resource bug

Manfred Moser Newbie

Hi!

 

Running my Android application with webtrends integration and the Android debug tool StrictMode enabled I get the following stack trace below. Please refer to http://www.simpligility.com/2011/01/android-strictmode-for-all-platform-versions/ to figure out how to do that for your app and testing purposes..

 

It seems like you are not closing the connection properly. Can you please fix this with the next release? When is that going to be btw?

 

manfred

 

E/StrictMode( 1331): A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks.

E/StrictMode( 1331): java.lang.Throwable: Explicit termination method 'close' not called

E/StrictMode( 1331):    at dalvik.system.CloseGuard.open(CloseGuard.java:187)

E/StrictMode( 1331):    at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:371)

E/StrictMode( 1331):    at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:323)

E/StrictMode( 1331):    at org.apache.harmony.luni.internal.net.www.protocol.http.HttpConnection.setupSecureSocket(HttpConnection.java:167)

E/StrictMode( 1331):    at org.apache.harmony.luni.internal.net.www.protocol.https.HttpsURLConnectionImpl$HttpsEngine.makeSslConnection(HttpsURLConnectionImpl.java:479)

E/StrictMode( 1331):    at org.apache.harmony.luni.internal.net.www.protocol.https.HttpsURLConnectionImpl$HttpsEngine.makeConnection(HttpsURLConnectionImpl.java:419)

E/StrictMode( 1331):    at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:217)

E/StrictMode( 1331):    at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:624)

E/StrictMode( 1331):    at org.apache.harmony.luni.internal.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:293)

E/StrictMode( 1331):    at com.webtrends.mobile.analytics.WebtrendsTransmitTask.sendData(Unknown Source)

E/StrictMode( 1331):    at com.webtrends.mobile.analytics.WebtrendsTransmitTask.call(Unknown Source)

E/StrictMode( 1331):    at com.webtrends.mobile.analytics.WebtrendsTransmitTask.call(Unknown Source)

E/StrictMode( 1331):    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)

E/StrictMode( 1331):    at java.util.concurrent.FutureTask.run(FutureTask.java:137)

E/StrictMode( 1331):    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1081)

E/StrictMode( 1331):    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:574)

E/StrictMode( 1331):    at java.lang.Thread.run(Thread.java:1020)