[jdom-interest] xerces SAX parse problem : StackOverflowError

Aron Kramlik aron.kramlik at itouch.com.au
Tue Oct 16 20:36:17 PDT 2001


Below is the error I am getting when trying to parse an XML file
using JDOM and Xerces as the SAX parser.

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.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.<init>(ClientConf.java:174)

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

This is the old one that does work:
-rw-rw-r--    1 akramlik devel      804460 Oct 17 23:27

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:

Any ideas as to why this would be a problem?

Thanks for your help,


More information about the jdom-interest mailing list