jbpm 4.1 : Running jbpm test case - issue
makarandk502 Oct 1, 2009 9:36 AMHi,
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>