newtonandebe / opendatakit

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

Crash during submit on 1.1.7 to Aggregate #238

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

User has Aggregate 1.0 and Collect 1.1.7

He can fill out a form in 1.1.5 and submit it fine; it fails on 1.1.7
(so nothing special w.r.t. SSL or authentication).

I believe the relevant error is a NullPointerException at
InstanceUploaderTask.java:201

Here's a portion of the log (rest is in attachment -- the attachment shows two 
occurrences of the error):

06-24 11:25:15.999 I/ActivityManager( 1091): Starting activity: Intent
{ cmp=org.odk.collect.android/.activities.InstanceUploaderActivity
(has extras) }
06-24 11:25:16.358 I/ActivityManager( 1091): Displayed activity
org.odk.collect.android/.activities.InstanceUploaderActivity: 348 ms
(total 348 ms)
06-24 11:25:16.374 D/dalvikvm( 2413): GC_FOR_MALLOC freed 2386
objects / 143032 bytes in 75ms
06-24 11:25:17.334 D/dalvikvm( 2413): GC_FOR_MALLOC freed 4473
objects / 286344 bytes in 69ms
06-24 11:25:17.592 I/InstanceUploaderTask( 2413): added
xml_submission_file: Tyler test_2011-06-16_10-00-11.xml
06-24 11:25:17.600 I/InstanceUploaderTask( 2413): added image file
1308232843726.jpg
06-24 11:25:17.670 D/dalvikvm( 2413): GC_FOR_MALLOC freed 6764
objects / 409552 bytes in 52ms
06-24 11:25:19.936 I/InstanceUploaderTask( 2413): Response code:401
06-24 11:25:20.038 I/InstanceUploaderActivity( 2413): 3 was already
sent, removing from queue before restarting task
06-24 11:25:20.069 I/InstanceUploaderActivity( 2413): Trying
connecting to: http://204.38.5.52:8080/ODKAggregatePlatform/submission
06-24 <http://204.38.5.52:8080/ODKAggregatePlatform/submission 06-24>
11:25:28.764 D/dalvikvm( 2413): GC_FOR_MALLOC freed 3040
objects / 195184 bytes in 77ms
06-24 11:25:29.116 W/System.err( 2413): java.lang.NullPointerException
06-24 11:25:29.116 W/System.err( 2413): at
org.odk.collect.android.tasks.InstanceUploaderTask.doInBackground(InstanceUpload
erTask.java:
201)
06-24 11:25:29.116 W/System.err( 2413): at
org.odk.collect.android.tasks.InstanceUploaderTask.doInBackground(InstanceUpload
erTask.java:
1)
06-24 11:25:29.124 W/System.err( 2413): at android.os.AsyncTask
$2.call(AsyncTask.java:185)
06-24 11:25:29.124 W/System.err( 2413): at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
06-24 11:25:29.124 W/System.err( 2413): at
java.util.concurrent.FutureTask.run(FutureTask.java:137)
06-24 11:25:29.124 W/System.err( 2413): at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:
1068)
06-24 11:25:29.124 W/System.err( 2413): at
java.util.concurrent.ThreadPoolExecutor
$Worker.run(ThreadPoolExecutor.java:561)
06-24 11:25:29.124 W/System.err( 2413): at
java.lang.Thread.run(Thread.java:1096)
06-24 11:25:29.124 W/InstanceUploaderTask( 2413): Status code on Head
request: 200
06-24 11:25:54.741 D/dalvikvm( 1220): GC_EXPLICIT freed 407 objects /
16984 bytes in 89ms

Attached is the full e-mail chain.

Original issue reported on code.google.com by mitchellsundt@gmail.com on 24 Jun 2011 at 6:08

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by mitchellsundt@gmail.com on 9 Jul 2011 at 3:52

GoogleCodeExporter commented 9 years ago
There's not enough information here to act.  Please attach a copy of the form.

Original comment by carlhart...@gmail.com on 27 Sep 2011 at 8:11

GoogleCodeExporter commented 9 years ago
The problem is that at

http://code.google.com/p/opendatakit/source/browse/src/org/odk/collect/android/t
asks/InstanceUploaderTask.java?repo=collect#201

The entity is null. This is likely a network login screen or PHP server or 
something returning other than 204 on a HEAD request.  This isn't form-specific.

Original comment by mitchellsundt@gmail.com on 27 Sep 2011 at 8:28

GoogleCodeExporter commented 9 years ago
If helpful, I am experiencing a similar issue with Aggregate 0.9.7 and an xform 
from Collect 1.1.7.  Xform attached.  Strangely the fusiontable gets created.  

The issue repeats for all publish to fusiontable attempts.  i.e. 
* Press connect fusion table
* Stream new data 
* Grant (allow) anonymous 

Error message shown on screen to me is:  

Uncaught exception from servlet
java.io.IOException: com.google.gdata.util.ServiceException: 
<HTML><HEAD><TITLE>Unauthorized</TITLE></HEAD><BODY BGCOLOR="#FFFFFF" 
TEXT="#000000"><H1>Unauthorized</H1><H2>Error 401</H2></BODY></HTML>CREATE 
TABLE 'xacprod03' 
('SubmissionDate':datetime,'sysnum':string,'dev_prsnt':string,'dev_type':string,
'lat_long':location,'lat_longAltitude':location,'lat_longAccuracy':location,'ins
talled':string)
    at org.odk.aggregate.servlet.FusionTableServlet.doGet(FusionTableServlet.java:155)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)

Original comment by jamespda...@gmail.com on 29 Sep 2011 at 1:21

Attachments:

GoogleCodeExporter commented 9 years ago
James, the issue you're describing is an issue with Aggregate.  This bug is 
about a crash in Collect.  Please open another bug in the issue tracker.

Original comment by carlhart...@gmail.com on 4 Oct 2011 at 5:58

GoogleCodeExporter commented 9 years ago
I can't reproduce this bug.  Network login screens pop a dialog indicating a 
bad response and suggesting they need to log in (I just updated the error 
message to be a little more clear), or the dialog says timeout.

Original comment by carlhart...@gmail.com on 4 Oct 2011 at 6:00