Thanks for you reply.  I'm alittle further now.  The user guide is wrong.  The 
class that runs the async nodes is called JobExecutor and you have to call the 
startJobExecutor method on the JBPM configuration to start it up.  The problem 
I have now is that my Job gets persisted and its associated Token but  in the 
Token table the ProcessInstance_ is set to NULL even though its non-null on the 
Token before its saved.  So when the JobExecutor loads and run the Job I get 
this NullPointerException:


  | 12:12:18,140 [JbpmJobExector:192.168.100.109:1] DEBUG JobExecutorThread : 
exception while executing 'job[2]'
  | org.jbpm.graph.def.DelegationException
  |     at org.jbpm.graph.def.GraphElement.raiseException(GraphElement.java:387)
  |     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  |     at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  |     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |     at java.lang.reflect.Method.invoke(Method.java:585)
  |     at 
org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:157)
  |     at 
org.jbpm.graph.def.ProcessDefinition$$EnhancerByCGLIB$$d720fdf7.raiseException(<generated>)
  |     at org.jbpm.graph.def.GraphElement.raiseException(GraphElement.java:378)
  |     at org.jbpm.graph.def.Node.execute(Node.java:344)
  |     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  |     at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  |     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |     at java.lang.reflect.Method.invoke(Method.java:585)
  |     at 
org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:157)
  |     at 
org.jbpm.graph.def.Node$$EnhancerByCGLIB$$74685187.execute(<generated>)
  |     at org.jbpm.job.ExecuteNodeJob.execute(ExecuteNodeJob.java:27)
  |     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  |     at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  |     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |     at java.lang.reflect.Method.invoke(Method.java:585)
  |     at 
org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:157)
  |     at org.jbpm.job.Job$$EnhancerByCGLIB$$8e5776a.execute(<generated>)
  |     at 
org.jbpm.job.executor.JobExecutorThread.executeJob(JobExecutorThread.java:164)
  |     at 
org.jbpm.job.executor.JobExecutorThread.run(JobExecutorThread.java:64)
  | Caused by: java.lang.NullPointerException
  |     at org.jbpm.graph.exe.Token.startCompositeLog(Token.java:377)
  |     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  |     at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  |     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |     at java.lang.reflect.Method.invoke(Method.java:585)
  |     at 
org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:157)
  |     at 
org.jbpm.graph.exe.Token$$EnhancerByCGLIB$$20f6f81b.startCompositeLog(<generated>)
  |     at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:240)
  |     at org.jbpm.graph.def.Node.execute(Node.java:339)
  |     ... 16 more
  | 

How do I fix this?

Thanks

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4127919
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to