When i try to get return value from the method of the class mentioned in the Java task
... i get following nullpointerException ... Have no clue how to get rid of this... I am
very well able to call the method with input object and all, but for some reason i get
NullPointerException on line...
String out = (String)executionService.getVariable(pid, "answer1");
And this is the exception ...
java.lang.NullPointerException
at
org.jbpm.pvm.internal.cmd.GetExecutionVariablesCmd.execute(GetExecutionVariablesCmd.java:60)
at
org.jbpm.pvm.internal.cmd.GetExecutionVariablesCmd.execute(GetExecutionVariablesCmd.java:36)
at
org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42)
at
org.jbpm.pvm.internal.tx.StandardTransactionInterceptor.execute(StandardTransactionInterceptor.java:54)
at
org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:54)
at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:55)
at
org.jbpm.pvm.internal.svc.ExecutionServiceImpl.getVariable(ExecutionServiceImpl.java:130)
my java task xml is ...
| <java class="com.abc.MyClass" g="173,70,175,58"
method="test" var="answer" name="Retrieve Application" >
| <arg><object expr="#{input.apre.force}"/></arg>
|
Thanks
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4251288#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...