[jdom-interest] xerces SAX parse problem : StackOverflowError
philip.nelson at omniresources.com
philip.nelson at omniresources.com
Wed Oct 17 06:35:54 PDT 2001
You could probably cross check this by parsing the same document without
using JDOM but still using the same Xerces parser. But, it would appear
from the stack trace that you have found a bug with Xerces.
> -----Original Message-----
> From: Aron Kramlik [mailto:aron.kramlik at itouch.com.au]
> Sent: Tuesday, October 16, 2001 10:36 PM
> To: jdom-interest at jdom.org
> Cc: Aron Kramlik
> Subject: [jdom-interest] xerces SAX parse problem : StackOverflowError
>
>
> Hi,
>
> Below is the error I am getting when trying to parse an XML file
> using JDOM and Xerces as the SAX parser.
>
> java.lang.StackOverflowError
> at java.lang.String.lastIndexOf(String.java(Compiled Code))
> at java.lang.String.lastIndexOf(String.java:1209)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
> at
> org.apache.xerces.utils.StringPool.ensureCapacity(StringPool.java:169)
> at org.apache.xerces.utils.StringPool.addSymbol(StringPool.java:388)
> at org.apache.xerces.utils.StringPool.<init>(StringPool.java:134)
> at org.apache.xerces.framework.XMLParser.<init>(XMLParser.java:199)
> at org.apache.xerces.parsers.SAXParser.<init>(SAXParser.java:164)
> at java.lang.Class.newInstance0(Native Method)
> at java.lang.Class.newInstance(Class.java:254)
> at
> org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReader
> Factory.java:1
> 16)
> at org.jdom.input.SAXBuilder.createParser(SAXBuilder.java:411)
> at org.jdom.input.SAXBuilder.build(SAXBuilder.java:283)
> at org.jdom.input.SAXBuilder.build(SAXBuilder.java:617)
> at org.jdom.input.SAXBuilder.build(SAXBuilder.java:599)
> at
> net.itouchnet.cma.util.JDOMUtil.createFromFilepath(JDOMUtil.java:335)
> at
> net.itouchnet.cma.client.ClientConf.loadConfiguration(ClientCo
> nf.java:192)
> at net.itouchnet.cma.client.ClientConf.<init>(ClientConf.java:174)
> at
> net.itouchnet.cma.client.MultiFileCMAClient.main(MultiFileCMAC
> lient.java:200
> )
>
> I am using the latest download of Xerces (as of a week ago)
> on Linux RedHat
> 6.2 and
> IBM JDK 1.2 :
> java version "1.2.2"
> Classic VM (J2RE 1.2.2 IBM build cx122-20010308 (JIT enabled: jitc))
>
> We had another version of xerces, I am not sure what version
> and where from,
> that used
> to and still works.
>
> This is the new one that does not work:
> -rw-rw-r-- 1 akramlik devel 1498679 Oct 17 23:24
> /home/akramlik/cma/dist/lib/xerces.jar
>
> This is the old one that does work:
> -rw-rw-r-- 1 akramlik devel 804460 Oct 17 23:27
> /home/akramlik/cma/dist/lib/xerces.jar
>
> The strange thing is that everyhting works fine for both jar
> files on JDK
> 1.3 :
> java version "1.3.0"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0)
> Classic VM (build 1.3.0, J2RE 1.3.0 IBM build cx130-20010502
> (JIT enabled:
> jitc))
>
> Any ideas as to why this would be a problem?
>
> Thanks for your help,
>
> Aron.
>
>
>
>
>
>
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/yo
uraddr at yourhost.com
More information about the jdom-interest
mailing list