sanyaade-g2g-repos / posit-mobile

Automatically exported from code.google.com/p/posit-mobile
GNU Lesser General Public License v2.1
0 stars 0 forks source link

Fatal Exception Error when synching finds #370

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
A fatal null pointer exception message is reported when synching finds with 
POSITx China experiment, which is preventing users from synching some of their 
finds, mainly the latter part of a list. I have about 18-20 complete finds with 
coordinates, with 7 synched ones.

I did get a trace as follows:

06-02 00:58:01.809: I/Communicator(17867): doHTTPPost() URI = 
http://www.cs.trincoll.edu/~ram/positweb/api/attachPicture?authKey=6PCavSquvut1H
lL9
06-02 00:58:01.872: D/dalvikvm(17867): GC_CONCURRENT freed 1741K, 23% free 
16859K/21831K, paused 2ms+9ms
06-02 00:58:01.958: D/dalvikvm(17867): GC_FOR_ALLOC freed 1130K, 23% free 
16956K/21831K, paused 15ms
06-02 00:58:07.341: E/Communicator(17867): IOException null
06-02 00:58:07.341: W/System.err(17867): java.net.SocketTimeoutException
06-02 00:58:07.341: W/System.err(17867):     at 
java.net.PlainSocketImpl.read(PlainSocketImpl.java:491)
06-02 00:58:07.341: W/System.err(17867):     at 
java.net.PlainSocketImpl.access$000(PlainSocketImpl.java:46)
06-02 00:58:07.341: W/System.err(17867):     at 
java.net.PlainSocketImpl$PlainSocketInputStream.read(PlainSocketImpl.java:240)
06-02 00:58:07.341: W/System.err(17867):     at 
org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInp
utBuffer.java:103)
06-02 00:58:07.341: W/System.err(17867):     at 
org.apache.http.impl.io.AbstractSessionInputBuffer.readLine(AbstractSessionInput
Buffer.java:191)
06-02 00:58:07.341: W/System.err(17867):     at 
org.apache.http.impl.conn.DefaultResponseParser.parseHead(DefaultResponseParser.
java:82)
06-02 00:58:07.341: W/System.err(17867):     at 
org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:1
74)
06-02 00:58:07.341: W/System.err(17867):     at 
org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(Abstract
HttpClientConnection.java:180)
06-02 00:58:07.348: W/System.err(17867):     at 
org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(DefaultC
lientConnection.java:235)
06-02 00:58:07.348: W/System.err(17867):     at 
org.apache.http.impl.conn.AbstractClientConnAdapter.receiveResponseHeader(Abstra
ctClientConnAdapter.java:259)
06-02 00:58:07.348: W/System.err(17867):     at 
org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecut
or.java:279)
06-02 00:58:07.348: W/System.err(17867):     at 
org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:12
1)
06-02 00:58:07.348: W/System.err(17867):     at 
org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirecto
r.java:428)
06-02 00:58:07.348: W/System.err(17867):     at 
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:5
55)
06-02 00:58:07.348: W/System.err(17867):     at 
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:6
53)
06-02 00:58:07.356: W/System.err(17867):     at 
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:6
27)
06-02 00:58:07.356: W/System.err(17867):     at 
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:6
16)
06-02 00:58:07.356: W/System.err(17867):     at 
org.hfoss.posit.android.sync.Communicator.doHTTPPost(Communicator.java:586)
06-02 00:58:07.356: W/System.err(17867):     at 
org.hfoss.posit.android.sync.Communicator.doHTTPPost(Communicator.java:620)
06-02 00:58:07.356: W/System.err(17867):     at 
org.hfoss.posit.android.sync.SyncServer.transmitImage(SyncServer.java:417)
06-02 00:58:07.356: W/System.err(17867):     at 
org.hfoss.posit.android.sync.SyncServer.sendFind(SyncServer.java:286)
06-02 00:58:07.356: W/System.err(17867):     at 
org.hfoss.posit.android.sync.SyncMedium.sendFinds(SyncMedium.java:86)
06-02 00:58:07.356: W/System.err(17867):     at 
org.hfoss.posit.android.sync.SyncMedium.sync(SyncMedium.java:61)
06-02 00:58:07.364: W/System.err(17867):     at 
org.hfoss.posit.android.sync.SyncAdapter.onPerformSync(SyncAdapter.java:72)
06-02 00:58:07.364: W/System.err(17867):     at 
android.content.AbstractThreadedSyncAdapter$SyncThread.run(AbstractThreadedSyncA
dapter.java:247)
06-02 00:58:07.364: W/dalvikvm(17867): threadid=12: thread exiting with 
uncaught exception (group=0x40a1f1f8)
06-02 00:58:07.372: E/AndroidRuntime(17867): FATAL EXCEPTION: 
SyncAdapterThread-1
06-02 00:58:07.372: E/AndroidRuntime(17867): java.lang.NullPointerException
06-02 00:58:07.372: E/AndroidRuntime(17867):     at 
org.hfoss.posit.android.sync.SyncServer.createActionBasedUrl(SyncServer.java:299
)
06-02 00:58:07.372: E/AndroidRuntime(17867):     at 
org.hfoss.posit.android.sync.SyncServer.sendFind(SyncServer.java:269)
06-02 00:58:07.372: E/AndroidRuntime(17867):     at 
org.hfoss.posit.android.sync.SyncMedium.sendFinds(SyncMedium.java:86)
06-02 00:58:07.372: E/AndroidRuntime(17867):     at 
org.hfoss.posit.android.sync.SyncMedium.sync(SyncMedium.java:61)
06-02 00:58:07.372: E/AndroidRuntime(17867):     at 
org.hfoss.posit.android.sync.SyncAdapter.onPerformSync(SyncAdapter.java:72)
06-02 00:58:07.372: E/AndroidRuntime(17867):     at 
android.content.AbstractThreadedSyncAdapter$SyncThread.run(AbstractThreadedSyncA
dapter.java:247)
06-02 00:58:07.372: W/ActivityManager(516):   Force finishing activity 
org.hfoss.posit.android/.api.activity.ListFindsActivity
06-02 00:58:07.458: I/PositMain(17867): Restarting

Original issue reported on code.google.com by trishan....@gmail.com on 1 Jun 2012 at 5:14

GoogleCodeExporter commented 9 years ago

Original comment by trishan....@trincoll.edu on 1 Jun 2012 at 5:17

GoogleCodeExporter commented 9 years ago

Original comment by trishan....@trincoll.edu on 1 Jun 2012 at 5:18

GoogleCodeExporter commented 9 years ago
If you still have the trace, please post the entire logcat.  Are you using 
version c1908... from May 29th?

Original comment by ram8...@gmail.com on 1 Jun 2012 at 5:45