[jdom-interest] SAXBuilder question

Dave Steinbrunn dstein at aol.net
Wed Apr 2 17:34:11 PST 2003


Hello,

I'm trying to parse the following:

String xmlString = "<?xml version=\"1.0\"?><dns_rotor  
name=\"icq.fes.mirabilis.com\"><cname>icq</cname></dns_rotor>

SAXBuilder builder = new SAXBuilder();
Document do = builder.build(new StringReader(xmlString));


But when I try the above, I get the following exception:

org.apache.xerces.jaxp.SAXParserImpl.getXMLReader()Lorg/xml/sax/ 
XMLReader;
     java.lang.AbstractMethodError:  
org.apache.xerces.jaxp.SAXParserImpl.getXMLReader()Lorg/xml/sax/ 
XMLReader;
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at  
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav 
a:39)
          at  
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor 
Impl.java:25)
          at org.jdom.input.SAXBuilder.createParser(SAXBuilder.java:459)
         at org.jdom.input.SAXBuilder.build(SAXBuilder.java:335)
          at org.jdom.input.SAXBuilder.build(SAXBuilder.java:772)
         at com.aol.nettools.grt.GrtDaoTest.testDnsRotorXml(Unknown  
Source)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at  
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav 
a:39)
          at  
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor 
Impl.java:25)

I'm not sure what I'm doing wrong, and googling around didn't help me  
find an answer.  Can someone please point me in the right direction?

Thanks!

-----------------------------------
Dave Steinbrunn




More information about the jdom-interest mailing list