[jboss-jira] [JBoss JIRA] Commented: (JBPM-734) org.jbpm.util.XmlException: couldn't parse xml

Michael O'Keeffe (JIRA) jira-events at lists.jboss.org
Mon Mar 5 11:00:13 EST 2007


    [ http://jira.jboss.com/jira/browse/JBPM-734?page=comments#action_12354993 ] 
            
Michael O'Keeffe commented on JBPM-734:
---------------------------------------

I had one mistake with the simple test above, it should be parseXMLString, not parseXMLResource.  

But beyond that, the issue for me was indeed a classloader issue, not with XML parsers and ordering or something like that as I was thinking from Ivan's post, but simply that the JPDL file (process def) was not in classpath.

> 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

        



More information about the jboss-jira mailing list