[
http://jira.jboss.com/jira/browse/JBPM-734?page=comments#action_12354984 ]
Michael O'Keeffe commented on JBPM-734:
---------------------------------------
Ivan - what did you fix? I'm running in to same issue, not with JbpmConfiguration,
but with ProcessDefinition, when parsing XML file. Previously this worked fine, so
probably classpath issue also. Simple test below fails with same exception.
public void testSimpleProcessDefConfig() {
String cfg = "<process-definition>";
cfg += "</process-definition>";
ProcessDefinition processDefinition = ProcessDefinition
.parseXmlResource(cfg);
System.out.println(processDefinition.toString());
}
org.jbpm.util.XmlException: couldn't parse xml
----------------------------------------------
Key: JBPM-734
URL:
http://jira.jboss.com/jira/browse/JBPM-734
Project: JBoss jBPM
Issue Type: Bug
Components: Core Engine
Affects Versions: jBPM 3.1.2
Reporter: Ivan Garcia
Assigned To: Tom Baeyens
Priority: Minor
This code
try{
String cfg = "<jbpm-configuration>";
cfg += "</jbpm-configuration>";
jbpmConfiguration = JbpmConfiguration.parseXmlString(cfg);
}catch(Exception e){
e.printStackTrace();
}
launch this exception,
org.jbpm.util.XmlException: couldn't parse xml
at org.jbpm.util.XmlUtil.parseXmlInputSource(XmlUtil.java:78)
at org.jbpm.util.XmlUtil.parseXmlResource(XmlUtil.java:60)
at
org.jbpm.configuration.ObjectFactoryParser.parseElementsFromResource(ObjectFactoryParser.java:104)
at org.jbpm.JbpmConfiguration.parseObjectFactory(JbpmConfiguration.java:299)
at org.jbpm.JbpmConfiguration.parseXmlString(JbpmConfiguration.java:318)
Caused by: java.net.MalformedURLException
at java.net.URL.<init>(URL.java:601)
at java.net.URL.<init>(URL.java:464)
at java.net.URL.<init>(URL.java:413)
at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at org.jbpm.util.XmlUtil.parseXmlInputSource(XmlUtil.java:76)
... 6 more
and i dont know why :-(
Thanks
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira