BaijnathG / mytracks

Automatically exported from code.google.com/p/mytracks
0 stars 0 forks source link

Not closing connections #283

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Try to send to fusion tables
2. Crash  Seems like we are not properly closing connections. 
01-27 18:05:17.636 W/SingleClientConnManager(31781): Invalid use of 
SingleClientConnManager: connection still allocated.
01-27 18:05:17.636 W/SingleClientConnManager(31781): Make sure to release the 
connection before allocating another one.
01-27 18:05:17.664 E/MyTracks(31781): Exception
01-27 18:05:17.664 E/MyTracks(31781): java.net.SocketException: Socket closed
01-27 18:05:17.664 E/MyTracks(31781): at 
org.apache.harmony.luni.platform.OSNetworkSystem.read(Native Method)
01-27 18:05:17.664 E/MyTracks(31781): at 
dalvik.system.BlockGuard$WrappedNetworkSystem.read(BlockGuard.java:273)
01-27 18:05:17.664 E/MyTracks(31781): at 
org.apache.harmony.luni.net.PlainSocketImpl.read(PlainSocketImpl.java:458)
01-27 18:05:17.664 E/MyTracks(31781): at 
org.apache.harmony.luni.net.SocketInputStream.read(SocketInputStream.java:85)
01-27 18:05:17.664 E/MyTracks(31781): at 
org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInp
utBuffer.java:103)
01-27 18:05:17.664 E/MyTracks(31781): at 
org.apache.http.impl.io.AbstractSessionInputBuffer.readLine(AbstractSessionInput
Buffer.java:191)
01-27 18:05:17.664 E/MyTracks(31781): at 
org.apache.http.impl.conn.DefaultResponseParser.parseHead(DefaultResponseParser.
java:82)
01-27 18:05:17.664 E/MyTracks(31781): at 
org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:1
74)
01-27 18:05:17.664 E/MyTracks(31781): at 
org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(Abstract
HttpClientConnection.java:179)
01-27 18:05:17.664 E/MyTracks(31781): at 
org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(DefaultC
lientConnection.java:235)
01-27 18:05:17.664 E/MyTracks(31781): at 
org.apache.http.impl.conn.AbstractClientConnAdapter.receiveResponseHeader(Abstra
ctClientConnAdapter.java:259)
01-27 18:05:17.664 E/MyTracks(31781): at 
org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecut
or.java:279)
01-27 18:05:17.664 E/MyTracks(31781): at 
org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:12
1)
01-27 18:05:17.664 E/MyTracks(31781): at 
org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirecto
r.java:410)
01-27 18:05:17.664 E/MyTracks(31781): at 
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:5
55)
01-27 18:05:17.664 E/MyTracks(31781): at 
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:4
87)
01-27 18:05:17.664 E/MyTracks(31781): at 
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:4
65)
01-27 18:05:17.664 E/MyTracks(31781): at 
com.google.api.client.apache.ApacheHttpRequest.execute(ApacheHttpRequest.java:47
)
01-27 18:05:17.664 E/MyTracks(31781): at 
com.google.api.client.http.HttpRequest.execute(HttpRequest.java:207)
01-27 18:05:17.664 E/MyTracks(31781): at 
com.google.android.apps.mytracks.io.SendToFusionTables$2.query(SendToFusionTable
s.java:630)
01-27 18:05:17.664 E/MyTracks(31781): at 
com.google.android.apps.mytracks.io.SendToFusionTables$2.query(SendToFusionTable
s.java:1)
01-27 18:05:17.664 E/MyTracks(31781): at 
com.google.android.apps.mytracks.io.gdata.GDataWrapper.runOne(GDataWrapper.java:
198)
01-27 18:05:17.664 E/MyTracks(31781): at 
com.google.android.apps.mytracks.io.gdata.GDataWrapper.runCommon(GDataWrapper.ja
va:171)
01-27 18:05:17.664 E/MyTracks(31781): at 
com.google.android.apps.mytracks.io.gdata.GDataWrapper.runQuery(GDataWrapper.jav
a:162)
01-27 18:05:17.664 E/MyTracks(31781): at 
com.google.android.apps.mytracks.io.SendToFusionTables.runUpdate(SendToFusionTab
les.java:615)
01-27 18:05:17.664 E/MyTracks(31781): at 
com.google.android.apps.mytracks.io.SendToFusionTables.createNewTable(SendToFusi
onTables.java:197)
01-27 18:05:17.664 E/MyTracks(31781): at 
com.google.android.apps.mytracks.io.SendToFusionTables.doUpload(SendToFusionTabl
es.java:154)
01-27 18:05:17.664 E/MyTracks(31781): at 
com.google.android.apps.mytracks.io.SendToFusionTables.run(SendToFusionTables.ja
va:128)

Original issue reported on code.google.com by sandordo...@google.com on 28 Jan 2011 at 7:16

GoogleCodeExporter commented 9 years ago
I did some digging and I think we can fix this with just a new .jar
Details here:
http://groups.google.com/group/google-api-java-client/browse_thread/thread/9b27a
7edf5eef75c

Original comment by sandordo...@google.com on 31 Jan 2011 at 5:07

GoogleCodeExporter commented 9 years ago
The fix is in this change and the previous commit.
http://code.google.com/r/sandordornbush-bugfix-mac/source/detail?r=7fa6e35a49a07
e994838b529c282ff9aaaea5cca

This is the last bug I know of before we send another RC.  I'd like to push 
this tomorrow with the target of an RC early in the week.

I started cleaning up our translations.  Leif really screwed things up with the 
new strings in some languages but not others.

Original comment by sandordo...@google.com on 31 Jan 2011 at 5:42

GoogleCodeExporter commented 9 years ago

Original comment by sandordo...@google.com on 1 Feb 2011 at 4:18