标签:style http io os ar java for sp 文件
我按照JBPM开发指南上的例子把
// ProcessDefinition processDefinition = ProcessDefinition.parseXmlString(
// "<process-definition>" +
// " <start-state>" +
// " <transition to=‘s‘ />" +
// " </start-state>" +
// " <state name=‘s‘>" +
// " <transition to=‘end‘ />" +
// " </state>" +
// " <end-state name=‘end‘ />" +
// "</process-definition>"
// );
变成
ProcessDefinition processDefinition = ProcessDefinition.parseXmlResource("helloWorld.xml");
然后用ultraedit造了一个helloWorld.xml文件,内容如下
<?xml version="1.0" encoding="UTF-8"?>
<process-definition xmlns="urn:jbpm.org:jpdl-3.1" name="HelloWorld">
<start-state>
<transition to=‘s‘/>
</start-state>
<state name=‘s‘>
<transition to=‘end‘/>
</state>
<end-state name=‘end‘/>
</process-definition>
可是运行时抛:
Nested exception:
java.net.MalformedURLException
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
at org.dom4j.io.SAXReader.read(SAXReader.java:465)
at org.jbpm.jpdl.xml.JpdlParser.parse(JpdlParser.java:57)
at org.jbpm.jpdl.xml.JpdlXmlReader.readProcessDefinition(JpdlXmlReader.java:138)
at org.jbpm.graph.def.ProcessDefinition.parseXmlInputStream(ProcessDefinition.java:172)
at org.jbpm.graph.def.ProcessDefinition.parseXmlResource(ProcessDefinition.java:153)
at org.jbpm.tutorial.helloworld.HelloWorldTest.testHelloWorldProcess(HelloWorldTest.java:51)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
jbpm开发指南例子中helloworld的helloWorld.xml抛错问题(连个例子都跑不起
标签:style http io os ar java for sp 文件
原文地址:http://www.cnblogs.com/happysean/p/4052579.html