JSon publishing problem

I have set up a test environment on my local network to build an
application to consume json published data. I have a simple form for
testing, comprising a dozen text fields. When I submit a completed form to
the Aggregate server, one set of circumstances always succeeds and the
other always fails. The difference is obvious, but I cannot see why the
second situation always fails.

Success: Complete the form fields with continuous strings of text like
"qqqqqqqqqqqqqqqq" or "4444444444".

INFO: There are 1 submissions available for streaming
Sending one JSON Submission
http://10.0.0.100:8080/formservice/newforms/?
Apr 10, 2015 3:07:09 PM org.opendatakit.aggregate.util.BackendActionsTable
logValues
INFO: Eq-update last Fetch: 0 [S: -1428674829065 Eq: 0 Fs: -65] futureMillis: 30000
requested: 30000
Apr 10, 2015 3:07:09 PM org.opendatakit.aggregate.task.WatchdogWorkerImpl
checkTasks
INFO: ---------------------END Watchdog
EXITING WATCHDOG TASK IN TOMCAT

Failure: Complete the form fields with text like "We have not considered
this option".

INFO: There are 1 submissions available for streaming
Sending one JSON Submission
http://10.0.0.100:8080/formservice/newforms/?
Apr 10, 2015 3:37:10 PM org.opendatakit.aggregate.util.BackendActionsTable
logValues
INFO: Fs-update last Fetch: 0 [S: -1428676630137 Eq: -852137 Fs: 30000] futureMillis: 30000
requested: 30000
Apr 10, 2015 3:37:10 PM org.opendatakit.aggregate.task.WatchdogWorkerImpl
checkTasks
INFO: ---------------------END Watchdog
EXITING WATCHDOG TASK IN TOMCAT
org.opendatakit.aggregate.exception.ODKExternalServiceException: Bad Request
(400)
at org.opendatakit.aggregate.externalservice.JsonServer.sendRequest(
JsonServer.java:143)
at org.opendatakit.aggregate.externalservice.JsonServer.insertData(
JsonServer.java:197)
at org.opendatakit.aggregate.externalservice.AbstractExternalService
.sendSubmission(AbstractExternalService.java:141)

I can anybody suggest what is going on here, and why text strings won't
publish? Any pointers, or thoughts on where to look would be much
appreciated.

This is a problem with your server implementation.

ODK Aggregate is just reporting that your server returned a 400 in response
to the submission sent to it by ODK Aggregate.

https://code.google.com/p/opendatakit/source/browse/src/main/java/org/opendatakit/aggregate/externalservice/JsonServer.java?repo=aggregate#127

ยทยทยท On Fri, Apr 10, 2015 at 11:10 AM, Ged Mirski-Fitton < ged.mirski-fitton@whatgiants.com> wrote:

I have set up a test environment on my local network to build an
application to consume json published data. I have a simple form for
testing, comprising a dozen text fields. When I submit a completed form to
the Aggregate server, one set of circumstances always succeeds and the
other always fails. The difference is obvious, but I cannot see why the
second situation always fails.

Success: Complete the form fields with continuous strings of text like
"qqqqqqqqqqqqqqqq" or "4444444444".

INFO: There are 1 submissions available for streaming
Sending one JSON Submission
http://10.0.0.100:8080/formservice/newforms/?
Apr 10, 2015 3:07:09 PM org.opendatakit.aggregate.util.BackendActionsTable
logValues
INFO: Eq-update last Fetch: 0 [S: -1428674829065 Eq: 0 Fs: -65] futureMillis:
30000 requested: 30000
Apr 10, 2015 3:07:09 PM org.opendatakit.aggregate.task.WatchdogWorkerImpl
checkTasks
INFO: ---------------------END Watchdog
EXITING WATCHDOG TASK IN TOMCAT

Failure: Complete the form fields with text like "We have not considered
this option".

INFO: There are 1 submissions available for streaming
Sending one JSON Submission
http://10.0.0.100:8080/formservice/newforms/?
Apr 10, 2015 3:37:10 PM org.opendatakit.aggregate.util.BackendActionsTable
logValues
INFO: Fs-update last Fetch: 0 [S: -1428676630137 Eq: -852137 Fs: 30000] futureMillis:
30000 requested: 30000
Apr 10, 2015 3:37:10 PM org.opendatakit.aggregate.task.WatchdogWorkerImpl
checkTasks
INFO: ---------------------END Watchdog
EXITING WATCHDOG TASK IN TOMCAT
org.opendatakit.aggregate.exception.ODKExternalServiceException: Bad
Request (400)
at org.opendatakit.aggregate.externalservice.JsonServer.
sendRequest(JsonServer.java:143)
at org.opendatakit.aggregate.externalservice.JsonServer.insertData
(JsonServer.java:197)
at org.opendatakit.aggregate.externalservice.
AbstractExternalService.sendSubmission(AbstractExternalService.java:141)

I can anybody suggest what is going on here, and why text strings won't
publish? Any pointers, or thoughts on where to look would be much
appreciated.

--
You received this message because you are subscribed to the Google Groups
"ODK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com