[jdom-interest] Exception in thread "main" java.lang.NoSuchMethodError:
org.xml.sax.Attributes: method getQName(I)Ljava/lang/String;
not found
David Zangger
DZangger at huber.com
Mon Feb 19 07:16:14 PST 2001
i'm having major problems with jdom b5 and b6 on our AIX 4.3.3 box
running (Classic VM (J2R3 1.2.2 IBM build ca122-19991217 (JIT enabled:
jitc)). On the PC, running jdk 1.3, everything works great. I hate to
bother y'all with this but i'm really going crazy. it's like i can
build it with the right xerces.jar file but when i run it, it uses an
old copy or something. could it be that the old one is cached and the
server has to be rebooted? i've even tried using xerces version 3.3.1.
thank you for any more help,
dave
This is my classpath on AIX:
.:/usr/java_dev2/jre/lib/tools.jar:/usr/java_dev2/jre/lib/rt.jar:/home/dzangger/quotes/source/beta/xerces.jar:/home/dzangger/quotes/source/beta/jdom.jar
the xerces.jar is the file that was packaged with the beta. when i add
the -verbose option to the compile, i get:
[parsed jdom.java in 5210 ms]
[loaded
/home/dzangger/quotes/source/beta/xerces.jar(org/xml/sax/Attributes.class)
in 127 ms]
[loaded
/home/dzangger/quotes/source/beta/xerces.jar(org/xml/sax/SAXException.class)
in 166 ms]
[loaded
/home/dzangger/quotes/source/beta/xerces.jar(org/xml/sax/SAXParseException.class)
in 22 ms]
[loaded
/home/dzangger/quotes/source/beta/xerces.jar(org/xml/sax/XMLReader.class)
in 59 ms]
[loaded
/home/dzangger/quotes/source/beta/xerces.jar(org/xml/sax/helpers/DefaultHandler.class)
in 25 ms]
[loaded /usr/java_dev2/sh/../jre/lib/rt.jar(java/lang/Object.class) in
17 ms]
[checking class jdom]
...
[loaded
/home/dzangger/quotes/source/beta/jdom.jar(org/jdom/input/SAXBuilder.class)
in 88 ms]
[loaded
/home/dzangger/quotes/source/beta/jdom.jar(org/jdom/Document.class) in
20 ms]
..
[loaded
/home/dzangger/quotes/source/beta/xerces.jar(org/xml/sax/InputSource.class)
in 4 ms]
[loaded
/home/dzangger/quotes/source/beta/jdom.jar(org/jdom/Element.class) in
124 ms]
..
[loaded
/home/dzangger/quotes/source/beta/jdom.jar(org/jdom/Attribute.class) in
38 ms]
..
[loaded
/home/dzangger/quotes/source/beta/jdom.jar(org/jdom/JDOMException.class)
in 5 ms]
[wrote jdom.class]
[done in 24064 ms]
Now, when i run it, i get nothing but errors.
Exception in thread "main" java.lang.NoSuchMethodError:
org.xml.sax.Attributes: method getQName(I)Ljava/lang/String; not found
at org.jdom.input.SAXHandler.startElement(SAXBuilder.java:727)
at
org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1289)
at
org.apache.xerces.framework.XMLParser.callStartElement(XMLParser.java:1922)
at
org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanner.java:1837)
at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1377)
at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
at
org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1208)
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:395)
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:464)
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:445)
at jdom.main(jdom.java:32)
More information about the jdom-interest
mailing list