[jBPM Development] - Re: Java Activity not using Interface
by jbpmjboss11
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#4251288
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4251288
15 years, 3 months
[jBPM Development] - Re: Java Activity not using Interface
by jbpmjboss11
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 ...
Thanks
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4251287#4251287
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4251287
15 years, 3 months
integration build broken till next week
by Tom Baeyens
integration build is currently broken for dbs other then hsqldb.
i'll fix that asap when i return next week.
no point in fixing this now as we'll be splitting the jboss/db integration test
into a jboss job and a db job.
regards, tom.
15 years, 3 months