org.jbpm.JbpmException: can't create a process instance when processDefinition 
is null

----------------------------------------------------------------------------
processDefinition = 
ProcessDefinition.parseXmlResource("process/processdefinition.xml");
jbpmConfiguration = JbpmConfiguration.getInstance();
jbpmContext = jbpmConfiguration.createJbpmContext();
jbpmContext.deployProcessDefinition(processDefinition);  
processInstance = jbpmContext.newProcessInstance(processDefinition.getName());  
----------------------------------------------------------------------------

when I try to create the processInstance, the exception occurs.

This happend to me since I use jbpm-jpdl-3.2.GA version. With jbpm-3.1.4 works 
perfect. Any Idea?

I leave the stacktrace bottom:

org.jbpm.JbpmException: can't create a process instance when processDefinition 
is null
        at org.jbpm.graph.exe.ProcessInstance.(ProcessInstance.java:109)
        at org.jbpm.graph.exe.ProcessInstance.(ProcessInstance.java:91)
        at org.jbpm.JbpmContext.newProcessInstance(JbpmContext.java:409)
        at 
com.modhelus.core.batch.JbpmManager.createProcessInstance(JbpmManager.java:30)
        at 
com.sample.BatchLauncherTest.testBatchLauncher(BatchLauncherTest.java:25)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)Hibernate:
 select nextval ('hibernate_sequence')
Hibernate: select nextval ('hibernate_sequence')
Hibernate: select nextval ('hibernate_sequence')
Hibernate: select nextval ('hibernate_sequence')
Hibernate: select nextval ('hibernate_sequence')
Hibernate: select nextval ('hibernate_sequence')
Hibernate: select nextval ('hibernate_sequence')
Hibernate: select nextval ('hibernate_sequence')
Hibernate: select nextval ('hibernate_sequence')
Hibernate: select nextval ('hibernate_sequence')
Hibernate: select nextval ('hibernate_sequence')
Hibernate: select processdef0_.ID_ as ID1_4_, processdef0_.NAME_ as NAME3_4_, 
processdef0_.DESCRIPTION_ as DESCRIPT4_4_, processdef0_.VERSION_ as 
VERSION5_4_, processdef0_.ISTERMINATIONIMPLICIT_ as ISTERMIN6_4_, 
processdef0_.STARTSTATE_ as STARTSTATE7_4_ from JBPM_PROCESSDEFINITION 
processdef0_ where processdef0_.NAME_=? order by processdef0_.VERSION_ desc 
limit ?

        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:589)
        at junit.framework.TestCase.runTest(TestCase.java:154)
        at junit.framework.TestCase.runBare(TestCase.java:127)
        at junit.framework.TestResult$1.protect(TestResult.java:106)
        at junit.framework.TestResult.runProtected(TestResult.java:124)
        at junit.framework.TestResult.run(TestResult.java:109)
        at junit.framework.TestCase.run(TestCase.java:118)
        at junit.framework.TestSuite.runTest(TestSuite.java:208)
        at junit.framework.TestSuite.run(TestSuite.java:203)
        at 
org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)
        at 
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
        at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
        at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
        at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
        at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)

Any Idea?
Thanks,

Federico


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

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

Reply via email to