Status: New
Owner:
wonder...@google.com
Labels: Type-Defect Priority-Medium
New issue 869 by
davidpbr...@gmail.com: EOFException when performing request
http://code.google.com/p/google-api-java-client/issues/detail?id=869
Version of google-api-java-client : google-http-client-1.17.0-rc
Java environment: Android 4.3
Describe the problem.
During certain requests I receive the following:
04-09 12:52:31.937 I/ApiClient REQUEST: POST : /api/stream/start body:
{
"mediaType" : {
"parameters" : {
"charset" : "UTF-8"
},
"subType" : "x-www-form-urlencoded",
"type" : "application",
"charsetParameter" : "java.nio.charset.CharsetICU[UTF-8]"
},
"data" : {
"uuid" : "6ecd6zd8-0452-4ff9-96be-341d8168d7a9",
"private" : false,
"title" : "04/09/2014 12:52 PM",
"description" : "Example Description",
"extra_info" : "{'foo': 'bar'}"
},
"length" : 159,
"type" : "application/x-www-form-urlencoded; charset=UTF-8"
}
04-09 12:52:32.107 W/ApiClient Unhandled Error: java.io.EOFException
cannot be cast to com.google.api.client.http.HttpResponseException. Stack
trace follows:
04-09 12:52:32.107 W/System.err﹕ java.io.EOFException
04-09 12:52:32.117 W/System.err﹕ at
libcore.io.Streams.readAsciiLine(Streams.java:203)
04-09 12:52:32.117 W/System.err﹕ at
libcore.net.http.HttpEngine.readResponseHeaders(HttpEngine.java:579)
04-09 12:52:32.117 W/System.err﹕ at
libcore.net.http.HttpEngine.readResponse(HttpEngine.java:827)
04-09 12:52:32.127 W/System.err﹕ at
libcore.net.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:283)
04-09 12:52:32.137 W/System.err﹕ at
libcore.net.http.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:497)
04-09 12:52:32.147 W/System.err﹕ at
libcore.net.http.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:134)
04-09 12:52:32.147 W/System.err﹕ at
com.google.api.client.http.javanet.NetHttpResponse.<init>(NetHttpResponse.java:36)
04-09 12:52:32.147 W/System.err﹕ at
com.google.api.client.http.javanet.NetHttpRequest.execute(NetHttpRequest.java:94)
04-09 12:52:32.147 W/System.err﹕ at
com.google.api.client.http.HttpRequest.execute(HttpRequest.java:965)
04-09 12:52:32.157 W/System.err﹕ at
io.kickflip.sdk.api.KickflipApiClient.request(KickflipApiClient.java:367)
04-09 12:52:32.157 W/System.err﹕ at
io.kickflip.sdk.api.KickflipApiClient.access$300(KickflipApiClient.java:43)
04-09 12:52:32.157 W/System.err﹕ at
io.kickflip.sdk.api.KickflipApiClient$3.onSuccess(KickflipApiClient.java:342)
04-09 12:52:32.157 W/System.err﹕ at
io.kickflip.sdk.api.OAuthClient$1.run(OAuthClient.java:103)
04-09 12:52:32.157 W/System.err﹕ at
java.lang.Thread.run(Thread.java:841)
How would you expect it to be fixed?
Group consensus on StackOverflow seems to suggest this is due to connection
recycling. Setting a property on the HttpUrlConnection may address this
issue:
see
http://stackoverflow.com/questions/15411213/android-httpsurlconnection-eofexception
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings