Problem compiling collect

benoist,

these questions should go to the developers list (cc'ed) so others can
help. offhand, it sounds like there is an issue with eclipse. maybe
clean and rebuild the project. also, might be a good first step to get
an emulator with api 9 and see if that helps.

yaw

··· ---------- Forwarded message ---------- From: benoist Lambert Date: Fri, Jul 8, 2011 at 00:15 Subject: RE: Problem with group andoption"display on one screen"-ODKCollecton Android To: Yaw Anokwa

Hello,

I have tried to compile manually the last version of ODK Collect but I
have some errors :
error: Error: String types not allowed (at 'layout_height' with value
'match_parent').
I have replaced this error by 'fill_parent'.
error: No resource identifier found for attribute 'xlargeScreens' in
package 'android'
I have deleted "android:xlargeScreens="true" " in the AndroidManifest.xml .

But I have two errors that I can't fix:
The method onCreateDialog(int, Bundle) of type
InstanceUploaderActivity must override or implement a supertype method
The method showDialog(int) in the type Activity is not applicable for
the arguments (int, Bundle) InstanceUploaderActivity.java

I use Google API 7 (for android 2.1) and not API 9.
These functions are available only from the API 8.
How to resolve this problem ?

Benoist.

I have succeed to compile last source of ODK Collect. However, when the form becomes large, the software crashes and the message "forced closure" appears.

Log here:
W/System.err(27127): java.lang.NullPointerException
W/System.err(27127): at org.javarosa.xform.parse.XFormParser.parseControl(XFormParser.java:610)
W/System.err(27127): at org.javarosa.xform.parse.XFormParser.parseElement(XFormParser.java:340)
W/System.err(27127): at org.javarosa.xform.parse.XFormParser.access$300(XFormParser.java:77)
W/System.err(27127): at org.javarosa.xform.parse.XFormParser.parseElement(XFormParser.java:340)
W/System.err(27127): at org.javarosa.xform.parse.XFormParser.parseElement(XFormParser.java:351)
W/System.err(27127): at org.javarosa.xform.parse.XFormParser.getFormDef(XFormParser.java:261)
W/System.err(27127): at org.odk.collect.android.tasks.FormLoaderTask.doInBackground(FormLoaderTask.java:146)
W/System.err(27127): at android.os.AsyncTask$2.call(AsyncTask.java:185)
W/System.err(27127): at java.util.concurrent.FutureTask.run(FutureTask.java:137)
W/System.err(27127): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:561)
W/dalvikvm(27127): threadid=17: thread exiting with uncaught exception (group=0x4001b168)
E/AndroidRuntime(27127): at android.os.AsyncTask$3.done(AsyncTask.java:200)
E/AndroidRuntime(27127): at java.util.concurrent.FutureTask.setException(FutureTask.java:124)
E/AndroidRuntime(27127): at java.util.concurrent.FutureTask.run(FutureTask.java:137)
E/AndroidRuntime(27127): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:561)
E/AndroidRuntime(27127): Caused by: java.lang.NullPointerException
E/AndroidRuntime(27127): at org.odk.collect.android.tasks.FormLoaderTask.doInBackground(FormLoaderTask.java:1)
E/AndroidRuntime(27127): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)

Benoist.

-----Message d'origine-----

··· De : Yaw Anokwa [mailto:yanokwa@gmail.com] Envoyé : vendredi 8 juillet 2011 15:37 À : opendatakit-developers Cc : benoist Lambert Objet : problem compiling collect

benoist,

these questions should go to the developers list (cc'ed) so others can
help. offhand, it sounds like there is an issue with eclipse. maybe
clean and rebuild the project. also, might be a good first step to get
an emulator with api 9 and see if that helps.

yaw


Ce message et toutes les pieces jointes (ci-apres le "message") sont confidentiels. Ce message est etabli a l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisee est interdite. Tout message electronique est susceptible d'alteration. FICAP decline toute responsabilite au titre de ce message s'il a ete altere, deforme ou falsifie. ___ This message and any attachments (the "message") are confidential, intended solely for the addressee(s). Any unauthorised use or dissemination is prohibited. E-mails are susceptible to alteration. FICAP shall not be liable for the message if altered, changed or falsified.

hi benoist,

use odk validate at
http://code.google.com/p/opendatakit/downloads/list to make sure the
form is valid. if it is, please create an issue at
http://code.google.com/p/opendatakit/issues and attach the form so we
can use it to debug.

yaw

··· On Tue, Jul 12, 2011 at 02:22, benoist Lambert wrote: > I have succeed to compile last source of ODK Collect. However, when the form becomes large, the software crashes and the message "forced closure" appears. > > Log here: > W/System.err(27127): java.lang.NullPointerException > W/System.err(27127): at org.javarosa.xform.parse.XFormParser.parseControl(XFormParser.java:610) > W/System.err(27127): at org.javarosa.xform.parse.XFormParser.parseElement(XFormParser.java:340) > W/System.err(27127): at org.javarosa.xform.parse.XFormParser.access$300(XFormParser.java:77) > W/System.err(27127): at org.javarosa.xform.parse.XFormParser.parseElement(XFormParser.java:340) > W/System.err(27127): at org.javarosa.xform.parse.XFormParser.parseElement(XFormParser.java:351) > W/System.err(27127): at org.javarosa.xform.parse.XFormParser.getFormDef(XFormParser.java:261) > W/System.err(27127): at org.odk.collect.android.tasks.FormLoaderTask.doInBackground(FormLoaderTask.java:146) > W/System.err(27127): at android.os.AsyncTask$2.call(AsyncTask.java:185) > W/System.err(27127): at java.util.concurrent.FutureTask.run(FutureTask.java:137) > W/System.err(27127): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:561) > W/dalvikvm(27127): threadid=17: thread exiting with uncaught exception (group=0x4001b168) > E/AndroidRuntime(27127): at android.os.AsyncTask$3.done(AsyncTask.java:200) > E/AndroidRuntime(27127): at java.util.concurrent.FutureTask.setException(FutureTask.java:124) > E/AndroidRuntime(27127): at java.util.concurrent.FutureTask.run(FutureTask.java:137) > E/AndroidRuntime(27127): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:561) > E/AndroidRuntime(27127): Caused by: java.lang.NullPointerException > E/AndroidRuntime(27127): at org.odk.collect.android.tasks.FormLoaderTask.doInBackground(FormLoaderTask.java:1) > E/AndroidRuntime(27127): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305) > > Benoist. > > -----Message d'origine----- > De : Yaw Anokwa [mailto:yanokwa@gmail.com] > Envoyé : vendredi 8 juillet 2011 15:37 > À : opendatakit-developers > Cc : benoist Lambert > Objet : problem compiling collect > > benoist, > > these questions should go to the developers list (cc'ed) so others can > help. offhand, it sounds like there is an issue with eclipse. maybe > clean and rebuild the project. also, might be a good first step to get > an emulator with api 9 and see if that helps. > > yaw > >
> Ce message et toutes les pieces jointes (ci-apres le "message") sont confidentiels. Ce message est etabli a l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisee est interdite. Tout message electronique est susceptible d'alteration. FICAP decline toute responsabilite au titre de ce message s'il a ete altere, deforme ou falsifie. > ___ > This message and any attachments (the "message") are confidential, intended solely for the addressee(s). Any unauthorised use or dissemination is prohibited. E-mails are susceptible to alteration. FICAP shall not be liable for the message if altered, changed or > falsified. >
> > >

Hi Benoist,

This issue isn't due to the form being large, but it does look like a bug in
the JavaRosa parsing code. It should return an error rather than throw a
null pointer.

Can you send me your form so I can investigate further?
Thanks,
Carl

··· On Tue, Jul 12, 2011 at 2:22 AM, benoist Lambert wrote:

I have succeed to compile last source of ODK Collect. However, when the
form becomes large, the software crashes and the message "forced closure"
appears.

Log here:
W/System.err(27127): java.lang.NullPointerException
W/System.err(27127): at
org.javarosa.xform.parse.XFormParser.parseControl(XFormParser.java:610)
W/System.err(27127): at
org.javarosa.xform.parse.XFormParser.parseElement(XFormParser.java:340)
W/System.err(27127): at
org.javarosa.xform.parse.XFormParser.access$300(XFormParser.java:77)
W/System.err(27127): at
org.javarosa.xform.parse.XFormParser.parseElement(XFormParser.java:340)
W/System.err(27127): at
org.javarosa.xform.parse.XFormParser.parseElement(XFormParser.java:351)
W/System.err(27127): at
org.javarosa.xform.parse.XFormParser.getFormDef(XFormParser.java:261)
W/System.err(27127): at
org.odk.collect.android.tasks.FormLoaderTask.doInBackground(FormLoaderTask.java:146)
W/System.err(27127): at android.os.AsyncTask$2.call(AsyncTask.java:185)
W/System.err(27127): at
java.util.concurrent.FutureTask.run(FutureTask.java:137)
W/System.err(27127): at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:561)
W/dalvikvm(27127): threadid=17: thread exiting with uncaught exception
(group=0x4001b168)
E/AndroidRuntime(27127): at
android.os.AsyncTask$3.done(AsyncTask.java:200)
E/AndroidRuntime(27127): at
java.util.concurrent.FutureTask.setException(FutureTask.java:124)
E/AndroidRuntime(27127): at
java.util.concurrent.FutureTask.run(FutureTask.java:137)
E/AndroidRuntime(27127): at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:561)
E/AndroidRuntime(27127): Caused by: java.lang.NullPointerException
E/AndroidRuntime(27127): at
org.odk.collect.android.tasks.FormLoaderTask.doInBackground(FormLoaderTask.java:1)
E/AndroidRuntime(27127): at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)

Benoist.

-----Message d'origine-----
De : Yaw Anokwa [mailto:yanokwa@gmail.com]
Envoyé : vendredi 8 juillet 2011 15:37
À : opendatakit-developers
Cc : benoist Lambert
Objet : problem compiling collect

benoist,

these questions should go to the developers list (cc'ed) so others can
help. offhand, it sounds like there is an issue with eclipse. maybe
clean and rebuild the project. also, might be a good first step to get
an emulator with api 9 and see if that helps.

yaw


Ce message et toutes les pieces jointes (ci-apres le "message") sont confidentiels. Ce message est etabli a l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisee est interdite. Tout message electronique est susceptible d'alteration. FICAP decline toute responsabilite au titre de ce message s'il a ete altere, deforme ou falsifie. ___ This message and any attachments (the "message") are confidential, intended solely for the addressee(s). Any unauthorised use or dissemination is prohibited. E-mails are susceptible to alteration. FICAP shall not be liable for the message if altered, changed or falsified.

you can post to aggregate and then export to csv. or use kobo post
processor (http://code.google.com/p/kobo/)

··· On Tue, Jul 12, 2011 at 07:43, benoist Lambert wrote: > Thanks, i have solved this problem. > But,i have one question. > > How to implement CSV export into ODK Collect ? > Indeed, I have to deal with form data in CSV format. > > Benoist. > > -----Message d'origine----- > De : Yaw Anokwa [mailto:yanokwa@gmail.com] > Envoyé : mardi 12 juillet 2011 15:17 > À : benoist Lambert > Cc : opendatakit-developers > Objet : Re: Crash when the form is too large > > hi benoist, > > use odk validate at > http://code.google.com/p/opendatakit/downloads/list to make sure the > form is valid. if it is, please create an issue at > http://code.google.com/p/opendatakit/issues and attach the form so we > can use it to debug. > > yaw > >
> Ce message et toutes les pieces jointes (ci-apres le "message") sont confidentiels. Ce message est etabli a l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisee est interdite. Tout message electronique est susceptible d'alteration. FICAP decline toute responsabilite au titre de ce message s'il a ete altere, deforme ou falsifie. > ___ > This message and any attachments (the "message") are confidential, intended solely for the addressee(s). Any unauthorised use or dissemination is prohibited. E-mails are susceptible to alteration. FICAP shall not be liable for the message if altered, changed or > falsified. >
> > >