Clarity PPM

Expand all | Collapse all

GEL -- Unable to successfully run script -- Java error

Jump to Best Answer
  • 1.  GEL -- Unable to successfully run script -- Java error

    Posted 11-21-2017 01:27 PM

    I am having issues with my implementation of XOG/GEL.  To be more precise, it it GEL.  I created a simple helloWorld gel script (from the PPM Training for version 15.2) and I am getting an error returned. 

    My script looks like this:

     <gel:script
     xmlns:core="jelly:core"
     xmlns:gel="jelly:com.niku.union.gel.GELTagLibrary">

     <gel:out>Hello World</gel:out>
     </gel:script>


    The Error I receive is this: (white space added to ease reading)

     C:\XOG\bin>gel -Hello_World.xml
     
     java.lang.reflect.InvocationTargetException
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
            at java.lang.reflect.Method.invoke(Unknown Source)
            at com.werken.forehead.Forehead.run(Forehead.java:551)
            at com.werken.forehead.Forehead.main(Forehead.java:581)
     
     Caused by: java.lang.ArrayIndexOutOfBoundsException: 3
            at com.niku.union.gel.GELClient.processArgs(GELClient.java:200)
            at com.niku.union.gel.GELClient.invoke(GELClient.java:66)
            at com.niku.union.gel.GELClient.main(GELClient.java:59)

     

    This implementation is on my local PC, not on the PPM server.  I have read a couple of items here in the community but they do not appear to fit the problem, nor provide the solution (I tried them to be sure). I have also searched Google, but not much in the way or results.

     

    I am wondering I have taken a wrong turn by puting xog on my local device because it needs to talk directly with items in the Clarity\lib folder?  Is that possible? Or, am I reading too much into it. 

    Looking forward to hearing what you have to say. 

    Thank you in advance.


    Michael Tognetti



  • 2.  Re: GEL -- Unable to successfully run script -- Java error
    Best Answer

    Posted 11-21-2017 05:26 PM

    I think this com.niku.union.gel.GELClient.processArgs(GELClient.java:200) error is because your command is

     

    gel -Hello_World.xml

     

    Usage: gel [scriptFile] [-script scriptFile -o outputFile -Dsysprop=syspropval -validate]

     

    Is your xml file name -Hello_World.xml or Hello_world.xml

     

    the - it sees is triggering it to look for the three options.

     

    Try gel Hello_World.xml

     

    V/r,

    Gene



  • 3.  Re: GEL -- Unable to successfully run script -- Java error

    Posted 11-21-2017 06:39 PM

    Thank you.  I misread the guidance and included the dash.