[jdom-interest] possible thread issue question

Langel, Richard rick.langel at pioneer.com
Fri Jul 2 06:12:10 PDT 2004

Nope, no errors are ever logged.

-----Original Message-----
From: John L. Webber [mailto:John.Webber at jentro.com] 
Sent: Friday, July 02, 2004 1:41 AM
To: Langel, Richard
Cc: jdom-interest at jdom.org
Subject: Re: [jdom-interest] possible thread issue question

Are there any error messages in your servlet container log? You might 
try instantiating the StringReader separately from the InputSource, and 
closing it after you have the Document, but I suspect your problem is 
unrelated to JDOM, and has more to do with your servlet environment.


Langel, Richard wrote:
> We're using 0.9, and we're seeing some strangeness which is causing us
> problems.  We have a generic servlet that takes an xml request, converts 
> it to a Document, figures out the actual function that the user wants 
> and passes the xml off to the appropriate class to handle the request.  
> The problem we've seen is that under a stress test eventually call to 
> that servlet hangs.  It used to be the 101st call, but we increased the 
> number of available threads, the number of allowed http connections, and 
> the number of allowed client connections and the number of calls has 
> risen to about 550, but it's still happening.  Below is the function 
> we're using to make the Document.  Is there some internal configuration 
> thing we're missing or is the code below faulty?
>  public Document makeDocument(String xmlInput) {
>   Document rd = null;
>   InputSource is = new InputSource(new StringReader(xmlInput));
>   SAXBuilder builder = new SAXBuilder();
>   rd = builder.build(is);
>   return rd;
>  }

  Jentro Technologies GmbH
  John L. Webber, Software Development
  Rosenheimer Str. 145e	    81671 München
  Tel. +49 89 189 169 80     mailto:John.Webber at jentro.com
  Fax  +49 89 189 169 99     http://www.jentro.com

This communication is for use by the intended recipient and contains 
information that may be privileged, confidential or copyrighted under
applicable law.  If you are not the intended recipient, you are hereby
formally notified that any use, copying or distribution of this e-mail,
in whole or in part, is strictly prohibited.  Please notify the sender
by return e-mail and delete this e-mail from your system.  Unless
explicitly and conspicuously designated as "E-Contract Intended",
this e-mail does not constitute a contract offer, a contract amendment,
or an acceptance of a contract offer.  This e-mail does not constitute
a consent to the use of sender's contact information for direct marketing
purposes or for transfers of data to third parties.

 Francais Deutsch Italiano  Espanol  Portugues  Japanese  Chinese  Korean


More information about the jdom-interest mailing list