<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1226" name=GENERATOR></HEAD>
<BODY><FONT COLOR=BLACK>
<DIV><SPAN class=389100121-27082003><FONT face=Arial size=2>Hi
all,</FONT></SPAN></DIV>
<DIV><SPAN class=389100121-27082003><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=389100121-27082003>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 </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=389100121-27082003>(1.8 2002/01/19
10:15:17), if I use the jdom.jar file as is, I get the following exception
thrown:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=389100121-27082003></SPAN></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2>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<SPAN class=389100121-27082003>
</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN
class=389100121-27082003></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=389100121-27082003>This,
although, org.apache.xerces.parsers.SAXParser.class is in the xercesImpl.jar
file, which is certainly included in the classpath.</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN
class=389100121-27082003></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=389100121-27082003>The problem
seems to come from the protected XMLReader createParser() throws .... { } in
SAXBuilder. </SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=389100121-27082003>The
appropriate section is:</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN
class=389100121-27082003></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=389100121-27082003>protected
XMLReader createParser() throws Exception
{<BR> XMLReader parser =
null;<BR> if (saxDriverClass != null)
{<BR> //if (false) { --- tried to force JAXP here, which also didn't
work<BR>
<BR> // The
user knows that they want to use a particular
class<BR>
parser =
XMLReaderFactory.createXMLReader(saxDriverClass);<BR>
//parser = new
org.apache.xerces.parsers.SAXParser();<BR>
// System.out.println("using specific " +
saxDriverClass);<BR> } else {</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN
class=389100121-27082003><snip> </SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN
class=389100121-27082003></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=389100121-27082003>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).</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN
class=389100121-27082003></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=389100121-27082003>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
correctly?</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN
class=389100121-27082003></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=389100121-27082003>Apologies for
the length of this message, and if anybody needs more details, please let me
know.</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN
class=389100121-27082003></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=389100121-27082003>Thank
you,</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN
class=389100121-27082003>Tim</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN
class=389100121-27082003></SPAN></FONT></FONT> </DIV><BR><P><FONT color=navy face=Arial size=2>Tim Johnson<BR></FONT><FONT color=navy face=Arial size=2>Programmer Analyst<BR>Vision Solutions, Inc.<BR></FONT><FONT color=navy><BR><FONT face=Arial size=2>17911 Von Karman Ave, 5th Floor<BR>Irvine, CA 92614<BR>UNITED STATES<BR></FONT></FONT><FONT color=navy><BR><FONT face=Arial size=2>Tel: +1 (949) 253-6528<BR>Fax: +1 (949) 225-0287<BR>Email: tjohnson@visionsolutions.com<BR></FONT></FONT><A href="http://www.visionsolutions.com/"><FONT color=navy face=Arial size=2>http://www.visionsolutions.com</FONT></A></P><P><FONT color=silver face=Arial size=1>Disclaimer - 8/27/2003<BR>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 </FONT><A href="mailto:helpdesk@visionsolutions.com"><FONT color=silver face=Arial size=1>helpdesk@visionsolutions.com</FONT></A><FONT color=silver face=Arial size=1>.</FONT></P></BODY></HTML>