Fwd: ODKCollect with OpenXdata

78 views
Skip to first unread message

Sarah Bird - Bonvaya

unread,
Apr 23, 2014, 6:08:50 PM4/23/14
to openxda...@googlegroups.com, Gaurav Sharma
Hi Gaurav,

Hopefully someone on the openxdata-users list can help.

Sincerely,

Sarah Bird

---------- Forwarded message ----------
From: Gaurav Sharma <gaura...@gmail.com>
Date: Wed, Apr 23, 2014 at 5:34 AM
Subject: ODKCollect with OpenXdata


Hi Sarah,

 

Hope you are doing great. We have been using openxdata for our surveys from the last 3 years and its working fine(though some minor bugs are there). We are now planning to use android devices to collect data alongwith the java mobiles. I need your help in knowing that if we can use ODKCollect to download/upload forms/data to openxdata server. I have searched and find out that this is possible. I just need your help to configure it correctly. Any instruction list would be very helpful.

 

https://trac.openxdata.org/wiki/ODKCollect

 

I tried this link..my openxdata is running on 8443 port but still its not working. Any help would be highly appreciable.

 

Thanks & Regards,

Gaurav


Raghu Mittal

unread,
Apr 24, 2014, 12:46:44 AM4/24/14
to openxdata-users, Gaurav Sharma
Hi Gaurav,

I have been working on the ODK to OXD connector and can help you out fix the problems you are facing. Please give me some more details about what error you are seeing when you try to connect your ODK client to your OpenXdata server.

Regards,
Raghu

__________________________________________________________________________

Raghu Mittal
Co-founder & Tech Lead
Handheld Solutions & Research Labs Pvt Ltd


--
You received this message because you are subscribed to the Google Groups "openXdata Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openxdata-use...@googlegroups.com.
To post to this group, send email to openxda...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openxdata-users/CA%2BEr%2BdQL8sy_cpZ1id298a3sfXF8Qh6fw5NvNiOx%2BLUAdM_2Vg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Dagmar Timler

unread,
Apr 24, 2014, 4:08:58 AM4/24/14
to openxda...@googlegroups.com, Gaurav Sharma
Hi Gaurav

Are you running from a phone or using the emulator on the same machine as the server?
Are you able to view this page and see a list of forms? http://<ip-address>:8443/<webapp>/mpsubmit/odk/formList
What version of the server are you running, and which version of the Android client?

Thanks
Dagmar


Caesar

unread,
Oct 16, 2014, 1:37:05 AM10/16/14
to openxda...@googlegroups.com, gaura...@gmail.com
Hello Dagmar,

I am attempting the same integration and so far,  not much success. I am attempting to access the URL http://<ip-address>:443/<webapp>/mpsubmit/odk/formList from my PC but  get the page attached. Should be accessing this URL from my Android phone or my PC? When I just access http://<ip-address>:443/<webapp>/,  I am able to access openXdata, login and view sample forms. My tomcat log files seem to give no clue. I can send an attachment if that would be helpful.

Regards,
Caesar
error_display.JPG

Ronald Kayondo

unread,
Oct 16, 2014, 1:45:56 AM10/16/14
to openxda...@googlegroups.com, gaura...@gmail.com
Hi Ceaser,

A quick look at your screenshot shows that there is a leading "/" (slash) at the end of your URL. Have you tried to remove it?


Regards,
Ronald


For more options, visit https://groups.google.com/d/optout.



--
Ronald. K
Message has been deleted

Caesar

unread,
Oct 16, 2014, 4:50:50 AM10/16/14
to openxda...@googlegroups.com, gaura...@gmail.com
Thanks Kay,

Still when I access the page using the URL http://<server_name>:443/openXdata/mpsubmit/odk/formList I get the same error as shown on the previous screen shot. When I access through https://<server_name>/openXdata/mpsubmit/odk/formList, I get a 404 error.

Regards,
Caesar


Dagmar Timler

unread,
Oct 16, 2014, 4:57:33 AM10/16/14
to openxda...@googlegroups.com, Gaurav Sharma
Does it work when you access the URL http://<server_name>:8080/openXdata/mpsubmit/odk/formList (or whatever port it is that you have running HTTP over)?

Please take a look in your openxdata.log and other Tomcat logs to see if you can find more details.

On Thu, Oct 16, 2014 at 10:45 AM, Caesar <caesar...@gmail.com> wrote:
Thanks Kay,

When I access the URL AS https://<server_name>/openXdata/mpsubmit/odk/formList, I get  404 error, but when I try to access the page through http://<server_name>:443/openXdata/mpsubmit/odk/formList I get the same error as shown in the screen shot.

Regards,
Caesar

Caesar

unread,
Oct 16, 2014, 7:03:30 AM10/16/14
to openxda...@googlegroups.com, gaura...@gmail.com
Hi Dagmar,

I still get the error error when I access from the "normal" ( not using port 443 or https) URL.

The tomcat access log gives the details shown below:-

192.168.100.61 - - [16/Oct/2014:13:53:20 +0300] "GET /openXdata/mpsubmit/odk/formList HTTP/1.1" 404 1048
192.168.100.61 - - [16/Oct/2014:13:53:23 +0300] "GET /openXdata/mpsubmit/odk/formList HTTP/1.1" 404 1048

Regards,
Caesar

Dagmar Timler

unread,
Oct 16, 2014, 7:31:47 AM10/16/14
to openxda...@googlegroups.com, Gaurav Sharma
For starters:

What version of the oXd server are you using?
Have you looked in the openxdata.log file also?
Isn't that an excerpt from your Apache logs, not Tomcat?
Is the "openXdata" webapp running - can you show me some URLS that are not returing 404?
Have you configured the WEB-INF/protocol-jars/resolvermap.properties file correctly?
Is the odk-proto-resolver-1.0.jar in your libs folder?
Do you have at least one odk-proto jar in your protocol-jars folder? Is this the same jar as referenced in the WEB-INF/protocol-jars/protomap.properties file?

When I look at my Apache HTTP logs I see the following
10X.XXX.XXX.XXX - - [16/Oct/2014:13:28:08 +0200] "GET /datacapture/mpsubmit/odk HTTP/1.1" 404 389
10X.XXX.XXX.XXX - - [16/Oct/2014:13:28:18 +0200] "GET /datacapture/mpsubmit/odk/formList HTTP/1.1" 200 277
10X.XXX.XXX.XXX - - [16/Oct/2014:13:28:32 +0200] "GET /datacapture/mpsubmit/bah HTTP/1.1" 500 1174
10X.XXX.XXX.XXX - - [16/Oct/2014:13:28:42 +0200] "GET /datacapture/mpsubmit HTTP/1.1" 500 1186
10X.XXX.XXX.XXX - - [16/Oct/2014:13:30:38 +0200] "GET /datacapture HTTP/1.1" 302 20
10X.XXX.XXX.XXX - - [16/Oct/2014:13:30:38 +0200] "GET /datacapture/ HTTP/1.1" 200 1221

--
You received this message because you are subscribed to the Google Groups "openXdata Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openxdata-use...@googlegroups.com.
To post to this group, send email to openxda...@googlegroups.com.

Caesar

unread,
Oct 16, 2014, 7:58:14 AM10/16/14
to openxda...@googlegroups.com, gaura...@gmail.com
Thanks Dagmar,

From your questions and log samples, I have noticed that I might need to update the version of openXdata I am running. The logs are from Tomcat, openXdata is running alright as I am able to access the page using the URL https://<server_name>/openXdata/ and login into the application and view the sample forms.

Please see below more sample logs:--

192.NNN.XXX.YY - - [16/Oct/2014:11:51:20 +0300] "POST /openXdata/j_spring_security_check HTTP/1.1" 302 -
192.NNN.XXX.YY - - [16/Oct/2014:11:51:20 +0300] "GET /openXdata/login.html?login_error=1 HTTP/1.1" 200 3756
192.NNN.XXX.YY - - [16/Oct/2014:11:51:30 +0300] "POST /openXdata/j_spring_security_check HTTP/1.1" 302 -
192.NNN.XXX.YY - - [16/Oct/2014:11:51:30 +0300] "GET /openXdata/login.html?login_error=1 HTTP/1.1" 200 3756
192.NNN.XXX.YY - - [16/Oct/2014:11:51:38 +0300] "POST /openXdata/j_spring_security_check HTTP/1.1" 302 -
192.NNN.XXX.YY - - [16/Oct/2014:11:51:38 +0300] "GET /openXdata/login.html?login_error=1 HTTP/1.1" 200 3756
192.NNN.XXX.YY - - [16/Oct/2014:11:51:46 +0300] "POST /openXdata/j_spring_security_check HTTP/1.1" 302 -
192.NNN.XXX.YY - - [16/Oct/2014:11:51:46 +0300] "GET /openXdata/login.html?login_error=1 HTTP/1.1" 200 3756
192.NNN.XXX.YY - - [16/Oct/2014:11:51:59 +0300] "POST /openXdata/j_spring_security_check HTTP/1.1" 302 -
192.NNN.XXX.YY - - [16/Oct/2014:11:51:59 +0300] "GET /openXdata/Emit.html HTTP/1.1" 200 13860

I am running OpenXData 1.3.5 (build 156). I didn't have resolvermap.properties  nor do I have odk-proto-resolver-1.0.jar in the protocol-jars folder. Would it be advisable just deploying a newer version or can I add these configuration files to the existing version and expect them to work? Let me try out boths methods, though a bit slow, and see which one is more suitable. Thank you once again.

Regards,
Caesar

Dagmar Timler

unread,
Oct 16, 2014, 8:05:18 AM10/16/14
to openxda...@googlegroups.com, Gaurav Sharma
I suspect you will need to upgrade. The latest release is 1.16, which I would recommend, unless you have existing forms that having bindings containing capital letters or dashes.

--
You received this message because you are subscribed to the Google Groups "openXdata Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openxdata-use...@googlegroups.com.
To post to this group, send email to openxda...@googlegroups.com.

Caesar

unread,
Oct 16, 2014, 8:10:43 AM10/16/14
to openxda...@googlegroups.com, gaura...@gmail.com
Not particularly, I am testing out openxdata for first use. So I guess there is not harm at all. Thank you for the support.
Reply all
Reply to author
Forward
0 new messages