AnsweredAssumed Answered

BPM-0704: An error occurred while executing custom script: org.apache.commons.jelly.JellyTagException: null:92:109: <gel:set> Missing or invalid XML at

Question asked by surya.naga.vinay.vinjamuri on Mar 26, 2019
Latest reply on Mar 26, 2019 by urmas

When I am running a process I get an error saying Invalid XML

 

The XML when run separately gives out the result. Please find below the XML I used and the Error which I am getting

 

<NikuDataBus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/nikuxog_user.xsd">
            <Header action="write" externalSource="NIKU" objectType="project" version="14.3.0.298"/>
  <!-- Creates the XML that is used to update the project -->
          <Projects>
            <Project name="${pj.rows[i].PROJECT_NAME}" projectID="${pj.rows[i].PROJECT_ID}"  managerResourceID="${pj.rows[i].APP_MANAGER}">
              <OBSAssocs completed="false">
                <OBSAssoc id="nov_future_obs" name="3. Future OBS" unitPath="${pj.rows[i].APP_OBS}"/>
   <!--  <OBSAssoc id="${v_dpt_obs_id}" name="${v_dpt_obs_name}" unitPath="${v_dpt_obs_path}"/>  -->
              </OBSAssocs>
            </Project>
          </Projects>
        </NikuDataBus>

 

 

ERROR:

 

BPM-0704: An error occurred while executing custom script: org.apache.commons.jelly.JellyTagException: null:92:109: <gel:set> Missing or invalid XML at com.niku.union.gel.tags.SetTag.doTag(SetTag.java:137) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186) at org.apache.commons.jelly.tags.core.OtherwiseTag.doTag(OtherwiseTag.java:41) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186) at org.apache.commons.jelly.tags.core.ChooseTag.doTag(ChooseTag.java:38) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186) at org.apache.commons.jelly.tags.core.ForEachTag.doTag(ForEachTag.java:150) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186) at org.apache.commons.jelly.tags.core.OtherwiseTag.doTag(OtherwiseTag.java:41) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186) at org.apache.commons.jelly.tags.core.ChooseTag.doTag(ChooseTag.java:38) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186) at com.niku.union.gel.tags.ScriptTag.doTag(ScriptTag.java:20) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247) at com.niku.union.gel.GELScript.run(GELScript.java:67) at com.niku.union.gel.GELController.invoke(GELController.java:74) at com.niku.bpm.services.ExecuteCustomAction.run(ExecuteCustomAction.java:207) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.NullPointerException at org.jaxen.dom.DocumentNavigator$1.getFirstNode(DocumentNavigator.java:155) at org.jaxen.dom.DocumentNavigator$NodeIterator.<init>(DocumentNavigator.java:894) at org.jaxen.dom.DocumentNavigator$1.<init>(DocumentNavigator.java:157) at org.jaxen.dom.DocumentNavigator.getChildAxisIterator(DocumentNavigator.java:152) at org.jaxen.util.DescendantAxisIterator.next(DescendantAxisIterator.java:129) at org.jaxen.expr.DefaultStep.evaluate(DefaultStep.java:154) at org.jaxen.expr.DefaultLocationPath.evaluate(DefaultLocationPath.java:140) at org.jaxen.expr.DefaultPathExpr.evaluate(DefaultPathExpr.java:142) at org.jaxen.expr.DefaultXPathExpr.asList(DefaultXPathExpr.java:102) at org.jaxen.BaseXPath.selectNodesForContext(BaseXPath.java:674) at org.jaxen.BaseXPath.selectNodes(BaseXPath.java:213) at org.jaxen.BaseXPath.selectSingleNode(BaseXPath.java:234) at com.niku.union.gel.tags.SetTag.doTag(SetTag.java:47) ... 31 more Root cause java.lang.NullPointerException at org.jaxen.dom.DocumentNavigator$1.getFirstNode(DocumentNavigator.java:155) at org.jaxen.dom.DocumentNavigator$NodeIterator.<init>(DocumentNavigator.java:894) at org.jaxen.dom.DocumentNavigator$1.<init>(DocumentNavigator.java:157) at org.jaxen.dom.DocumentNavigator.getChildAxisIterator(DocumentNavigator.java:152) at org.jaxen.util.DescendantAxisIterator.next(DescendantAxisIterator.java:129) at org.jaxen.expr.DefaultStep.evaluate(DefaultStep.java:154) at org.jaxen.expr.DefaultLocationPath.evaluate(DefaultLocationPath.java:140) at org.jaxen.expr.DefaultPathExpr.eva...

 

 

 

Please advice what can I do for this!

 

Regards,

Vinay

Outcomes