Error on my Form (Error: Problem with JavaRosa Parsing Form:null)

Hi ODK team

I have big problems getting my form to work and upload it to the Aggregate
server (I use version 0.9.8 on google App engine)

I'm trying to make a simple option field(with two options) in my form, but
it won't parse? I'm using the ODK build site to make my form.

I'm getting this error when trying to Validate the form: (and I have the
data id tag in place)

Checking form...
Parsing form...
Title: "lowLevelTest2"
java.lang.NullPointerException
at org.javarosa.xform.parse.XFormParser.parseItem(XFormParser.java:899)
at
org.javarosa.xform.parse.XFormParser.parseControl(XFormParser.java:610)
at org.javarosa.xform.parse.XFormParser$7.handle(XFormParser.java:150)

and this when uploading to Aggregate:
Error: Problem with JavaRosa Parsing Form:null

This is my form:

<h:html xmlns="http://www.w3.org/2002/xforms" xmlns:h="
http://www.w3.org/1999/xhtml" xmlns:ev="http://www.w3.org/2001/xml-events"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:jr="
http://openrosa.org/javarosa">
<h:head>
<h:title>lowLevelTest2</h:title>









Her kan du svare?





Gul


Grøn





</h:head>
<h:body>












</h:body>
</h:html>

Can anybody help me to locate the problem? This would be really great if I
can get this to work...

Thanks!

lowLevelTest2.xml (1.35 KB)

··· -- Venlig hilsen

Martin Mosgaard Knudsen

Dommervænget 22 1. tv
4000 Roskilde

tlf.: 61 69 14 57
email: martinmosgaard@gmail.com /
mmk01@hotmail.com<marinmogaard@gmail.com%20/%20mmk01@hotmail.com>

Hi Andrew

Thanks for fast reply.

But it seems very strange to me, and I'm not that into XML, but It's
like there is more tags end tags

I'll tryed to change the tag in the <h:body> to Gul</
value>. (Its allready in the <h:head> part)

Now I get it error :
Checking form...
[Fatal Error] lowLevelTest2.xml:36:9: The element type "value" must be
terminated by the matching end-tag "".

··· On 11 Okt., 14:53, Andrew Marder wrote: > Hi Martin, > > One possible problem is that your items have no values. You might try > replacing with something like Gul. > > Andrew > > On Tue, Oct 11, 2011 at 6:32 AM, Martin Mosgaard Knudsen wrote: > > Hi ODK team > > > I have big problems getting my form to work and upload it to the Aggregate > > server (I use version 0.9.8 on google App engine) > > > I'm trying to make a simple option field(with two options) in my form, but > > it won't parse? I'm using the ODK build site to make my form. > > > I'm getting this error when trying to Validate the form: (and I have the > > data id tag in place) > > > Checking form... > > Parsing form... > > Title: "lowLevelTest2" > > java.lang.NullPointerException > > at org.javarosa.xform.parse.XFormParser.parseItem(XFormParser.java:899) > > at > > org.javarosa.xform.parse.XFormParser.parseControl(XFormParser.java:610) > > at org.javarosa.xform.parse.XFormParser$7.handle(XFormParser.java:150) > > > and this when uploading to Aggregate: > > Error: Problem with JavaRosa Parsing Form:null > > > This is my form: > > > > xmlns:h="http://www.w3.org/1999/xhtml" > > xmlns:ev="http://www.w3.org/2001/xml-events" > > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > > xmlns:jr="http://openrosa.org/javarosa"> > > > > lowLevelTest2 > > > > > > > > > > > > > > > > > > > > Her kan du svare? > > > > > > > > > > > > Gul > > > > > > Grøn > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Can anybody help me to locate the problem? This would be really great if I > > can get this to work... > > > Thanks! > > > -- > > Venlig hilsen > > > Martin Mosgaard Knudsen > > > Dommervænget 22 1. tv > > 4000 Roskilde > > > tlf.: 61 69 14 57 > > email: martinmosga...@gmail.com / mm...@hotmail.com > > > -- > > Post: opendatakit@googlegroups.com > > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > > Options:http://groups.google.com/group/opendatakit?hl=en- Skjul tekst i anførselstegn - > > - Vis tekst i anførselstegn -

Hi Andrew

Thanks for fast answer.

I try to set in extra the Gul infront of the last but
now gets this error:

Checking form...
[Fatal Error] lowLevelTest2.xml:36:9: The element type "value" must be
terminated by the matching end-tag "".

XML is invalid. See above the errors.

Check code on Dpaste:
http://dpaste.com/632182/

The are more end tags in begining task??? Does this mean anything? I'm
not a big XML-Shark.

··· On 11 Okt., 14:53, Andrew Marder wrote: > Hi Martin, > > One possible problem is that your items have no values. You might try > replacing with something like Gul. > > Andrew > > On Tue, Oct 11, 2011 at 6:32 AM, Martin Mosgaard Knudsen wrote: > > Hi ODK team > > > I have big problems getting my form to work and upload it to the Aggregate > > server (I use version 0.9.8 on google App engine) > > > I'm trying to make a simple option field(with two options) in my form, but > > it won't parse? I'm using the ODK build site to make my form. > > > I'm getting this error when trying to Validate the form: (and I have the > > data id tag in place) > > > Checking form... > > Parsing form... > > Title: "lowLevelTest2" > > java.lang.NullPointerException > > at org.javarosa.xform.parse.XFormParser.parseItem(XFormParser.java:899) > > at > > org.javarosa.xform.parse.XFormParser.parseControl(XFormParser.java:610) > > at org.javarosa.xform.parse.XFormParser$7.handle(XFormParser.java:150) > > > and this when uploading to Aggregate: > > Error: Problem with JavaRosa Parsing Form:null > > > This is my form: > > > > xmlns:h="http://www.w3.org/1999/xhtml" > > xmlns:ev="http://www.w3.org/2001/xml-events" > > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > > xmlns:jr="http://openrosa.org/javarosa"> > > > > lowLevelTest2 > > > > > > > > > > > > > > > > > > > > Her kan du svare? > > > > > > > > > > > > Gul > > > > > > Grøn > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Can anybody help me to locate the problem? This would be really great if I > > can get this to work... > > > Thanks! > > > -- > > Venlig hilsen > > > Martin Mosgaard Knudsen > > > Dommervænget 22 1. tv > > 4000 Roskilde > > > tlf.: 61 69 14 57 > > email: martinmosga...@gmail.com / mm...@hotmail.com > > > -- > > Post: opendatakit@googlegroups.com > > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > > Options:http://groups.google.com/group/opendatakit?hl=en- Skjul tekst i anførselstegn - > > - Vis tekst i anførselstegn -

Hi Martin,

One possible problem is that your items have no values. You might try
replacing with something like Gul.

Andrew

··· On Tue, Oct 11, 2011 at 6:32 AM, Martin Mosgaard Knudsen wrote: > Hi ODK team > > I have big problems getting my form to work and upload it to the Aggregate > server (I use version 0.9.8 on google App engine) > > I'm trying to make a simple option field(with two options) in my form, but > it won't parse? I'm using the ODK build site to make my form. > > I'm getting this error when trying to Validate the form: (and I have the > data id tag in place) > > Checking form... > Parsing form... > Title: "lowLevelTest2" > java.lang.NullPointerException > at org.javarosa.xform.parse.XFormParser.parseItem(XFormParser.java:899) > at > org.javarosa.xform.parse.XFormParser.parseControl(XFormParser.java:610) > at org.javarosa.xform.parse.XFormParser$7.handle(XFormParser.java:150) > > and this when uploading to Aggregate: > Error: Problem with JavaRosa Parsing Form:null > > > This is my form: > > xmlns:h="http://www.w3.org/1999/xhtml" > xmlns:ev="http://www.w3.org/2001/xml-events" > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > xmlns:jr="http://openrosa.org/javarosa"> > > lowLevelTest2 > > > > > > > > > > Her kan du svare? > > > > > > Gul > > > Grøn > > > > > > > > > > > > > > > > > > > > > > > > Can anybody help me to locate the problem? This would be really great if I > can get this to work... > > Thanks! > > > -- > Venlig hilsen > > Martin Mosgaard Knudsen > > Dommervænget 22 1. tv > 4000 Roskilde > > tlf.: 61 69 14 57 > email: martinmosgaard@gmail.com / mmk01@hotmail.com > > -- > Post: opendatakit@googlegroups.com > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > Options: http://groups.google.com/group/opendatakit?hl=en >

The problem is in the select1 definition, as Andrew identified. You have:

The tags here must contain a value that will be stored in the
submission record. This is like a coding value in an old-style
questionnaire. As written, you've defined a select1 but both of the choices
(option0 and option1) will code to nothing. A valid select1 would be:

option0ChoiceCodingValue option1ChoiceCodingValue

Mitch

··· On Tue, Oct 11, 2011 at 6:42 AM, Martin Mosgaard Knudsen < martinmosgaard@gmail.com> wrote:

Hi Andrew

Thanks for fast reply.

But it seems very strange to me, and I'm not that into XML, but It's
like there is more tags end tags

I'll tryed to change the tag in the <h:body> to Gul</
value>. (Its allready in the <h:head> part)

Now I get it error :
Checking form...
[Fatal Error] lowLevelTest2.xml:36:9: The element type "value" must be
terminated by the matching end-tag "".

On 11 Okt., 14:53, Andrew Marder andrew.ei.mar...@gmail.com wrote:

Hi Martin,

One possible problem is that your items have no values. You might try
replacing with something like Gul.

Andrew

On Tue, Oct 11, 2011 at 6:32 AM, Martin Mosgaard Knudsen martinmosga...@gmail.com wrote:

Hi ODK team

I have big problems getting my form to work and upload it to the
Aggregate
server (I use version 0.9.8 on google App engine)

I'm trying to make a simple option field(with two options) in my form,
but
it won't parse? I'm using the ODK build site to make my form.

I'm getting this error when trying to Validate the form: (and I have
the
data id tag in place)

Checking form...
Parsing form...
Title: "lowLevelTest2"
java.lang.NullPointerException
at
org.javarosa.xform.parse.XFormParser.parseItem(XFormParser.java:899)
at
org.javarosa.xform.parse.XFormParser.parseControl(XFormParser.java:610)
at
org.javarosa.xform.parse.XFormParser$7.handle(XFormParser.java:150)

and this when uploading to Aggregate:
Error: Problem with JavaRosa Parsing Form:null

This is my form:

<h:html xmlns="http://www.w3.org/2002/xforms"
xmlns:h="http://www.w3.org/1999/xhtml"
xmlns:ev="http://www.w3.org/2001/xml-events"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:jr="http://openrosa.org/javarosa">
<h:head>
<h:title>lowLevelTest2</h:title>









Her kan du svare?





Gul


Grøn





</h:head>
<h:body>












</h:body>
</h:html>

Can anybody help me to locate the problem? This would be really great
if I
can get this to work...

Thanks!

--
Venlig hilsen

Martin Mosgaard Knudsen

Dommervænget 22 1. tv
4000 Roskilde

tlf.: 61 69 14 57
email: martinmosga...@gmail.com / mm...@hotmail.com

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options:http://groups.google.com/group/opendatakit?hl=en- Skjul tekst
i anførselstegn -

  • Vis tekst i anførselstegn -

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

--
Mitch Sundt
Software Engineer

University of Washington
mitchellsundt@gmail.com

Hi Mitch

I tryed both what you and Andrew described: se the code here:

http://dpaste.com/632736/

But now gets this error:

Checking form...
[Fatal Error] lowLevelTest2.xml:37:9: The element type "value" must be
terminated by the matching end-tag "".

It do not like the inserted tag!? (I tryed inserting a new end
tag, but it just crash)

··· On 11 Okt., 19:43, Mitch Sundt wrote: > The problem is in the select1 definition, as Andrew identified. You have: > > > > > > > > > > > > > > > The tags here must contain a value that will be stored in the > submission record. This is like a coding value in an old-style > questionnaire. As written, you've defined a select1 but both of the choices > (option0 and option1) will code to nothing. A valid select1 would be: > > > > > > > option0ChoiceCodingValue > > > > option1ChoiceCodingValue > > > > Mitch > > On Tue, Oct 11, 2011 at 6:42 AM, Martin Mosgaard Knudsen < martinmosga...@gmail.com> wrote: > > Hi Andrew > > > Thanks for fast reply. > > > But it seems very strange to me, and I'm not that into XML, but It's > > like there is more tags end tags > > > I'll tryed to change the tag in the to Gul > value>. (Its allready in the part) > > > Now I get it error : > > Checking form... > > [Fatal Error] lowLevelTest2.xml:36:9: The element type "value" must be > > terminated by the matching end-tag "". > > > On 11 Okt., 14:53, Andrew Marder wrote: > > > Hi Martin, > > > > One possible problem is that your items have no values. You might try > > > replacing with something like Gul. > > > > Andrew > > > > On Tue, Oct 11, 2011 at 6:32 AM, Martin Mosgaard Knudsen wrote: > > > > Hi ODK team > > > > > I have big problems getting my form to work and upload it to the > > Aggregate > > > > server (I use version 0.9.8 on google App engine) > > > > > I'm trying to make a simple option field(with two options) in my form, > > but > > > > it won't parse? I'm using the ODK build site to make my form. > > > > > I'm getting this error when trying to Validate the form: (and I have > > the > > > > data id tag in place) > > > > > Checking form... > > > > Parsing form... > > > > Title: "lowLevelTest2" > > > > java.lang.NullPointerException > > > > at > > org.javarosa.xform.parse.XFormParser.parseItem(XFormParser.java:899) > > > > at > > > > org.javarosa.xform.parse.XFormParser.parseControl(XFormParser.java:610) > > > > at > > org.javarosa.xform.parse.XFormParser$7.handle(XFormParser.java:150) > > > > > and this when uploading to Aggregate: > > > > Error: Problem with JavaRosa Parsing Form:null > > > > > This is my form: > > > > > > > > xmlns:h="http://www.w3.org/1999/xhtml" > > > > xmlns:ev="http://www.w3.org/2001/xml-events" > > > > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > > > > xmlns:jr="http://openrosa.org/javarosa"> > > > > > > > > lowLevelTest2 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Her kan du svare? > > > > > > > > > > > > > > > > > > > > > > > > Gul > > > > > > > > > > > > Grøn > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Can anybody help me to locate the problem? This would be really great > > if I > > > > can get this to work... > > > > > Thanks! > > > > > -- > > > > Venlig hilsen > > > > > Martin Mosgaard Knudsen > > > > > Dommervænget 22 1. tv > > > > 4000 Roskilde > > > > > tlf.: 61 69 14 57 > > > > email: martinmosga...@gmail.com / mm...@hotmail.com > > > > > -- > > > > Post: opendatakit@googlegroups.com > > > > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > > > > Options:http://groups.google.com/group/opendatakit?hl=en-Skjul tekst > > i anførselstegn - > > > > - Vis tekst i anførselstegn - > > > -- > > Post: opendatakit@googlegroups.com > > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > > Options:http://groups.google.com/group/opendatakit?hl=en > > -- > Mitch Sundt > Software Engineerhttp://www.OpenDataKit.org > University of Washington > mitchellsu...@gmail.com- Skjul tekst i anførselstegn - > > - Vis tekst i anførselstegn -

Change line 13 to:

Here is question text

and line 16 to:

and here is hint text

··· On Wed, Oct 12, 2011 at 12:25 AM, Martin Mosgaard Knudsen wrote: > Hi Mitch > > I tryed both what you and Andrew described: se the code here: > > http://dpaste.com/632736/ > > But now gets this error: > > Checking form... > [Fatal Error] lowLevelTest2.xml:37:9: The element type "value" must be > terminated by the matching end-tag "". > > It do not like the inserted tag!? (I tryed inserting a new end > tag, but it just crash) > > > On 11 Okt., 19:43, Mitch Sundt wrote: >> The problem is in the select1 definition, as Andrew identified. You have: >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> The tags here must contain a value that will be stored in the >> submission record. This is like a coding value in an old-style >> questionnaire. As written, you've defined a select1 but both of the choices >> (option0 and option1) will code to nothing. A valid select1 would be: >> >> >> >> >> >> >> option0ChoiceCodingValue >> >> >> >> option1ChoiceCodingValue >> >> >> >> Mitch >> >> On Tue, Oct 11, 2011 at 6:42 AM, Martin Mosgaard Knudsen < martinmosga...@gmail.com> wrote: >> > Hi Andrew >> >> > Thanks for fast reply. >> >> > But it seems very strange to me, and I'm not that into XML, but It's >> > like there is more tags end tags >> >> > I'll tryed to change the tag in the to Gul> > value>. (Its allready in the part) >> >> > Now I get it error : >> > Checking form... >> > [Fatal Error] lowLevelTest2.xml:36:9: The element type "value" must be >> > terminated by the matching end-tag "". >> >> > On 11 Okt., 14:53, Andrew Marder wrote: >> > > Hi Martin, >> >> > > One possible problem is that your items have no values. You might try >> > > replacing with something like Gul. >> >> > > Andrew >> >> > > On Tue, Oct 11, 2011 at 6:32 AM, Martin Mosgaard Knudsen wrote: >> > > > Hi ODK team >> >> > > > I have big problems getting my form to work and upload it to the >> > Aggregate >> > > > server (I use version 0.9.8 on google App engine) >> >> > > > I'm trying to make a simple option field(with two options) in my form, >> > but >> > > > it won't parse? I'm using the ODK build site to make my form. >> >> > > > I'm getting this error when trying to Validate the form: (and I have >> > the >> > > > data id tag in place) >> >> > > > Checking form... >> > > > Parsing form... >> > > > Title: "lowLevelTest2" >> > > > java.lang.NullPointerException >> > > > at >> > org.javarosa.xform.parse.XFormParser.parseItem(XFormParser.java:899) >> > > > at >> > > > org.javarosa.xform.parse.XFormParser.parseControl(XFormParser.java:610) >> > > > at >> > org.javarosa.xform.parse.XFormParser$7.handle(XFormParser.java:150) >> >> > > > and this when uploading to Aggregate: >> > > > Error: Problem with JavaRosa Parsing Form:null >> >> > > > This is my form: >> >> > > > > > > > xmlns:h="http://www.w3.org/1999/xhtml" >> > > > xmlns:ev="http://www.w3.org/2001/xml-events" >> > > > xmlns:xsd="http://www.w3.org/2001/XMLSchema" >> > > > xmlns:jr="http://openrosa.org/javarosa"> >> > > > >> > > > lowLevelTest2 >> > > > >> > > > >> > > > >> > > > >> > > > >> > > > >> > > > >> > > > >> > > > >> > > > Her kan du svare? >> > > > >> > > > >> > > > >> > > > >> > > > >> > > > Gul >> > > > >> > > > >> > > > Grøn >> > > > >> > > > >> > > > >> > > > >> > > > >> > > > >> > > > >> > > > >> > > > >> > > > >> > > > >> > > > >> > > > >> > > > >> > > > >> > > > >> > > > >> > > > >> > > > >> > > > >> > > > >> >> > > > Can anybody help me to locate the problem? This would be really great >> > if I >> > > > can get this to work... >> >> > > > Thanks! >> >> > > > -- >> > > > Venlig hilsen >> >> > > > Martin Mosgaard Knudsen >> >> > > > Dommervænget 22 1. tv >> > > > 4000 Roskilde >> >> > > > tlf.: 61 69 14 57 >> > > > email: martinmosga...@gmail.com / mm...@hotmail.com >> >> > > > -- >> > > > Post: opendatakit@googlegroups.com >> > > > Unsubscribe: opendatakit+unsubscribe@googlegroups.com >> > > > Options:http://groups.google.com/group/opendatakit?hl=en-Skjul tekst >> > i anførselstegn - >> >> > > - Vis tekst i anførselstegn - >> >> > -- >> > Post: opendatakit@googlegroups.com >> > Unsubscribe: opendatakit+unsubscribe@googlegroups.com >> > Options:http://groups.google.com/group/opendatakit?hl=en >> >> -- >> Mitch Sundt >> Software Engineerhttp://www.OpenDataKit.org >> University of Washington >> mitchellsu...@gmail.com- Skjul tekst i anførselstegn - >> >> - Vis tekst i anførselstegn - > > -- > Post: opendatakit@googlegroups.com > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > Options: http://groups.google.com/group/opendatakit?hl=en >

Thank again for trying to help.

I maked the change, see here:
http://dpaste.com/632943/ (I'll maked the code easier to look at)

I still got the same error: (I understand more of the XML now, but not
enought to make it right)

Checking form...
[Fatal Error] lowLevelTest2.xml:17:13: The element type "value" must
be terminated by the matching end-tag "".

··· On 12 Okt., 10:51, Gaetano Borriello wrote: > Change line 13 to: > > Here is question text > > and line 16 to: > > and here is hint text > > On Wed, Oct 12, 2011 at 12:25 AM, Martin Mosgaard Knudsen wrote: > > Hi Mitch > > > I tryed both what you and Andrew described: se the code here: > > >http://dpaste.com/632736/ > > > But now gets this error: > > > Checking form... > > [Fatal Error] lowLevelTest2.xml:37:9: The element type "value" must be > > terminated by the matching end-tag "". > > > It do not like the inserted tag!? (I tryed inserting a new end > > tag, but it just crash) > > > On 11 Okt., 19:43, Mitch Sundt wrote: > >> The problem is in the select1 definition, as Andrew identified. You have: > > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > > >> The tags here must contain a value that will be stored in the > >> submission record. This is like a coding value in an old-style > >> questionnaire. As written, you've defined a select1 but both of the choices > >> (option0 and option1) will code to nothing. A valid select1 would be: > > >> > >> > >> > >> > >> > >> option0ChoiceCodingValue > >> > >> > >> > >> option1ChoiceCodingValue > >> > >> > > >> Mitch > > >> On Tue, Oct 11, 2011 at 6:42 AM, Martin Mosgaard Knudsen < martinmosga...@gmail.com> wrote: > >> > Hi Andrew > > >> > Thanks for fast reply. > > >> > But it seems very strange to me, and I'm not that into XML, but It's > >> > like there is more tags end tags > > >> > I'll tryed to change the tag in the to Gul >> > value>. (Its allready in the part) > > >> > Now I get it error : > >> > Checking form... > >> > [Fatal Error] lowLevelTest2.xml:36:9: The element type "value" must be > >> > terminated by the matching end-tag "". > > >> > On 11 Okt., 14:53, Andrew Marder wrote: > >> > > Hi Martin, > > >> > > One possible problem is that your items have no values. You might try > >> > > replacing with something like Gul. > > >> > > Andrew > > >> > > On Tue, Oct 11, 2011 at 6:32 AM, Martin Mosgaard Knudsen wrote: > >> > > > Hi ODK team > > >> > > > I have big problems getting my form to work and upload it to the > >> > Aggregate > >> > > > server (I use version 0.9.8 on google App engine) > > >> > > > I'm trying to make a simple option field(with two options) in my form, > >> > but > >> > > > it won't parse? I'm using the ODK build site to make my form. > > >> > > > I'm getting this error when trying to Validate the form: (and I have > >> > the > >> > > > data id tag in place) > > >> > > > Checking form... > >> > > > Parsing form... > >> > > > Title: "lowLevelTest2" > >> > > > java.lang.NullPointerException > >> > > > at > >> > org.javarosa.xform.parse.XFormParser.parseItem(XFormParser.java:899) > >> > > > at > >> > > > org.javarosa.xform.parse.XFormParser.parseControl(XFormParser.java:610) > >> > > > at > >> > org.javarosa.xform.parse.XFormParser$7.handle(XFormParser.java:150) > > >> > > > and this when uploading to Aggregate: > >> > > > Error: Problem with JavaRosa Parsing Form:null > > >> > > > This is my form: > > >> > > > >> > > > xmlns:h="http://www.w3.org/1999/xhtml" > >> > > > xmlns:ev="http://www.w3.org/2001/xml-events" > >> > > > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > >> > > > xmlns:jr="http://openrosa.org/javarosa"> > >> > > > > >> > > > lowLevelTest2 > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > Her kan du svare? > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > Gul > >> > > > > >> > > > > >> > > > Grøn > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > > > >> > > > Can anybody help me to locate the problem? This would be really great > >> > if I > >> > > > can get this to work... > > >> > > > Thanks! > > >> > > > -- > >> > > > Venlig hilsen > > >> > > > Martin Mosgaard Knudsen > > >> > > > Dommervænget 22 1. tv > >> > > > 4000 Roskilde > > >> > > > tlf.: 61 69 14 57 > >> > > > email: martinmosga...@gmail.com / mm...@hotmail.com > > >> > > > -- > >> > > > Post: opendatakit@googlegroups.com > >> > > > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > >> > > > Options:http://groups.google.com/group/opendatakit?hl=en-Skjultekst > >> > i anførselstegn - > > >> > > - Vis tekst i anførselstegn - > > >> > -- > >> > Post: opendatakit@googlegroups.com > >> > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > >> > Options:http://groups.google.com/group/opendatakit?hl=en > > >> -- > >> Mitch Sundt > >> Software Engineerhttp://www.OpenDataKit.org > >> University of Washington > >> mitchellsu...@gmail.com- Skjul tekst i anførselstegn - > > >> - Vis tekst i anførselstegn - > > > -- > > Post: opendatakit@googlegroups.com > > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > > Options:http://groups.google.com/group/opendatakit?hl=en

Hi Martin,

I would suggest using ODK Build. It's much easier to build an XForm
with Build than it is to write one by hand.

http://build.opendatakit.org/

Andrew

··· On Wed, Oct 12, 2011 at 1:05 PM, Martin Mosgaard Knudsen wrote: > Thank again for trying to help. > > I maked the change, see here: > http://dpaste.com/632943/ (I'll maked the code easier to look at) > > I still got the same error: (I understand more of the XML now, but not > enought to make it right) > > Checking form... > [Fatal Error] lowLevelTest2.xml:17:13: The element type "value" must > be terminated by the matching end-tag "". > > > > On 12 Okt., 10:51, Gaetano Borriello wrote: >> Change line 13 to: >> >> Here is question text >> >> and line 16 to: >> >> and here is hint text >> >> On Wed, Oct 12, 2011 at 12:25 AM, Martin Mosgaard Knudsen wrote: >> > Hi Mitch >> >> > I tryed both what you and Andrew described: se the code here: >> >> >http://dpaste.com/632736/ >> >> > But now gets this error: >> >> > Checking form... >> > [Fatal Error] lowLevelTest2.xml:37:9: The element type "value" must be >> > terminated by the matching end-tag "". >> >> > It do not like the inserted tag!? (I tryed inserting a new end >> > tag, but it just crash) >> >> > On 11 Okt., 19:43, Mitch Sundt wrote: >> >> The problem is in the select1 definition, as Andrew identified. You have: >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> The tags here must contain a value that will be stored in the >> >> submission record. This is like a coding value in an old-style >> >> questionnaire. As written, you've defined a select1 but both of the choices >> >> (option0 and option1) will code to nothing. A valid select1 would be: >> >> >> >> >> >> >> >> >> >> >> >> >> option0ChoiceCodingValue >> >> >> >> >> >> >> >> option1ChoiceCodingValue >> >> >> >> >> >> >> Mitch >> >> >> On Tue, Oct 11, 2011 at 6:42 AM, Martin Mosgaard Knudsen < martinmosga...@gmail.com> wrote: >> >> > Hi Andrew >> >> >> > Thanks for fast reply. >> >> >> > But it seems very strange to me, and I'm not that into XML, but It's >> >> > like there is more tags end tags >> >> >> > I'll tryed to change the tag in the to Gul> >> > value>. (Its allready in the part) >> >> >> > Now I get it error : >> >> > Checking form... >> >> > [Fatal Error] lowLevelTest2.xml:36:9: The element type "value" must be >> >> > terminated by the matching end-tag "". >> >> >> > On 11 Okt., 14:53, Andrew Marder wrote: >> >> > > Hi Martin, >> >> >> > > One possible problem is that your items have no values. You might try >> >> > > replacing with something like Gul. >> >> >> > > Andrew >> >> >> > > On Tue, Oct 11, 2011 at 6:32 AM, Martin Mosgaard Knudsen wrote: >> >> > > > Hi ODK team >> >> >> > > > I have big problems getting my form to work and upload it to the >> >> > Aggregate >> >> > > > server (I use version 0.9.8 on google App engine) >> >> >> > > > I'm trying to make a simple option field(with two options) in my form, >> >> > but >> >> > > > it won't parse? I'm using the ODK build site to make my form. >> >> >> > > > I'm getting this error when trying to Validate the form: (and I have >> >> > the >> >> > > > data id tag in place) >> >> >> > > > Checking form... >> >> > > > Parsing form... >> >> > > > Title: "lowLevelTest2" >> >> > > > java.lang.NullPointerException >> >> > > > at >> >> > org.javarosa.xform.parse.XFormParser.parseItem(XFormParser.java:899) >> >> > > > at >> >> > > > org.javarosa.xform.parse.XFormParser.parseControl(XFormParser.java:610) >> >> > > > at >> >> > org.javarosa.xform.parse.XFormParser$7.handle(XFormParser.java:150) >> >> >> > > > and this when uploading to Aggregate: >> >> > > > Error: Problem with JavaRosa Parsing Form:null >> >> >> > > > This is my form: >> >> >> > > > > >> > > > xmlns:h="http://www.w3.org/1999/xhtml" >> >> > > > xmlns:ev="http://www.w3.org/2001/xml-events" >> >> > > > xmlns:xsd="http://www.w3.org/2001/XMLSchema" >> >> > > > xmlns:jr="http://openrosa.org/javarosa"> >> >> > > > >> >> > > > lowLevelTest2 >> >> > > > >> >> > > > >> >> > > > >> >> > > > >> >> > > > >> >> > > > >> >> > > > >> >> > > > >> >> > > > >> >> > > > Her kan du svare? >> >> > > > >> >> > > > >> >> > > > >> >> > > > >> >> > > > >> >> > > > Gul >> >> > > > >> >> > > > >> >> > > > Grøn >> >> > > > >> >> > > > >> >> > > > >> >> > > > >> >> > > > >> >> > > > >> >> > > > >> >> > > > >> >> > > > >> >> > > > >> >> > > > >> >> > > > >> >> > > > >> >> > > > >> >> > > > >> >> > > > >> >> > > > >> >> > > > >> >> > > > >> >> > > > >> >> > > > >> >> >> > > > Can anybody help me to locate the problem? This would be really great >> >> > if I >> >> > > > can get this to work... >> >> >> > > > Thanks! >> >> >> > > > -- >> >> > > > Venlig hilsen >> >> >> > > > Martin Mosgaard Knudsen >> >> >> > > > Dommervænget 22 1. tv >> >> > > > 4000 Roskilde >> >> >> > > > tlf.: 61 69 14 57 >> >> > > > email: martinmosga...@gmail.com / mm...@hotmail.com >> >> >> > > > -- >> >> > > > Post: opendatakit@googlegroups.com >> >> > > > Unsubscribe: opendatakit+unsubscribe@googlegroups.com >> >> > > > Options:http://groups.google.com/group/opendatakit?hl=en-Skjultekst >> >> > i anførselstegn - >> >> >> > > - Vis tekst i anførselstegn - >> >> >> > -- >> >> > Post: opendatakit@googlegroups.com >> >> > Unsubscribe: opendatakit+unsubscribe@googlegroups.com >> >> > Options:http://groups.google.com/group/opendatakit?hl=en >> >> >> -- >> >> Mitch Sundt >> >> Software Engineerhttp://www.OpenDataKit.org >> >> University of Washington >> >> mitchellsu...@gmail.com- Skjul tekst i anførselstegn - >> >> >> - Vis tekst i anførselstegn - >> >> > -- >> > Post: opendatakit@googlegroups.com >> > Unsubscribe: opendatakit+unsubscribe@googlegroups.com >> > Options:http://groups.google.com/group/opendatakit?hl=en > > -- > Post: opendatakit@googlegroups.com > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > Options: http://groups.google.com/group/opendatakit?hl=en >

When you do get errors like this, the error identifies the line and column
where there is a problem:

[Fatal Error] lowLevelTest2.xml:17:13: The element type "value" must
be terminated by the matching end-tag "".

This error identifies line 17, column 13 as the area where there is a
problem. XML syntax is somewhat confusing:

-- means that there is no data for the "value" tag.
-- marks the start of data for the "value" tag.
-- marks the end of data for the "value" tag.

Your errors are because you are writing:

my data for this tag

instead of correct XML:

my data for this tag

Mitch

··· On Wed, Oct 12, 2011 at 7:25 AM, Andrew Marder wrote:

Hi Martin,

I would suggest using ODK Build. It's much easier to build an XForm
with Build than it is to write one by hand.

http://build.opendatakit.org/

Andrew

On Wed, Oct 12, 2011 at 1:05 PM, Martin Mosgaard Knudsen martinmosgaard@gmail.com wrote:

Thank again for trying to help.

I maked the change, see here:
http://dpaste.com/632943/ (I'll maked the code easier to look at)

I still got the same error: (I understand more of the XML now, but not
enought to make it right)

Checking form...
[Fatal Error] lowLevelTest2.xml:17:13: The element type "value" must
be terminated by the matching end-tag "".

On 12 Okt., 10:51, Gaetano Borriello gaet...@cs.washington.edu wrote:

Change line 13 to:

Here is question text

and line 16 to:

and here is hint text

On Wed, Oct 12, 2011 at 12:25 AM, Martin Mosgaard Knudsen martinmosga...@gmail.com wrote:

Hi Mitch

I tryed both what you and Andrew described: se the code here:

http://dpaste.com/632736/

But now gets this error:

Checking form...
[Fatal Error] lowLevelTest2.xml:37:9: The element type "value" must be
terminated by the matching end-tag "".

It do not like the inserted tag!? (I tryed inserting a new end
tag, but it just crash)

On 11 Okt., 19:43, Mitch Sundt msu...@cs.washington.edu wrote:

The problem is in the select1 definition, as Andrew identified. You
have:

The tags here must contain a value that will be stored in
the
submission record. This is like a coding value in an old-style
questionnaire. As written, you've defined a select1 but both of the
choices
(option0 and option1) will code to nothing. A valid select1 would
be:

option0ChoiceCodingValue option1ChoiceCodingValue

Mitch

On Tue, Oct 11, 2011 at 6:42 AM, Martin Mosgaard Knudsen < martinmosga...@gmail.com> wrote:

Hi Andrew

Thanks for fast reply.

But it seems very strange to me, and I'm not that into XML, but
It's
like there is more tags end tags

I'll tryed to change the tag in the <h:body> to
Gul</
value>. (Its allready in the <h:head> part)

Now I get it error :
Checking form...
[Fatal Error] lowLevelTest2.xml:36:9: The element type "value" must
be
terminated by the matching end-tag "".

On 11 Okt., 14:53, Andrew Marder andrew.ei.mar...@gmail.com wrote:

Hi Martin,

One possible problem is that your items have no values. You might
try
replacing with something like Gul.

Andrew

On Tue, Oct 11, 2011 at 6:32 AM, Martin Mosgaard Knudsen martinmosga...@gmail.com wrote:

Hi ODK team

I have big problems getting my form to work and upload it to
the
Aggregate
server (I use version 0.9.8 on google App engine)

I'm trying to make a simple option field(with two options) in
my form,
but
it won't parse? I'm using the ODK build site to make my form.

I'm getting this error when trying to Validate the form: (and I
have
the
data id tag in place)

Checking form...
Parsing form...
Title: "lowLevelTest2"
java.lang.NullPointerException
at

org.javarosa.xform.parse.XFormParser.parseItem(XFormParser.java:899)

at

org.javarosa.xform.parse.XFormParser.parseControl(XFormParser.java:610)

at

org.javarosa.xform.parse.XFormParser$7.handle(XFormParser.java:150)

and this when uploading to Aggregate:
Error: Problem with JavaRosa Parsing Form:null

This is my form:

<h:html xmlns="http://www.w3.org/2002/xforms"
xmlns:h="http://www.w3.org/1999/xhtml"
xmlns:ev="http://www.w3.org/2001/xml-events"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:jr="http://openrosa.org/javarosa">
<h:head>
<h:title>lowLevelTest2</h:title>









Her kan du svare?





Gul


Grøn





</h:head>
<h:body>












</h:body>
</h:html>

Can anybody help me to locate the problem? This would be really
great
if I
can get this to work...

Thanks!

--
Venlig hilsen

Martin Mosgaard Knudsen

Dommervænget 22 1. tv
4000 Roskilde

tlf.: 61 69 14 57
email: martinmosga...@gmail.com / mm...@hotmail.com

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options:
http://groups.google.com/group/opendatakit?hl=en-Skjultekst
i anførselstegn -

  • Vis tekst i anførselstegn -

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options:http://groups.google.com/group/opendatakit?hl=en

--
Mitch Sundt
Software Engineerhttp://www.OpenDataKit.org
University of Washington
mitchellsu...@gmail.com- Skjul tekst i anførselstegn -

  • Vis tekst i anførselstegn -

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options:http://groups.google.com/group/opendatakit?hl=en

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

--
Mitch Sundt
Software Engineer
http://www.OpenDataKit.org
University of Washington
mitchellsundt@gmail.com

Hi Mitch

Thanks a lot, you are totally right about the tags - and that was the
problem.

My form is now working. :slight_smile:

··· On 12 Okt., 18:59, Mitch Sundt wrote: > When you do get errors like this, the error identifies the line and column > where there is a problem: > > [Fatal Error] lowLevelTest2.xml:17:13: The element type "value" must > be terminated by the matching end-tag "". > > This error identifies line 17, column 13 as the area where there is a > problem. XML syntax is somewhat confusing: > > -- means that there is no data for the "value" tag. > -- marks the start of data for the "value" tag. > -- marks the end of data for the "value" tag. > > Your errors are because you are writing: > > my data for this tag > > instead of correct XML: > > my data for this tag > > Mitch > > On Wed, Oct 12, 2011 at 7:25 AM, Andrew Marder wrote: > > > > > > > > > > > Hi Martin, > > > I would suggest using ODK Build. It's much easier to build an XForm > > with Build than it is to write one by hand. > > >http://build.opendatakit.org/ > > > Andrew > > > On Wed, Oct 12, 2011 at 1:05 PM, Martin Mosgaard Knudsen wrote: > > > Thank again for trying to help. > > > > I maked the change, see here: > > >http://dpaste.com/632943/ (I'll maked the code easier to look at) > > > > I still got the same error: (I understand more of the XML now, but not > > > enought to make it right) > > > > Checking form... > > > [Fatal Error] lowLevelTest2.xml:17:13: The element type "value" must > > > be terminated by the matching end-tag "". > > > > On 12 Okt., 10:51, Gaetano Borriello wrote: > > >> Change line 13 to: > > > >> Here is question text > > > >> and line 16 to: > > > >> and here is hint text > > > >> On Wed, Oct 12, 2011 at 12:25 AM, Martin Mosgaard Knudsen wrote: > > >> > Hi Mitch > > > >> > I tryed both what you and Andrew described: se the code here: > > > >> >http://dpaste.com/632736/ > > > >> > But now gets this error: > > > >> > Checking form... > > >> > [Fatal Error] lowLevelTest2.xml:37:9: The element type "value" must be > > >> > terminated by the matching end-tag "". > > > >> > It do not like the inserted tag!? (I tryed inserting a new end > > >> > tag, but it just crash) > > > >> > On 11 Okt., 19:43, Mitch Sundt wrote: > > >> >> The problem is in the select1 definition, as Andrew identified. You > > have: > > > >> >> > > >> >> > > >> >> > > >> >> > > >> >> > > >> >> > > >> >> > > >> >> > > >> >> > > >> >> > > >> >> > > >> >> > > > >> >> The tags here must contain a value that will be stored in > > the > > >> >> submission record. This is like a coding value in an old-style > > >> >> questionnaire. As written, you've defined a select1 but both of the > > choices > > >> >> (option0 and option1) will code to nothing. A valid select1 would > > be: > > > >> >> > > >> >> > > >> >> > > >> >> > > >> >> > > >> >> option0ChoiceCodingValue > > >> >> > > >> >> > > >> >> > > >> >> option1ChoiceCodingValue > > >> >> > > >> >> > > > >> >> Mitch > > > >> >> On Tue, Oct 11, 2011 at 6:42 AM, Martin Mosgaard Knudsen < martinmosga...@gmail.com> wrote: > > >> >> > Hi Andrew > > > >> >> > Thanks for fast reply. > > > >> >> > But it seems very strange to me, and I'm not that into XML, but > > It's > > >> >> > like there is more tags end tags > > > >> >> > I'll tryed to change the tag in the to > > Gul > >> >> > value>. (Its allready in the part) > > > >> >> > Now I get it error : > > >> >> > Checking form... > > >> >> > [Fatal Error] lowLevelTest2.xml:36:9: The element type "value" must > > be > > >> >> > terminated by the matching end-tag "". > > > >> >> > On 11 Okt., 14:53, Andrew Marder wrote: > > >> >> > > Hi Martin, > > > >> >> > > One possible problem is that your items have no values. You might > > try > > >> >> > > replacing with something like Gul. > > > >> >> > > Andrew > > > >> >> > > On Tue, Oct 11, 2011 at 6:32 AM, Martin Mosgaard Knudsen wrote: > > >> >> > > > Hi ODK team > > > >> >> > > > I have big problems getting my form to work and upload it to > > the > > >> >> > Aggregate > > >> >> > > > server (I use version 0.9.8 on google App engine) > > > >> >> > > > I'm trying to make a simple option field(with two options) in > > my form, > > >> >> > but > > >> >> > > > it won't parse? I'm using the ODK build site to make my form. > > > >> >> > > > I'm getting this error when trying to Validate the form: (and I > > have > > >> >> > the > > >> >> > > > data id tag in place) > > > >> >> > > > Checking form... > > >> >> > > > Parsing form... > > >> >> > > > Title: "lowLevelTest2" > > >> >> > > > java.lang.NullPointerException > > >> >> > > > at > > > org.javarosa.xform.parse.XFormParser.parseItem(XFormParser.java:899) > > >> >> > > > at > > > org.javarosa.xform.parse.XFormParser.parseControl(XFormParser.java:610) > > >> >> > > > at > > >> >> > org.javarosa.xform.parse.XFormParser$7.handle(XFormParser.java:150) > > > >> >> > > > and this when uploading to Aggregate: > > >> >> > > > Error: Problem with JavaRosa Parsing Form:null > > > >> >> > > > This is my form: > > > >> >> > > > > >> >> > > > xmlns:h="http://www.w3.org/1999/xhtml" > > >> >> > > > xmlns:ev="http://www.w3.org/2001/xml-events" > > >> >> > > > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > > >> >> > > > xmlns:jr="http://openrosa.org/javarosa"> > > >> >> > > > > > >> >> > > > lowLevelTest2 > > >> >> > > > > > >> >> > > > > > >> >> > > > > > >> >> > > > > > >> >> > > > > > >> >> > > > > > >> >> > > > > > >> >> > > > > > >> >> > > > > > >> >> > > > Her kan du svare? > > >> >> > > > > > >> >> > > > > > >> >> > > > > > >> >> > > > > > >> >> > > > > > >> >> > > > Gul > > >> >> > > > > > >> >> > > > > > >> >> > > > Grøn > > >> >> > > > > > >> >> > > > > > >> >> > > > > > >> >> > > > > required="true()"/> > > >> >> > > > > > >> >> > > > > > >> >> > > > > > >> >> > > > > > >> >> > > > > > >> >> > > > > > >> >> > > > > > >> >> > > > > > >> >> > > > > > >> >> > > > > > >> >> > > > > > >> >> > > > > > >> >> > > > > > >> >> > > > > > >> >> > > > > > >> >> > > > > > >> >> > > > > > > >> >> > > > Can anybody help me to locate the problem? This would be really > > great > > >> >> > if I > > >> >> > > > can get this to work... > > > >> >> > > > Thanks! > > > >> >> > > > -- > > >> >> > > > Venlig hilsen > > > >> >> > > > Martin Mosgaard Knudsen > > > >> >> > > > Dommervænget 22 1. tv > > >> >> > > > 4000 Roskilde > > > >> >> > > > tlf.: 61 69 14 57 > > >> >> > > > email: martinmosga...@gmail.com / mm...@hotmail.com > > > >> >> > > > -- > > >> >> > > > Post: opendatakit@googlegroups.com > > >> >> > > > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > > >> >> > > > Options: > >http://groups.google.com/group/opendatakit?hl=en-Skjultekst > > >> >> > i anførselstegn - > > > >> >> > > - Vis tekst i anførselstegn - > > > >> >> > -- > > >> >> > Post: opendatakit@googlegroups.com > > >> >> > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > > >> >> > Options:http://groups.google.com/group/opendatakit?hl=en > > > >> >> -- > > >> >> Mitch Sundt > > >> >> Software Engineerhttp://www.OpenDataKit.org > > >> >> University of Washington > > >> >> mitchellsu...@gmail.com- Skjul tekst i anførselstegn - > > > >> >> - Vis tekst i anførselstegn - > > > >> > -- > > >> > Post: opendatakit@googlegroups.com > > >> > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > > >> > Options:http://groups.google.com/group/opendatakit?hl=en > > > > -- > > > Post: opendatakit@googlegroups.com > > > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > > > Options:http://groups.google.com/group/opendatakit?hl=en > > > -- > > Post: opendatakit@googlegroups.com > > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > > Options:http://groups.google.com/group/opendatakit?hl=en > > -- > Mitch Sundt > Software Engineerhttp://www.OpenDataKit.org > University of Washington > mitchellsu...@gmail.com