NullPointerException

hello

i am a new ODK developer, and as such am having problems with building
forms. when i have to insert radio button object i always get error
with uploading them form. This is the error message:

HTTP Status 400 - Problem with JavaRosa Parsing
Form:java.lang.NullPointerException

··· ------------------------------------------------------------------------

type Status report

message Problem with JavaRosa Parsing
Form:java.lang.NullPointerException

description The request sent by the client was syntactically
incorrect (Problem with JavaRosa Parsing
Form:java.lang.NullPointerException).


  Apache Tomcat/6.0.20

read http://opendatakit.org/help/form-design for form design tips.
use http://opendatakit.org/use/validate to catch form design bugs.

my guess is that you are creating selects without labels, items, or values.

··· On Tue, Dec 6, 2011 at 05:22, thapelo83 wrote: > hello > > i am a new ODK developer, and as such am having problems with building > forms. when i have to insert radio button object i always get error > with uploading them form. This is the error message: > > HTTP Status 400 - Problem with JavaRosa Parsing > Form:java.lang.NullPointerException > > ------------------------------------------------------------------------ > > *type* Status report > > *message* _Problem with JavaRosa Parsing > Form:java.lang.NullPointerException_ > > *description* _The request sent by the client was syntactically > incorrect (Problem with JavaRosa Parsing > Form:java.lang.NullPointerException)._ > > ------------------------------------------------------------------------ > > > Apache Tomcat/6.0.20

Dear Yaw

Thank you...It works

hi all,

i have a field with 8 checkboxes...the first is "none", second is "HIV",
third is "Cancer", and so on..i would want "none" to be selected if
none of the other 7 are selected; the other 7 can be selected together BUT
NOT with the "none" option. Either* *the *"none" option is by its
self, or the others can be selected together if not one of them.
*The
following *constraint *code works for just two options but not more:

WORKING CODE: * not(selected(., 'None') and selected(., 'HIV'))*

CODE NOT WORKING: not(selected(., 'None') and selected(., 'HIV') and
selected(., 'Cancer') and ......)

Please help.

Thank you in advance

··· **

Try:

not( selected(., 'None') and
(selected(., 'HIV') or selected(., 'Cancer') or ...)
)

··· On Thu, Dec 22, 2011 at 2:07 AM, Thapelo Khumomotse wrote: > hi all, > > i have a field with 8 checkboxes...the first is "none", second is "HIV", > third is "Cancer", and so on..i would want "none" to be selected if none of > the other 7 are selected; the other 7 can be selected together BUT NOT with > the "none" option. Either the "none" option is by its self, or the others > can be selected together if not one of them. The following constraint code > works for just two options but not more: > > WORKING CODE: not(selected(., 'None') and selected(., 'HIV')) > > CODE NOT WORKING: not(selected(., 'None') and selected(., 'HIV') and > selected(., 'Cancer') and ......) > > Please help. > > Thank you in advance

hi all,

thank you...it works now...thank you Gaetano Borriello and the rest of the
odk developers