[jboss-user] [JBoss jBPM] - Problem with AsyncActivityTest in a AbstractTransactionalSpr

jcvergara do-not-reply at jboss.com
Mon Jul 27 22:54:17 EDT 2009


Hi,
I am playing with the jbpm4 example AsyncActivityTest from an AbstractTransactionalSpringJbpmTestCase.

But I have the following exception:
java.lang.NullPointerException 	at org.jbpm.pvm.internal.jobexecutor.JobExecutorMessageSession.send(JobExecutorMessageSession.java:59)

The file process.jpdl.xml marks the process as asynchronous:
<java name="generate pdf"  continue="async"

In the class JobExecutorMessageSession.java seems that the transaction field is null:
public void send(Message message) {
    log.debug("sending message "+ReflectUtil.getUnqualifiedClassName(message.getClass()));
       …
        transaction.registerSynchronization(new JobAddedNotification(jobExecutor));
      }
    }
If I remove the continue=”async” attribute the test runs ok.
Any comment about this issue will be very appreciate,
Thanks.
-- JC


View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4246319#4246319

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4246319




More information about the jboss-user mailing list