Marco Dohnke [
http://community.jboss.org/people/mdohnke] created the discussion
"jBPM 4.3 BPMN 2.0 problem"
To view the discussion, visit:
http://community.jboss.org/message/543770#543770
--------------------------------------------------------------
Hi there,
at the moment I am evaluating the capabilities of jBPM in combination with BPMN2.0
processes. Therefore I created a process with the academic version of Signavio and
exported it as BPMN-DI (jBPM_Testprozess.bpmn.xml). Then I deleted the DI stuff because it
seems not yet to be supported in jBPM. After that I adopted the Service Tasks like
described in the
http://docs.jboss.com/jbpm/v4/devguide/html_single/#bpmn2 developers
guide bpmn2.0 section. Then I wrote a Java class with a simple echo-method to test around
a bit (DbOperations.java). After that I created a UnitTest (ProcessTest.java). When I run
my test I get the following exception:
org.jbpm.api.JbpmException:
error: parsing exception: null : java.lang.NullPointerException
at org.jbpm.pvm.internal.xml.ProblemList.getJbpmException(ProblemList.java:175)
at org.jbpm.pvm.internal.xml.ProblemList.getJbpmException(ProblemList.java:141)
at org.jbpm.pvm.internal.repository.DeployerManager.deploy(DeployerManager.java:50)
at
org.jbpm.pvm.internal.repository.RepositorySessionImpl.deploy(RepositorySessionImpl.java:61)
at org.jbpm.pvm.internal.cmd.DeployCmd.execute(DeployCmd.java:47)
at org.jbpm.pvm.internal.cmd.DeployCmd.execute(DeployCmd.java:33)
at
org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42)
at
org.jbpm.pvm.internal.tx.StandardTransactionInterceptor.execute(StandardTransactionInterceptor.java:54)
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.RetryInterceptor.execute(RetryInterceptor.java:55)
at org.jbpm.pvm.internal.svc.SkipInterceptor.execute(SkipInterceptor.java:43)
at org.jbpm.pvm.internal.repository.DeploymentImpl.deploy(DeploymentImpl.java:91)
at ProcessTest.testIfProcessDeploys(ProcessTest.java:11)
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:597)
at junit.framework.TestCase.runTest(TestCase.java:164)
at org.jbpm.test.BaseJbpmTestCase.runTest(BaseJbpmTestCase.java:80)
at junit.framework.TestCase.runBare(TestCase.java:130)
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:120)
at
org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: org.jbpm.api.JbpmException
at org.jbpm.pvm.internal.xml.ProblemList.getJbpmException(ProblemList.java:171)
... 30 more
Caused by: java.lang.NullPointerException
at org.jbpm.bpmn.parser.BpmnParser.parseSequenceFlows(BpmnParser.java:281)
at org.jbpm.bpmn.parser.BpmnParser.parseProcess(BpmnParser.java:135)
at org.jbpm.bpmn.parser.BpmnParser.parseDocumentElement(BpmnParser.java:90)
at org.jbpm.pvm.internal.xml.Parser.parseDocument(Parser.java:476)
at org.jbpm.pvm.internal.xml.Parser.execute(Parser.java:396)
at org.jbpm.pvm.internal.xml.Parse.execute(Parse.java:158)
at org.jbpm.pvm.internal.repository.ProcessDeployer.deploy(ProcessDeployer.java:68)
at org.jbpm.pvm.internal.repository.DeployerManager.deploy(DeployerManager.java:46)
... 28 more
The three important files are attached to this Thread. I use jBPM4.3 under Ubuntu 9.10 on
Java(TM) SE Runtime Environment (build 1.6.0_20-b02).
I don't know what the exception tells me, can someone help me with that?
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/543770#543770]
Start a new discussion in jBPM at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]