Org.dom4j.DocumentException:null Nested Exception:null
At Org.dom4j.io.SAXReader.read (saxreader.java:484)
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 CN.CC.SERVLET.JBPMTEST.TESTJBPM (jbpmtest.java:18)
At Cn.cc.servlet.JbpmTest.main (jbpmtest.java:35)
The general reason for this problem is that the XML file cannot be found, but either the XML does not exist or the XML address passed is wrong.
Examples on the Web:
Org.dom4j.DocumentException:null Nested Exception:null is really strange, I have been thinking that I was wrong, and then open the XML file with IE, ie do not complain, unexpectedly said that the file could not be found. Hey...... I really thought it was me that XML file is wrong, after the Firefox tried, but can open ... Depressed later found that the original is not found that file ... Problems with Java code ... InputStream is = This.getclass (). getResourceAsStream (".. /qingjia/qingjia.zip "); Zipinputstream ZiS = new Zipinputstream (IS); ProcessDefinition PD = Processdefinition.parseparzipinputstream (ZiS); is to add "This.getclass () getResourceAsStream" After the line, and changed to this line from the CSDN blog, reproduced please indicate the source: http://blog.csdn.net/yy00915132/ Archive/2009/09/18/4567775.aspx