Clarity

  • 1.  Gel script Error on process execute

    Posted Sep 11, 2014 06:21 AM


    Dear Friends,

    I am getting below error while processing a process. Need your help .

    Note:: We have migrated our system from 12.0.5 to 13.3

    Headers included::

        xmlns:core="jelly:core"

    xmlns:sql="jelly:sql"

    xmlns:x="jelly:xml"

        xmlns:file="jelly:com.niku.union.gel.FileTagLibrary"

        xmlns:ftp="jelly:com.niku.union.gel.FTPTagLibrary"

        xmlns:gel="jelly:com.niku.union.gel.GELTagLibrary"

        xmlns:soap="jelly:com.niku.union.gel.SOAPTagLibrary"

    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"

    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

        xmlns:xog="http://www.niku.com/xog"

        xmlns:xsd="http://www.w3.org/2001/XMLSchema"

    Error:::

    BPM-0704: An error occurred while executing custom script: org.apache.commons.jelly.JellyTagException: null:175:108: <gel:forEach> Cannot resolve namespace prefix 'soap-env' at org.apache.commons.jelly.tags.xml.ForEachTag.doTag(ForEachTag.java:64) 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.IfTag.doTag(IfTag.java:42) 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:48) 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:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) Caused by: org.jaxen.UnresolvableException: Cannot resolve namespace prefix 'soap-env' at org.jaxen.expr.DefaultNameStep.matches(DefaultNameStep.java:340) at org.jaxen.expr.DefaultNameStep.evaluate(DefaultNameStep.java:209) 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.apache.commons.jelly.tags.xml.ForEachTag.doTag(ForEachTag.java:61) ... 15 more Root cause org.jaxen.UnresolvableException: Cannot resolve namespace prefix 'soap-env' at org.jaxen.expr.DefaultNameStep.matches(DefaultNameStep.java:340) at org.jaxen.expr.DefaultNameStep.evaluate(DefaultNameStep.java:209) 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.apache.commons.jelly.tags.xml.ForEachTag.doTag(ForEachTag.java:61) 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.IfTag.doTag(IfTag.java:42) 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:48) 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:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724)

     

    Best Regards,

    Lalatendu



  • 2.  Re: Gel script Error on process execute

    Broadcom Employee
    Posted Sep 11, 2014 06:50 AM


  • 3.  Re: Gel script Error on process execute

    Posted Sep 11, 2014 07:41 AM

    This is not helping me



  • 4.  Re: Gel script Error on process execute

    Posted Sep 11, 2014 06:52 AM

    The error says "Cannot resolve namespace prefix 'soap-env'"

     

    You have not included anything called "soap-env" (you do have "soapenv" (no-hyphen) though)?



  • 5.  Re: Gel script Error on process execute

    Posted Sep 11, 2014 07:42 AM

    Hi,

    I am using the below tag for soap call

     

     

            <soap:invoke endpoint="internal" var="user_contr_xogresponse">

                <soap:message>

                    <soap-env:Envelope

                        xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">

          <SOAP-ENV:Header/>

                        <soap-env:Body>

            <Login xmlns="http://www.niku.com/xog">

              <Username>${v_xog_Username}</Username>

              <Password>${v_xog_Password}</Password>

            </Login>

                            <gel:include select="$loadcontent_user_xog_query"/>

                        </soap-env:Body>

                    </soap-env:Envelope>

                </soap:message>

            </soap:invoke>

     

    Best Regards,

    Lalatendu



  • 6.  Re: Gel script Error on process execute

    Posted Sep 11, 2014 08:00 AM

    The error (the "Cannot resolve namespace prefix 'soap-env'") appears to me to be complaining about something in the GEL script (since in context it says "<gel:forEach> Cannot resolve namespace prefix 'soap-env'").

     

    You also posted a list of the included headers in your GEL script and none of those were for 'soap-env' - not sure what you think the the soap call has to do with that though.

     

    (to be clear though, I'm just GUESSing here based on what that error message says)



  • 7.  Re: Gel script Error on process execute

    Posted Sep 11, 2014 08:43 AM

    Yes, as Dave mentioned soap-env could be the issue and not the invoke part.


    From XOG Developer guide,


    <soap:invoke endpoint="http://localhost/niku/xog" var="xogresponse">

    <soap:message>

    <soapenv:Envelope>

    <soapenv:Header>

    CA AuthMinder

    <Username>admin</Username>

    <Password>niku2000</Password>

    </Auth>

    </soapenv:Header>

    <soapenv:Body>

    <gel:include select="$xoginput"/>

    </soapenv:Body>

    </soapenv:Envelope>

    </soap:message>

    </soap:invoke>



  • 8.  Re: Gel script Error on process execute
    Best Answer

    Posted Sep 11, 2014 08:56 AM

    Hi All,

    The issue got resolved.

    In the scipt it checks the output to be success or not.

    on V12 the output come with 

    <soap-env:Envelope>

     

    But on V13 the out put is comming with

      <soapenv:Envelope>

    So the script could able to find the proper tag on output file.

    So it was giving error.

     

    Many Thanks for your help.


    Best Regards,

    Lalatendu