[ODK Community] Form Validation failure

There is a bug in how ODK Build is generating the forms. We are
working on a fix, but in the meanwhile, try removing all traces of
calculate="" from your form. I've attached a fixed version of your
form.

Site_Investigation_v5.xml (30 KB)

··· On Fri, Dec 28, 2012 at 8:20 AM, wrote: > I have the attached form built but it will not upload to Aggregate, I receive the following message from ODKValidate but can't really make out what is wrong. > > (I thought maybe it was empty value field in hints, but I deleted and receive the same message.) > > Parsing form... > Title: "Site_Investigation_v4" > Invalid XPath expression []! > java.lang.NullPointerException > java.lang.NullPointerException > at org.javarosa.core.model.FormDef.addTriggerable(FormDef.java:524) > at org.javarosa.xform.parse.XFormParser.processStandardBindAttributes(XFormParser.java:1501) > at org.javarosa.xform.parse.XFormParser.parseBind(XFormParser.java:1521) > at org.javarosa.xform.parse.XFormParser.parseModel(XFormParser.java:460) > at org.javarosa.xform.parse.XFormParser.access$200(XFormParser.java:78) > at org.javarosa.xform.parse.XFormParser$3.handle(XFormParser.java:153) > at org.javarosa.xform.parse.XFormParser.parseElement(XFormParser.java:375) > at org.javarosa.xform.parse.XFormParser.parseElement(XFormParser.java:386) > at org.javarosa.xform.parse.XFormParser.parseElement(XFormParser.java:386) > at org.javarosa.xform.parse.XFormParser.parseDoc(XFormParser.java:321) > at org.javarosa.xform.parse.XFormParser.parse(XFormParser.java:272) > at org.javarosa.xform.util.XFormUtils.getFormFromInputStream(XFormUtils.java:72) > at org.odk.validate.FormValidator.validate(FormValidator.java:322) > at org.odk.validate.FormValidator.actionPerformed(FormValidator.java:228) > at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) > at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) > at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) > at javax.swing.DefaultButtonModel.setPressed(Unknown Source) > at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source) > at java.awt.Component.processMouseEvent(Unknown Source) > at javax.swing.JComponent.processMouseEvent(Unknown Source) > at java.awt.Component.processEvent(Unknown Source) > at java.awt.Container.processEvent(Unknown Source) > at java.awt.Component.dispatchEventImpl(Unknown Source) > at java.awt.Container.dispatchEventImpl(Unknown Source) > at java.awt.Component.dispatchEvent(Unknown Source) > at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) > at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) > at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) > at java.awt.Container.dispatchEventImpl(Unknown Source) > at java.awt.Window.dispatchEventImpl(Unknown Source) > at java.awt.Component.dispatchEvent(Unknown Source) > at java.awt.EventQueue.dispatchEventImpl(Unknown Source) > at java.awt.EventQueue.access$200(Unknown Source) > at java.awt.EventQueue$3.run(Unknown Source) > at java.awt.EventQueue$3.run(Unknown Source) > at java.security.AccessController.doPrivileged(Native Method) > at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) > at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) > at java.awt.EventQueue$4.run(Unknown Source) > at java.awt.EventQueue$4.run(Unknown Source) > at java.security.AccessController.doPrivileged(Native Method) > at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) > at java.awt.EventQueue.dispatchEvent(Unknown Source) > at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) > at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) > at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) > at java.awt.EventDispatchThread.pumpEvents(Unknown Source) > at java.awt.EventDispatchThread.pumpEvents(Unknown Source) > at java.awt.EventDispatchThread.run(Unknown Source) > > >>> Something broke the parser. See above for a hint. > > -- > Post: opendatakit@googlegroups.com > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > Options: http://groups.google.com/group/opendatakit?hl=en

Just to follow up. This fix was pushed to the Build server a few days ago.

··· On Fri, Dec 28, 2012 at 10:05 AM, Yaw Anokwa wrote: > There is a bug in how ODK Build is generating the forms. We are > working on a fix, but in the meanwhile, try removing all traces of > calculate="" from your form. I've attached a fixed version of your > form. > > On Fri, Dec 28, 2012 at 8:20 AM, wrote: >> I have the attached form built but it will not upload to Aggregate, I receive the following message from ODKValidate but can't really make out what is wrong. >> >> (I thought maybe it was empty value field in hints, but I deleted and receive the same message.) >> >> Parsing form... >> Title: "Site_Investigation_v4" >> Invalid XPath expression []! >> java.lang.NullPointerException >> java.lang.NullPointerException >> at org.javarosa.core.model.FormDef.addTriggerable(FormDef.java:524) >> at org.javarosa.xform.parse.XFormParser.processStandardBindAttributes(XFormParser.java:1501) >> at org.javarosa.xform.parse.XFormParser.parseBind(XFormParser.java:1521) >> at org.javarosa.xform.parse.XFormParser.parseModel(XFormParser.java:460) >> at org.javarosa.xform.parse.XFormParser.access$200(XFormParser.java:78) >> at org.javarosa.xform.parse.XFormParser$3.handle(XFormParser.java:153) >> at org.javarosa.xform.parse.XFormParser.parseElement(XFormParser.java:375) >> at org.javarosa.xform.parse.XFormParser.parseElement(XFormParser.java:386) >> at org.javarosa.xform.parse.XFormParser.parseElement(XFormParser.java:386) >> at org.javarosa.xform.parse.XFormParser.parseDoc(XFormParser.java:321) >> at org.javarosa.xform.parse.XFormParser.parse(XFormParser.java:272) >> at org.javarosa.xform.util.XFormUtils.getFormFromInputStream(XFormUtils.java:72) >> at org.odk.validate.FormValidator.validate(FormValidator.java:322) >> at org.odk.validate.FormValidator.actionPerformed(FormValidator.java:228) >> at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) >> at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) >> at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) >> at javax.swing.DefaultButtonModel.setPressed(Unknown Source) >> at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source) >> at java.awt.Component.processMouseEvent(Unknown Source) >> at javax.swing.JComponent.processMouseEvent(Unknown Source) >> at java.awt.Component.processEvent(Unknown Source) >> at java.awt.Container.processEvent(Unknown Source) >> at java.awt.Component.dispatchEventImpl(Unknown Source) >> at java.awt.Container.dispatchEventImpl(Unknown Source) >> at java.awt.Component.dispatchEvent(Unknown Source) >> at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) >> at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) >> at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) >> at java.awt.Container.dispatchEventImpl(Unknown Source) >> at java.awt.Window.dispatchEventImpl(Unknown Source) >> at java.awt.Component.dispatchEvent(Unknown Source) >> at java.awt.EventQueue.dispatchEventImpl(Unknown Source) >> at java.awt.EventQueue.access$200(Unknown Source) >> at java.awt.EventQueue$3.run(Unknown Source) >> at java.awt.EventQueue$3.run(Unknown Source) >> at java.security.AccessController.doPrivileged(Native Method) >> at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) >> at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) >> at java.awt.EventQueue$4.run(Unknown Source) >> at java.awt.EventQueue$4.run(Unknown Source) >> at java.security.AccessController.doPrivileged(Native Method) >> at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) >> at java.awt.EventQueue.dispatchEvent(Unknown Source) >> at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) >> at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) >> at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) >> at java.awt.EventDispatchThread.pumpEvents(Unknown Source) >> at java.awt.EventDispatchThread.pumpEvents(Unknown Source) >> at java.awt.EventDispatchThread.run(Unknown Source) >> >> >>>> Something broke the parser. See above for a hint. >> >> -- >> Post: opendatakit@googlegroups.com >> Unsubscribe: opendatakit+unsubscribe@googlegroups.com >> Options: http://groups.google.com/group/opendatakit?hl=en