[jdom-interest] org.jdom.JDOMException

Abhishek Balaria abhishek at qbizm.com
Wed Aug 9 07:39:34 PDT 2000


Hi,
  This is the first time I am using JDOM and I have a problem...
Following is the code that caused the exception:

    DOMBuilder builder = new DOMBuilder();
    Document doc = builder.build(new URL(xmlDoc));
    Element root = doc.getRootElement();
    System.out.println(root.toString());


Here is the trace:
------------------
Exception in thread "main" org.jdom.JDOMException:
org.apache.xerces.parsers.DOMParser: org.apache.xerces.parsers.DOMParser
        at org.jdom.input.DOMBuilder.build(DOMBuilder.java:177)
        at org.jdom.input.DOMBuilder.build(DOMBuilder.java:220)
        at com.hqbs.hook.Visualizer.parseConfig(Visualizer.java:27)
        at com.hqbs.hook.Visualizer.visualize(Visualizer.java:44)
        at com.hqbs.hook.Visualizer.main(Visualizer.java:50)
Root cause: java.io.IOException: org.apache.xerces.parsers.DOMParser
        at
org.jdom.adapters.XercesDOMAdapter.getDocument(XercesDOMAdapter.java:131)
        at org.jdom.input.DOMBuilder.build(DOMBuilder.java:171)
        at org.jdom.input.DOMBuilder.build(DOMBuilder.java:220)
        at com.hqbs.hook.Visualizer.parseConfig(Visualizer.java:27)
        at com.hqbs.hook.Visualizer.visualize(Visualizer.java:44)
        at com.hqbs.hook.Visualizer.main(Visualizer.java:50)


I have used sun's parser sucessfully on the same xml file which simply
works.. can't see a problem here, it's an easy thing and should work...

thanks for any help
Abhishek Balaria



More information about the jdom-interest mailing list