[jboss-user] [jBPM] - Asynchronus execution error

ABIDI Sami do-not-reply at jboss.com
Thu Apr 1 10:01:24 EDT 2010


ABIDI Sami [http://community.jboss.org/people/uaibys] created the discussion

"Asynchronus execution error"

To view the discussion, visit: http://community.jboss.org/message/535197#535197

--------------------------------------------------------------
Hello,

I want to execute a jbpm process in asynchronous continuation mode, and here is a part of the source code that i used :

        ProcessEngine processengine = new Configuration().buildProcessEngine();
        
        RepositoryService repositoryservice = processengine.getRepositoryService();
        
        ExecutionService executionservice = processengine.getExecutionService();
        
        ManagementService managementService = processengine.getManagementService();
        
        
         
        ProcessInstance processInstance = executionservice.startProcessInstanceById("Clef-4");
        
        
        Job job = null;
        
        job = managementService.createJobQuery().processInstanceId(processInstance.getId()).uniqueResult();
        
        
        managementService.executeJob(job.getId());



I would like from this code to execute only the first task of my process.

As result, I have the first task executed, but I have also an error saying that jbpm couldn't load my class containing the task even if the task was executed.

Here is the error message :


15:06:33,684 FIN | [SQL] 
    select
        jobimpl0_.DBID_ as DBID1_6_0_,
        jobimpl0_.DBVERSION_ as DBVERSION3_6_0_,
        jobimpl0_.DUEDATE_ as DUEDATE4_6_0_,
        jobimpl0_.STATE_ as STATE5_6_0_,
        jobimpl0_.ISEXCLUSIVE_ as ISEXCLUS6_6_0_,
        jobimpl0_.LOCKOWNER_ as LOCKOWNER7_6_0_,
        jobimpl0_.LOCKEXPTIME_ as LOCKEXPT8_6_0_,
        jobimpl0_.EXCEPTION_ as EXCEPTION9_6_0_,
        jobimpl0_.RETRIES_ as RETRIES10_6_0_,
        jobimpl0_.PROCESSINSTANCE_ as PROCESS11_6_0_,
        jobimpl0_.EXECUTION_ as EXECUTION12_6_0_,
        jobimpl0_.CFG_ as CFG13_6_0_,
        jobimpl0_.SIGNAL_ as SIGNAL14_6_0_,
        jobimpl0_.EVENT_ as EVENT15_6_0_,
        jobimpl0_.REPEAT_ as REPEAT16_6_0_,
        jobimpl0_.CLASS_ as CLASS2_6_0_ 
    from
        JBPM4_JOB jobimpl0_ 
    where
        jobimpl0_.DBID_=?
15:06:33,684 FST | [LongType] binding '820002' to parameter: 1
15:06:33,694 FST | [StringType] returning 'ExeAct' as column: CLASS2_6_0_
15:06:33,694 FST | [IntegerType] returning '6' as column: DBVERSION3_6_0_
15:06:33,694 FST | [TimestampType] returning null as column: DUEDATE4_6_0_
15:06:33,694 FST | [StringType] returning 'error' as column: STATE5_6_0_
15:06:33,694 FST | [BooleanType] returning 'false' as column: ISEXCLUS6_6_0_
15:06:33,694 FST | [StringType] returning null as column: LOCKOWNER7_6_0_
15:06:33,694 FST | [TimestampType] returning null as column: LOCKEXPT8_6_0_
15:06:33,694 FST | [TextType] returning 'org.jbpm.pvm.internal.wire.JbpmClassNotFoundException: couldn't load class PE.Fonctions
    at org.jbpm.pvm.internal.wire.descriptor.ObjectDescriptor.construct(ObjectDescriptor.java:146)
    at org.jbpm.pvm.internal.wire.WireContext.construct(WireContext.java:469)
    at org.jbpm.pvm.internal.wire.WireContext.create(WireContext.java:448)
    at org.jbpm.pvm.internal.wire.WireContext.create(WireContext.java:258)
    at org.jbpm.pvm.internal.util.ReflectUtil.instantiateUserCode(ReflectUtil.java:310)
    at org.jbpm.pvm.internal.wire.usercode.UserCodeReference.getObject(UserCodeReference.java:63)
    at org.jbpm.pvm.internal.wire.usercode.UserCodeReference.getObject(UserCodeReference.java:47)
    at org.jbpm.jpdl.internal.activity.JavaActivity.perform(JavaActivity.java:57)
    at org.jbpm.jpdl.internal.activity.JpdlAutomaticActivity.execute(JpdlAutomaticActivity.java:15)
    at org.jbpm.pvm.internal.model.op.ExecuteActivity.perform(ExecuteActivity.java:60)
    at org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperationSync(ExecutionImpl.java:656)
    at org.jbpm.pvm.internal.model.op.ExecuteActivityMessage.execute(ExecuteActivityMessage.java:46)
    at org.jbpm.pvm.internal.cmd.ExecuteJobCmd.execute(ExecuteJobCmd.java:76)
    at org.jbpm.pvm.internal.cmd.ExecuteJobCmd.execute(ExecuteJobCmd.java:42)
    at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42)
    at org.jbpm.pvm.internal.tx.JtaTransactionInterceptor.executeInNewTx(JtaTransactionInterceptor.java:87)
    at org.jbpm.pvm.internal.tx.JtaTransactionInterceptor.execute(JtaTransactionInterceptor.java:66)
    at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:55)
    at org.jbpm.pvm.internal.tx.JtaRetryInterceptor.executeWithRetry(JtaRetryInterceptor.java:52)
    at org.jbpm.pvm.internal.tx.JtaRetryInterceptor.execute(JtaRetryInterceptor.java:45)
    at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.executeInNewEnvironment(EnvironmentInterceptor.java:53)
    at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:40)
    at org.jbpm.pvm.internal.svc.SkipInterceptor.execute(SkipInterceptor.java:43)
    at org.jbpm.pvm.internal.jobexecutor.JobParcel.run(JobParcel.java:48)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
    at java.util.concurrent.FutureTask.run(FutureTask.java:123)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:651)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:676)
    at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.ClassNotFoundException: class 'PE.Fonctions' could not be found in deployment 540001
    at org.jbpm.pvm.internal.repository.DeploymentClassLoader.findClass(DeploymentClassLoader.java:119)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:242)
    at org.jbpm.pvm.internal.wire.descriptor.ObjectDescriptor.construct(ObjectDescriptor.java:144)
    ... 29 more
' as column: EXCEPTION9_6_0_



Do someone have ideas about how to solve this problem?
Thanks!

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/535197#535197]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100401/23e86515/attachment.html 


More information about the jboss-user mailing list