[jdom-interest] Exception: getRawName(I)Ljava/lang/String; not found

Brett McLaughlin brett.mclaughlin at lutris.com
Tue Sep 5 16:02:43 PDT 2000


Cash Foley wrote:
> 
> All -
> 
> I'm sorry if this is a dumb question (it's likely because I'm fairly new to
> java) and I thank you for any help in advance.
> 
> I grabbed the 'SAXBuilderDemo.java' code
> 
> Removed:
> 
> package org.jdom.examples;
> 
> and built it under 'MySAXBuilderDemo'
> 
> When I ran it I got the following exception:
> 
> Exception in thread "main" java.lang.NoSuchMethodError:
> org.xml.sax.Attributes: method getRawName(I)Ljava/lang/String; not found
>         at org.jdom.input.SaxHandler.startElement(SAXBuilder.java, Compiled
> Code)
>         at org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java,
> Compiled Code)
>         at
> org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidat
> or.java, Compiled Code)
>         at
> org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanne
> r.java, Compiled Code)
>         at
> org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XM
> LDocumentScanner.java, Compiled Code)
>         at
> org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
> java, Compiled Code)
>         at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:861)
>         at org.jdom.input.SAXBuilder.build(SAXBuilder.java:207)
>         at org.jdom.input.AbstractBuilder.build(AbstractBuilder.java:95)
>         at MySAXBuilderDemo.testBuilder(MySAXBuilderDemo.java:101)
>         at MySAXBuilderDemo.main(MySAXBuilderDemo.java:138)
> 
> Any help?

You have either a really old version of Xerces, or a really old version
of JDOM.

Get the latest version from CVS of JDOM and use that and the xerces.jar
in the lib/ directory it comes with. It should work fine, then.

-Brett

> 
> Thanks
> 
> Cash Foley
> 
> cfoley at chipdata.com
> --
> **********************************************************************
> ** ChipData, Inc.                           http://www.chipdata.com **
> ** 959 E. Collins Blvd Suite 123                                    **
> ** Richardson, TX 75081                                972-739-5327 **
> **********************************************************************
> 
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com

-- 
Brett McLaughlin, Enhydra Strategist
Lutris Technologies, Inc. 
1200 Pacific Avenue, Suite 300 
Santa Cruz, CA 95060 USA 
http://www.lutris.com
http://www.enhydra.org



More information about the jdom-interest mailing list