-
Notifications
You must be signed in to change notification settings - Fork 453
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CloseGuard error after EOFException #116
Comments
From rmis...@google.com on May 21, 2012 11:05:54 The fix for this is to call response.disconnect / response.close in HttpResponseException(HttpResponse, String message). But this can only be done after we update all internal references to that deprecated method and delete HttpResponse.getResponse. |
From rmis...@google.com on May 31, 2012 08:10:23 http://codereview.appspot.com/6225045/ Status: Fixed |
From alexey.v...@gmail.com on September 26, 2012 02:16:35 I still get the same error in last version of library |
From yan...@google.com on September 26, 2012 04:04:29 Can you please provide a stack trace? Thanks! Status: RequestedFeedback |
From alexey.v...@gmail.com on October 09, 2012 22:07:26 Sorry for late response. Im using 1.11.0-beta java.io.EOFException |
From alexey.v...@gmail.com on October 11, 2012 10:01:39 Is there any way how i can fix it? May be I should use some sort of close stream method? |
From alexey.v...@gmail.com on October 15, 2012 03:40:36 I've ensured that i always call response.disconnect after using it. But error is still there. |
From yiyuanh...@gmail.com on October 15, 2012 08:46:26 I got the same problem : my code as follows :
|
From yan...@google.com on October 16, 2012 05:43:39 Status: Accepted |
From yiyuanh...@gmail.com on October 16, 2012 06:34:05 I found that , I give the wrong url , which case the error happen ; while I change , it works well now ! |
From yan...@google.com on October 30, 2012 07:39:31 Cc: ngmic...@google.com |
From andy.den...@gmail.com on November 01, 2012 07:40:21 I'm seeing a very similar (maybe same?) issue with StrictMode enabled for Android, in conjunction with AdMob. This happens with every ad refresh: 11-01 14:38:45.081: E/StrictMode(1657): A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks. |
From andy.den...@gmail.com on November 01, 2012 07:44:02 FYI, here's a fix that the Square team made: https://github.com/square/okhttp/pull/24/files |
From yan...@google.com on November 01, 2012 14:29:18 Labels: -Milestone-Version1.12.0 Milestone-Version1.13.0 |
From sebastia...@gmail.com on November 01, 2012 20:22:51 Perhaps related to http://stackoverflow.com/questions/13182519/spring-rest-template-usage-causes-eofexception - which creates EOFExceptions |
From alexey.v...@gmail.com on November 05, 2012 05:22:57 This is defenetly somehow connected with keepAlive connections. When I use: System.setProperty("http.keepAlive", "false"); problems disappears. But from my understanding keep alive connections are greatly increase performance so it is better not to disable them. Im also awere that keep alive should be disabled for old versions, but my device is Jelly Bean. |
From yan...@google.com on December 11, 2012 05:24:48 Labels: -Priority-Critical -Milestone-Version1.13.0 Priority-High |
From supp...@stacktype.com on April 18, 2013 11:35:39 I am using cloud endpoints and face this error, Jars used 04-17 23:34:48.526: W/AbstractGoogleClient(27540): Application name is not set. Call Builder#setApplicationName. |
From itop...@gmail.com on October 11, 2013 00:37:38 I got this in Android 4.2 W/System.err(26908): java.io.EOFException |
From deepesh...@gmail.com on April 21, 2014 02:07:25 I got this in Android 4.4 java.util.concurrent.TimeoutException: com.android.internal.os.BinderInternal$GcWatcher.finalize() timed out after 10 seconds |
if (Build.VERSION.SDK != null |
* Update release process for Javadoc update * Add copyright and license
From yan...@google.com on May 19, 2012 07:09:00
Version of google-http-java-client (e.g. 1.5.0-beta)? 1.9.0-beta Java environment (e.g. Java 6, Android 2.3, App Engine)? Android Describe the problem. Reported by aalbert:
When this exception is thrown:
05-18 16:18:10.546 895 1825 E App: java.io.EOFException
05-18 16:18:10.546 895 1825 E App: at libcore.io.Streams.readAsciiLine(Streams.java:203)
05-18 16:18:10.546 895 1825 E App: at libcore.net.http.HttpEngine.readResponseHeaders(HttpEngine.java:582)
05-18 16:18:10.546 895 1825 E App: at libcore.net.http.HttpEngine.readResponse(HttpEngine.java:836)
05-18 16:18:10.546 895 1825 E App: at libcore.net.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:274)
05-18 16:18:10.546 895 1825 E App: at libcore.net.http.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:486)
05-18 16:18:10.546 895 1825 E App: at libcore.net.http.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:134)
05-18 16:18:10.546 895 1825 E App: at com.google.api.client.http.javanet.NetHttpResponse.(NetHttpResponse.java:37)
05-18 16:18:10.546 895 1825 E App: at com.google.api.client.http.javanet.NetHttpRequest.execute(NetHttpRequest.java:89)
05-18 16:18:10.546 895 1825 E App: at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:814)
05-18 16:18:10.546 895 1825 E App: at com.google.api.client.googleapis.json.GoogleJsonResponseException.execute(GoogleJsonResponseException.java:182)
05-18 16:18:10.546 895 1825 E App: at com.google.api.client.googleapis.services.GoogleClient.executeUnparsed(GoogleClient.java:115)
05-18 16:18:10.546 895 1825 E App: at com.google.api.client.http.json.JsonHttpRequest.executeUnparsed(JsonHttpRequest.java:112)
The underlying connection is not closed properly and we get a CloseGuard error:
05-18 16:19:10.343 895 904 E StrictMode: at dalvik.system.CloseGuard.open(CloseGuard.java:184)
05-18 16:19:10.343 895 904 E StrictMode: at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:287)
05-18 16:19:10.343 895 904 E StrictMode: at libcore.net.http.HttpConnection.setupSecureSocket(HttpConnection.java:210)
05-18 16:19:10.343 895 904 E StrictMode: at libcore.net.http.HttpsURLConnectionImpl$HttpsEngine.makeSslConnection(HttpsURLConnectionImpl.java:478)
05-18 16:19:10.343 895 904 E StrictMode: at libcore.net.http.HttpsURLConnectionImpl$HttpsEngine.connect(HttpsURLConnectionImpl.java:433)
05-18 16:19:10.343 895 904 E StrictMode: at libcore.net.http.HttpEngine.sendSocketRequest(HttpEngine.java:293)
05-18 16:19:10.343 895 904 E StrictMode: at libcore.net.http.HttpEngine.sendRequest(HttpEngine.java:243)
05-18 16:19:10.343 895 904 E StrictMode: at libcore.net.http.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:80)
05-18 16:19:10.343 895 904 E StrictMode: at libcore.net.http.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:165)
05-18 16:19:10.343 895 904 E StrictMode: at com.google.api.client.http.javanet.NetHttpRequest.execute(NetHttpRequest.java:88) How would you expect it to be fixed? No CloseGuard error.
Original issue: http://code.google.com/p/google-http-java-client/issues/detail?id=116
The text was updated successfully, but these errors were encountered: