[jBPM Users] - jbpm 4.1 : Running jbpm test case - issue
by makarandk502
Hi,
Can anybody guide me in resolving this issue ?
I am getting following error while running following jbpm test case
I have also attached process xml file
----
Error
|
| 18:07:16,924 FIN | [BaseJbpmTestCase] === starting testTaskAssignee =============================
| ### EXCEPTION ###########################################
| 18:07:16,954 INF | [Parser] couldn't set schema language property
| org.xml.sax.SAXNotRecognizedException: http://java.sun.com/xml/jaxp/properties/schemaLanguage
| at gnu.xml.aelfred2.XmlReader.getProperty(XmlReader.java:181)
| at gnu.xml.aelfred2.XmlReader.setProperty(XmlReader.java:166)
| at gnu.xml.aelfred2.JAXPFactory$JaxpParser.setProperty(JAXPFactory.java:147)
| at org.jbpm.pvm.internal.xml.Parser.buildDom(Parser.java:423)
| at org.jbpm.pvm.internal.xml.Parser.execute(Parser.java:389)
| at org.jbpm.pvm.internal.xml.Parse.execute(Parse.java:157)
| at org.jbpm.pvm.internal.wire.xml.WireParser.<clinit>(WireParser.java:279)
| at org.jbpm.pvm.internal.env.JbpmConfigurationParser.<init>(JbpmConfigurationParser.java:47)
| at org.jbpm.pvm.internal.env.JbpmConfigurationParser.<clinit>(JbpmConfigurationParser.java:50)
| at org.jbpm.pvm.internal.cfg.JbpmConfiguration.parse(JbpmConfiguration.java:178)
| at org.jbpm.pvm.internal.cfg.JbpmConfiguration.setResource(JbpmConfiguration.java:150)
| at org.jbpm.api.Configuration.setResource(Configuration.java:112)
| at org.jbpm.api.Configuration.getProcessEngine(Configuration.java:164)
| at org.jbpm.test.JbpmTestCase.initialize(JbpmTestCase.java:81)
| at org.jbpm.test.JbpmTestCase.setUp(JbpmTestCase.java:76)
| at tcs.com.java.TaskAssigneeTest.setUp(TaskAssigneeTest.java:41)
| at junit.framework.TestCase.runBare(TestCase.java:128)
| 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 junit.framework.TestSuite.runTest(TestSuite.java:230)
| at junit.framework.TestSuite.run(TestSuite.java:225)
| 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)
| ### EXCEPTION ###########################################
| ### EXCEPTION ###########################################
| 18:07:16,964 INF | [Parser] couldn't set dynamic validation feature
| org.xml.sax.SAXNotRecognizedException: http://apache.org/xml/features/validation/dynamic
| at gnu.xml.aelfred2.SAXDriver.getFeature(SAXDriver.java:414)
| at gnu.xml.aelfred2.XmlReader.getFeature(XmlReader.java:234)
| at gnu.xml.aelfred2.XmlReader.setFeature(XmlReader.java:206)
| at org.jbpm.pvm.internal.xml.Parser.buildDom(Parser.java:437)
| at org.jbpm.pvm.internal.xml.Parser.execute(Parser.java:389)
| at org.jbpm.pvm.internal.xml.Parse.execute(Parse.java:157)
| at org.jbpm.pvm.internal.wire.xml.WireParser.<clinit>(WireParser.java:279)
| at org.jbpm.pvm.internal.env.JbpmConfigurationParser.<init>(JbpmConfigurationParser.java:47)
| at org.jbpm.pvm.internal.env.JbpmConfigurationParser.<clinit>(JbpmConfigurationParser.java:50)
| at org.jbpm.pvm.internal.cfg.JbpmConfiguration.parse(JbpmConfiguration.java:178)
| at org.jbpm.pvm.internal.cfg.JbpmConfiguration.setResource(JbpmConfiguration.java:150)
| at org.jbpm.api.Configuration.setResource(Configuration.java:112)
| at org.jbpm.api.Configuration.getProcessEngine(Configuration.java:164)
| at org.jbpm.test.JbpmTestCase.initialize(JbpmTestCase.java:81)
| at org.jbpm.test.JbpmTestCase.setUp(JbpmTestCase.java:76)
| at tcs.com.java.TaskAssigneeTest.setUp(TaskAssigneeTest.java:41)
| at junit.framework.TestCase.runBare(TestCase.java:128)
| 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 junit.framework.TestSuite.runTest(TestSuite.java:230)
| at junit.framework.TestSuite.run(TestSuite.java:225)
| 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)
| ### EXCEPTION ###########################################
|
|
jbpm testcase
|
| package tcs.com.java;
|
| import java.util.HashMap;
| import java.util.List;
| import java.util.Map;
|
| import org.jbpm.api.ProcessInstance;
| import org.jbpm.api.task.Task;
| import org.jbpm.test.JbpmTestCase;
|
|
|
| public class TaskAssigneeTest extends JbpmTestCase {
|
| String deploymentId;
|
| protected void setUp() throws Exception {
| super.setUp();
|
| deploymentId = repositoryService.createDeployment()
| .addResourceFromClasspath("tcs/com/java/process.jpdl.xml")
| .deploy();
| }
|
| protected void tearDown() throws Exception {
| repositoryService.deleteDeploymentCascade(deploymentId);
|
| super.tearDown();
| }
|
| public void testTaskAssignee() {
| Map<String, Object> variables = new HashMap<String, Object>();
| variables.put("order", new Order("johndoe"));
| ProcessInstance processInstance = executionService.startProcessInstanceByKey("TaskAssignee", variables);
| String pid = processInstance.getId();
|
|
| }
| }
|
|
-- Process xml
|
| <?xml version="1.0" encoding="UTF-8"?>
|
| <process name="TaskAssignee" xmlns="http://jbpm.org/4.0/jpdl">
|
| <start g="20,20,48,48">
| <transition to="review" />
| </start>
|
| <task name="review"
| assignee="#{order.owner}"
| g="96,16,127,52">
|
| <transition to="wait" />
| </task>
|
| <state name="wait" g="255,16,88,52"/>
|
| </process>
|
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4258158#4258158
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4258158
16 years, 6 months
[jBPM Users] - Re: Translation of task node from jBPM3 to 4
by kukeltje
tasks are never associated with a state. Tasks are now just 'simple' tasks, not 'complex' tasks anymore (the task has been 'promoted' to the level of the former task-node. That might be explicitly missing in the docs, I won't deny that. But
What you describe is not a 'simple' scenario, it is already a more complex one. You probably combined the 'blocking' attribute on the task within the task-node, the signal attribute on the task-node and maybe also the signalling. I agree that jBPM made this seem simple :-)
>From what we've experienced these were not used alot. In jBPM 4, for now, you need to do something like using an eventhandler to cancel the 'parallel task'. In the future this will be made more explicit by using things like the bpmn cancel signal.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4258131#4258131
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4258131
16 years, 6 months
[jBPM Users] - Re: BPEL 1.1GA: CodeSource for SOAPMessage is NULL
by prachi.mukhija
Hi,
I am pretty new to jbpm-bpel. I have downloaded the jbpm-bpel-1.1.1 version.
My envrironment is:
jboss-4.2.2.GA server
However, I am facing the same error when deploying "Hello" example.
Here's the stack trace.
| 15:31:26,746 INFO [DeploymentServlet] deployed process definition: HelloWorld
| 15:31:26,846 ERROR [[deploymentServlet]] Servlet.service() for servlet deploymentServlet threw exception
| java.lang.NullPointerException
| at org.jbpm.bpel.tools.WscompileTool.getLocation(WscompileTool.java:240)
| at org.jbpm.bpel.tools.WscompileTool.formatClasspath(WscompileTool.java:227)
| at org.jbpm.bpel.tools.WscompileTool.callWscompile(WscompileTool.java:197)
| at org.jbpm.bpel.tools.WscompileTool.generateJavaMappingImpl(WscompileTool.java:156)
| at org.jbpm.bpel.tools.WscompileTool.generateJavaMapping(WscompileTool.java:143)
| at org.jbpm.bpel.tools.WebModuleBuilder.callJavaMappingTool(WebModuleBuilder.java:264)
| at org.jbpm.bpel.tools.WebModuleBuilder.buildModuleImpl(WebModuleBuilder.java:102)
| at org.jbpm.bpel.tools.WebModuleBuilder.buildModule(WebModuleBuilder.java:84)
| at org.jbpm.bpel.web.DeploymentServlet.deployWebModule(DeploymentServlet.java:205)
| at org.jbpm.bpel.web.DeploymentServlet.doPost(DeploymentServlet.java:99)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
| at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
| at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
| at java.lang.Thread.run(Unknown Source)
|
Please help out. Any hint would be grateful.
Thanks in advance.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4258090#4258090
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4258090
16 years, 6 months