Javarosa parser error

I have moved this post from the Users Group to here per Will Pride

If you're having issues running CommCareHQ locally then please
email commcare-developers
https://groups.google.com/forum/#!forum/commcare-developers rather than
this group.

Cheers,
Will

Does anyone know where I can refresh the JavaRosa parser mentioned above?

I have a application that I have set up using the default case management
application template.

Register Household - main form, creates case and sets properties.

Edit Household - edit form for case property modifications

Registration works fine, case selection works fine on the edit household
form but will not populate the data form with the case properties.

I hate the new format by the way.......

with the new easy reference you have to drag the case property to the
default value on each question. This would be great but it is not working

I am getting this error on save form.....

Errors making a new version:

  • Validation Error: Parsing form...
    Title: "Copy of Register Household"
    Multiple instances not supported. Ignoring subsequent instances.
    Problem found at nodeset: /html[@ignore=richText]/head/model/instance
    With element

Multiple instances not supported. Ignoring subsequent instances.
Problem found at nodeset: /html[@ignore=richText]/head/model/instance
With element

Exception in thread "main" org.javarosa.xform.parse.XFormParseException:
Unrecognized top-level tag [setvalue] found within
Problem found at nodeset: /html[@ignore=richText]/head/model/setvalue
With element

at org.javarosa.xform.parse.XFormParser.parseModel(XFormParser.java:440)
at org.javarosa.xform.parse.XFormParser.access$200(XFormParser.java:77)
at org.javarosa.xform.parse.XFormParser$3.handle(XFormParser.java:150)
at
org.javarosa.xform.parse.XFormParser.parseElement(XFormParser.java:350)
at
org.javarosa.xform.parse.XFormParser.parseElement(XFormParser.java:361)
at
org.javarosa.xform.parse.XFormParser.parseElement(XFormParser.java:361)
at org.javarosa.xform.parse.XFormParser.parseDoc(XFormParser.java:316)
at org.javarosa.xform.parse.XFormParser.parse(XFormParser.java:267)
at
org.javarosa.xform.util.XFormUtils.getFormFromInputStream(XFormUtils.java:72)
at org.javarosa.xform.schema.Harness.main(Harness.java:120)
in form

John -

Not sure about that exact error but I know of three places where we run
Java code in the standard install:

  1. The Touchforms submodule (used for CloudCare, not likely the culprit
    here)
  2. The form-translate submodule (used when validating builds, possibly
    the culprit here)
  3. The manually uploaded jar artifacts (as described here
    https://github.com/dimagi/commcare-hq/blob/474ac90617896c05676de7f1e56fd0743d48fffa/corehq/apps/builds/README.md)
  • in my guess the most likely issue

I'd make sure those two submodules are updated, then if not upload the
newest jar artifacts from our build server to your local instance.

Cheers,
Will

··· On Sun, Oct 2, 2016 at 11:00 AM, John Harper <john.harper@grableservices.com wrote:

I have moved this post from the Users Group to here per Will Pride

If you're having issues running CommCareHQ locally then please
email commcare-developers
https://groups.google.com/forum/#!forum/commcare-developers rather than
this group.

Cheers,
Will

Does anyone know where I can refresh the JavaRosa parser mentioned above?

I have a application that I have set up using the default case management
application template.

Register Household - main form, creates case and sets properties.

Edit Household - edit form for case property modifications

Registration works fine, case selection works fine on the edit household
form but will not populate the data form with the case properties.

I hate the new format by the way.......

with the new easy reference you have to drag the case property to the
default value on each question. This would be great but it is not working

I am getting this error on save form.....

Errors making a new version:

  • Validation Error: Parsing form...
    Title: "Copy of Register Household"
    Multiple instances not supported. Ignoring subsequent instances.
    Problem found at nodeset: /html[@ignore=richText]/head/model/instance
    With element

Multiple instances not supported. Ignoring subsequent instances.
Problem found at nodeset: /html[@ignore=richText]/head/model/instance
With element

Exception in thread "main" org.javarosa.xform.parse.XFormParseException:
Unrecognized top-level tag [setvalue] found within
Problem found at nodeset: /html[@ignore=richText]/head/model/setvalue
With element

at org.javarosa.xform.parse.XFormParser.parseModel(XFormParser.
java:440)
at org.javarosa.xform.parse.XFormParser.access$200(XFormParser.java:77)
at org.javarosa.xform.parse.XFormParser$3.handle(XFormParser.java:150)
at org.javarosa.xform.parse.XFormParser.parseElement(XFormParse
r.java:350)
at org.javarosa.xform.parse.XFormParser.parseElement(XFormParse
r.java:361)
at org.javarosa.xform.parse.XFormParser.parseElement(XFormParse
r.java:361)
at org.javarosa.xform.parse.XFormParser.parseDoc(XFormParser.java:316)
at org.javarosa.xform.parse.XFormParser.parse(XFormParser.java:267)
at org.javarosa.xform.util.XFormUtils.getFormFromInputStream(XF
ormUtils.java:72)
at org.javarosa.xform.schema.Harness.main(Harness.java:120)
in form

--


You received this message because you are subscribed to the Google Groups
"CommCare Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hi John,

Will is correct in his email, the XForms action was added to the
parser/engine after the fork you are using, unfortunately, so the older
parser won't be able to use forms containing that construct.

The versions which don't support multiple instances or setvalue events are
quite old, it may help to know a bit how your CommCare HQ instance is
configured?

-Clayton

··· On Sun, Oct 2, 2016 at 6:39 PM, William Pride wrote:

John -

Not sure about that exact error but I know of three places where we run
Java code in the standard install:

  1. The Touchforms submodule (used for CloudCare, not likely the
    culprit here)
  2. The form-translate submodule (used when validating builds, possibly
    the culprit here)
  3. The manually uploaded jar artifacts (as described here
    https://github.com/dimagi/commcare-hq/blob/474ac90617896c05676de7f1e56fd0743d48fffa/corehq/apps/builds/README.md)
  • in my guess the most likely issue

I'd make sure those two submodules are updated, then if not upload the
newest jar artifacts from our build server to your local instance.

Cheers,
Will

On Sun, Oct 2, 2016 at 11:00 AM, John Harper <john.harper@grableservices. com> wrote:

I have moved this post from the Users Group to here per Will Pride

If you're having issues running CommCareHQ locally then please
email commcare-developers
https://groups.google.com/forum/#!forum/commcare-developers rather than
this group.

Cheers,
Will

Does anyone know where I can refresh the JavaRosa parser mentioned above?

I have a application that I have set up using the default case management
application template.

Register Household - main form, creates case and sets properties.

Edit Household - edit form for case property modifications

Registration works fine, case selection works fine on the edit household
form but will not populate the data form with the case properties.

I hate the new format by the way.......

with the new easy reference you have to drag the case property to the
default value on each question. This would be great but it is not working

I am getting this error on save form.....

Errors making a new version:

  • Validation Error: Parsing form...
    Title: "Copy of Register Household"
    Multiple instances not supported. Ignoring subsequent instances.
    Problem found at nodeset: /html[@ignore=richText]/head/model/instance
    With element

Multiple instances not supported. Ignoring subsequent instances.
Problem found at nodeset: /html[@ignore=richText]/head/model/instance
With element

Exception in thread "main" org.javarosa.xform.parse.XFormParseException:
Unrecognized top-level tag [setvalue] found within
Problem found at nodeset: /html[@ignore=richText]/head/model/setvalue
With element

at org.javarosa.xform.parse.XFormParser.parseModel(XFormParser.
java:440)
at org.javarosa.xform.parse.XFormParser.access$200(XFormParser.
java:77)
at org.javarosa.xform.parse.XFormParser$3.handle(XFormParser.java:150)
at org.javarosa.xform.parse.XFormParser.parseElement(XFormParse
r.java:350)
at org.javarosa.xform.parse.XFormParser.parseElement(XFormParse
r.java:361)
at org.javarosa.xform.parse.XFormParser.parseElement(XFormParse
r.java:361)
at org.javarosa.xform.parse.XFormParser.parseDoc(XFormParser.java:316)
at org.javarosa.xform.parse.XFormParser.parse(XFormParser.java:267)
at org.javarosa.xform.util.XFormUtils.getFormFromInputStream(XF
ormUtils.java:72)
at org.javarosa.xform.schema.Harness.main(Harness.java:120)
in form

--


You received this message because you are subscribed to the Google Groups
"CommCare Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--


You received this message because you are subscribed to the Google Groups
"CommCare Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.