6 Replies Latest reply on Nov 12, 2009 4:50 AM by mesa mesa

    Problem with AsyncActivityTest in a AbstractTransactionalSpr

    Juan Carlos Vergara Newbie

      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,
      -- JC