[jdom-interest] JDOM problems with jdk1.4

Tim Johnson tjohnson at visionsolutions.com
Wed Aug 27 14:37:15 PDT 2003

Hi all,
I'm having a bit of problem upgrading from jdk1.3 to 1.4 seemingly due
to something going awry in jdom.   In Version 8 
(1.8 2002/01/19 10:15:17), if I use the jdom.jar file as is, I get the
following exception thrown:
Error loading Vision Server Program configuration: Could not load
default SAX parser: org.apache.xerces.parsers.SAXParser: SAX2 driver
class org.apache.xerces.parsers.SAXParser not found:
org/apache/xerces/parsers/SAXParser .
This, although, org.apache.xerces.parsers.SAXParser.class is in the
xercesImpl.jar file, which is certainly included in the classpath.
The problem seems to come from the protected XMLReader createParser()
throws .... { } in SAXBuilder.   
The appropriate section is:
protected XMLReader createParser() throws Exception {
        XMLReader parser = null;
        if (saxDriverClass != null) {
 //if (false) {  --- tried to force JAXP here, which also didn't work
            // The user knows that they want to use a particular class
                 parser =
            //parser = new org.apache.xerces.parsers.SAXParser();
            // System.out.println("using specific " + saxDriverClass);
     } else {
Now if we comment out the XMLReaderFactory call and use the parser = new
org.apache.xerces.parsers.SAXParser() call, then we get a
java.lang.OutOfMemory error (and using vmstat on Linux, we definitely
see a huge drop in available memory).
In version 9, (LICENSE.txt,v 1.10 2003/04/10 08:36:05), we always see
the could not find SAXParser class again.  Is this a known problem fixed
in a later JDOM snapshot I need to download?  Or is this a bug that will
get addressed at some point later?  Or are we simply not doing something
Apologies for the length of this message, and if anybody needs more
details, please let me know.
Thank you,

Tim Johnson
Programmer Analyst
Vision Solutions, Inc.

17911 Von Karman Ave,  5th Floor
Irvine, CA 92614

Tel: +1 (949) 253-6528
Fax: +1 (949) 225-0287
Email: tjohnson at visionsolutions.com
Disclaimer - 8/27/2003
The contents of this e-mail (and any attachments) are confidential, may be privileged, and may contain copyright material of Vision Solutions, Inc. or third parties. You may only reproduce or distribute the material if you are expressly authorized by Vision Solutions to do so. If you are not the intended recipient, any use, disclosure or copying of this e-mail (and any attachments) is unauthorized. If you have received this e-mail in error, please immediately delete it and any copies of it from your system and notify us via e-mail at helpdesk at visionsolutions.com 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://jdom.org/pipermail/jdom-interest/attachments/20030827/e65e795e/attachment.htm

More information about the jdom-interest mailing list