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.
I think this com.niku.union.gel.GELClient.processArgs(GELClient.java:200) error is because your command is
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
Thank you. I misread the guidance and included the dash.