AnsweredAssumed Answered

Gel Script Error after upgrade

Question asked by vivek.gupta4 on Apr 4, 2014
Latest reply on Apr 9, 2014 by gcubed

We have one Gel script which calls our custom Java class. This Gel script used to run perfectly in Clarity v12.1.1, but has started giving error after upgrade to Clarity v13.3.

The Gel script is something like:

<gel:script xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:core="jelly:core"
    xmlns:file="jelly:com.niku.union.gel.FileTagLibrary"
    xmlns:gel="jelly:com.niku.union.gel.GELTagLibrary"
    xmlns:soap="jelly:com.niku.union.gel.SOAPTagLibrary"
    xmlns:sql="jelly:sql" xmlns:xog="http://www.niku.com/xog" xmlns:util="jelly:util"
    <core:catch var="v_exception">
        <core:new className="AGClient" var="a"/>
        <core:invoke method="UploadtoAG" on="${a}" var="c">
            <core:arg type="boolean" value="true"/>
        </core:invoke>
    </core:catch>
    <core:choose>
        <!-- Check for errors -->
        <core:when test="${v_exception != null}">
            <gel:log>Error: ${v_exception}</gel:log>
        </core:when>
        <core:otherwise/>
    </core:choose>
</gel:script>
The Error is: "Error: org.apache.commons.jelly.JellyTagException: null:237:54: <core:invoke> method UploadtoAG threw exception: org/apache/ws/commons/schema/XmlSchemaException"
There is no log generated in app-ca.log or bg-ca.log
If I use the same class in a java program, it works perfectly fine, like this:
public class TestMe {
   public  static void main(String[] args) {
            AGClient agc = new AGClient();
            agc.UploadtoAG(true);
        }
    }

Outcomes