Another possible problem with build

since the upgrade there is now in advanced a field called calculate, I have
left this advanced fieled blank through the entire form. However when I
export the form to XML at the end of every single line in the binds I have
the expression,
calculate="()

this is an example of what I get in XML








I suspect that this may be an error as when I validate the form I get and
error that says
Parsing form...
Title: "Full Interview"
Invalid XPath expression [()]!
java.lang.NullPointerException
java.lang.NullPointerException
I did not get this error before the update to build.

Tomorrow morning I am going to do a global replace on calculate="() and see
if the form will then validate.

I will post up here what the result is.

Regards
Graham

Hey Graham:

How about now? :slight_smile:

-Clint

··· On Wednesday, December 19, 2012 at 9:15 AM, Graham wrote:

since the upgrade there is now in advanced a field called calculate, I have left this advanced fieled blank through the entire form. However when I export the form to XML at the end of every single line in the binds I have the expression,
calculate="()

this is an example of what I get in XML

I suspect that this may be an error as when I validate the form I get and error that says
Parsing form...
Title: "Full Interview"
Invalid XPath expression [()]!
java.lang.NullPointerException
java.lang.NullPointerException
I did not get this error before the update to build.

Tomorrow morning I am going to do a global replace on calculate="() and see if the form will then validate.

I will post up here what the result is.

Regards
Graham

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

Sorry Clint I had been at work for 11 hours by then and it was time to go.
I have done a global replace and the previous error mentioned earlier has
now gone. However I now have a load of other errors copied below and I am
not sure if these have anything to do with the global replace I have just
done. This is all getting a bit frustrating as I would expect a form that
has been built in builder to pass verification without me having to hack it
around.
I will have a look at the XML and report back

Parsing form...
Title: "Full Interview"
XPath Dependency Cycle:
/data/P11/sec_res_add => /data/P11/sec_res_add
/data/P12/sec_res_add => /data/P12/sec_res_add
/data/P10/sec_res_add => /data/P10/sec_res_add
/data/P8/sec_res_add => /data/P8/sec_res_add
/data/P9/sec_res_add => /data/P9/sec_res_add
/data/P6/sec_res_add => /data/P6/sec_res_add
/data/P7/sec_res_add => /data/P7/sec_res_add
/data/P4/sec_res_add => /data/P4/sec_res_add
/data/P5/sec_res_add => /data/P5/sec_res_add
/data/P2/sec_res_add => /data/P2/sec_res_add
/data/P3/sec_res_add => /data/P3/sec_res_add
java.lang.RuntimeException: Dependency cycles amongst the xpath expressions
in relevant/calculate
java.lang.RuntimeException: Dependency cycles amongst the xpath expressions
in relevant/calculate
at
org.javarosa.xform.parse.XFormParser.checkDependencyCycles(XFormParser.java:2415)
at
org.javarosa.xform.parse.XFormParser.addMainInstanceToFormDef(XFormParser.java:1590)
at org.javarosa.xform.parse.XFormParser.parseDoc(XFormParser.java:341)
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.

On Wednesday, 19 December 2012 18:13:13 UTC, Clint Tseng wrote:

Hey Graham:

How about now? :slight_smile:

-Clint

On Wednesday, December 19, 2012 at 9:15 AM, Graham wrote:

since the upgrade there is now in advanced a field called calculate, I
have left this advanced fieled blank through the entire form. However when
I export the form to XML at the end of every single line in the binds I
have the expression,
calculate="()

this is an example of what I get in XML








I suspect that this may be an error as when I validate the form I get and
error that says
Parsing form...
Title: "Full Interview"
Invalid XPath expression [()]!
java.lang.NullPointerException
java.lang.NullPointerException
I did not get this error before the update to build.

Tomorrow morning I am going to do a global replace on calculate="() and
see if the form will then validate.

I will post up here what the result is.

Regards
Graham

--
Post: opend...@googlegroups.com <javascript:>
Unsubscribe: opendatakit...@googlegroups.com <javascript:>
Options: http://groups.google.com/group/opendatakit?hl=en

Whoops ok so that error is me being a bit to free with copy and paste.
so the finding is the new calculate field in advanced, even if it is not
used is appended to every bind statement. The work round is to replace
calculate="() with nothing and the form will parse ok.
Please note though that this morning you can load forms into build and edit
them but you can not export them to XML, when you try the entire screen
greys out and nothing works the only way out is to shut down build and
restart

··· On Thursday, 20 December 2012 07:16:03 UTC, Graham wrote: > > Sorry Clint I had been at work for 11 hours by then and it was time to go. > I have done a global replace and the previous error mentioned earlier has > now gone. However I now have a load of other errors copied below and I am > not sure if these have anything to do with the global replace I have just > done. > I will have a look at the XML and report back > > Parsing form... > Title: "Full Interview" > XPath Dependency Cycle: > /data/P11/sec_res_add => /data/P11/sec_res_add > /data/P12/sec_res_add => /data/P12/sec_res_add > /data/P10/sec_res_add => /data/P10/sec_res_add > /data/P8/sec_res_add => /data/P8/sec_res_add > /data/P9/sec_res_add => /data/P9/sec_res_add > /data/P6/sec_res_add => /data/P6/sec_res_add > /data/P7/sec_res_add => /data/P7/sec_res_add > /data/P4/sec_res_add => /data/P4/sec_res_add > /data/P5/sec_res_add => /data/P5/sec_res_add > /data/P2/sec_res_add => /data/P2/sec_res_add > /data/P3/sec_res_add => /data/P3/sec_res_add > java.lang.RuntimeException: Dependency cycles amongst the xpath > expressions in relevant/calculate > java.lang.RuntimeException: Dependency cycles amongst the xpath > expressions in relevant/calculate > at > org.javarosa.xform.parse.XFormParser.checkDependencyCycles(XFormParser.java:2415) > at > org.javarosa.xform.parse.XFormParser.addMainInstanceToFormDef(XFormParser.java:1590) > at org.javarosa.xform.parse.XFormParser.parseDoc(XFormParser.java:341) > 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. > > > On Wednesday, 19 December 2012 18:13:13 UTC, Clint Tseng wrote: >> >> Hey Graham: >> >> How about now? :) >> >> -Clint >> >> On Wednesday, December 19, 2012 at 9:15 AM, Graham wrote: >> >> since the upgrade there is now in advanced a field called calculate, I >> have left this advanced fieled blank through the entire form. However when >> I export the form to XML at the end of every single line in the binds I >> have the expression, >> calculate="() >> >> this is an example of what I get in XML >> >> > relevant="(/data/interview_now =0)" calculate="()"/> >> > relevant="(/data/interview_now =0)" calculate="()"/> >> > relevant="(/data/interview_now =0)" calculate="()"/> >> > relevant="(/data/interview_now =0)" calculate="()"/> >> > relevant="(/data/interview_now =0)" calculate="()"/> >> > relevant="(/data/interview_now =0)" calculate="()"/> >> > relevant="(/data/interview_now =0)" calculate="()"/> >> > relevant="(/data/interview_now =0)" calculate="()"/> >> >> I suspect that this may be an error as when I validate the form I get and >> error that says >> Parsing form... >> Title: "Full Interview" >> Invalid XPath expression [()]! >> java.lang.NullPointerException >> java.lang.NullPointerException >> I did not get this error before the update to build. >> >> Tomorrow morning I am going to do a global replace on calculate="() and >> see if the form will then validate. >> >> I will post up here what the result is. >> >> Regards >> Graham >> >> -- >> Post: opend...@googlegroups.com >> Unsubscribe: opendatakit...@googlegroups.com >> Options: http://groups.google.com/group/opendatakit?hl=en >> >> >>