Thanks for the possible solutions and this is WHAT I am desperately seeking for it. We need to write a gel script to call the java based job Synchronize portfolio investments. But I ran into the problem:
org.apache.commons.jelly.JellyTagException: null:13:66: <core:invoke> No such accessible method: invoke() on object: com.ca.clarity.pfm.job.PortfolioSyncJob
at org.apache.commons.jelly.tags.core.InvokeTag.doTag(InvokeTag.java:100)
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:23)
at com.niku.bpm.services.ExecuteCustomAction.run(ExecuteCustomAction.java:195)
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:722)
Caused by: java.lang.NoSuchMethodException: No such accessible method: invoke() on object: com.ca.clarity.pfm.job.PortfolioSyncJob
at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:214)
at org.apache.commons.jelly.tags.core.InvokeTag.doTag(InvokeTag.java:97)
... 11 more
Root cause
java.lang.NoSuchMethodException: No such accessible method: invoke() on object: com.ca.clarity.pfm.job.PortfolioSyncJob
at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:214)
at org.apache.commons.jelly.tags.core.InvokeTag.doTag(InvokeTag.java:97)
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:23)
at com.niku.bpm.services.ExecuteCustomAction.run(ExecuteCustomAction.java:195)
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:722)
The Gel script very simple just for the purpose of proof the concept.
<gel:script xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:core="jelly:core" xmlns:gel="jelly:com.niku.union.gel.GELTagLibrary"
xmlns:rem="jelly:com.niku.union.gel.RemedyTagLibrary"
xmlns:soap="jelly:com.niku.union.gel.SOAPTagLibrary"
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:sql="jelly:sql" xmlns:xog="http://www.niku.com/xog"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<core:new className="com.niku.xog.client.XOGClientInterface" var="xogcaller"/>
<core:invoke method="invoke" on="${xogcaller}" var="xogresponse">
</core:invoke>
<gel:log level="INFO"> <gel:expr select="$xogresponse/"/></gel:log>
</gel:script>
Please advise what could be wrong?
Thanks