tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ritwick Dhar <ritwic...@EASTPOINT.COM>
Subject RE: HANDLER THREAD PROBLEM: Stream closed prematurely
Date Fri, 24 Nov 2000 18:21:41 GMT
No. Post 8008 is for the stand-alone server - I'm using apache. 8007 is the
internal port which Tomcat uses to talk to Apache (I think). I'm simply
sending my requests to 80.

You may be on to something. I've tried not closing the output stream from
the client at all, but that didn't do much good. Maybe I'll try some other
things on those lines now. 


-----Original Message-----
From: William Brogden []
Sent: Friday, November 24, 2000 11:27 AM
Subject: Re: HANDLER THREAD PROBLEM: Stream closed prematurely

 Does your client close the stream that writes the request or
just flush it? I seem to recall having a problem similar to this
where the solution was to not close the client's output stream
until after the complete transaction.

Ritwick Dhar wrote:
> Hi,
> This problem is driving me nuts. I've tried debugging this, but nothing
> I was hoping someone on this list will have come accross this before.
> Case: I have a servlet (server) that accepts POST requests (content-type=
> application/x-ofx), and sends back a OFX response. I have another servlet
> (client), that opens a URL to the server, writes the request, and reads
> reponse. Simple.
> The problem is, the moment the client tries to call
> 'urlConn.getInputStream()' to get an inputstream from the server, I get
> (on the server console):
> HANDLER THREAD PROBLEM: Stream closed prematurely
> Stream closed prematurely
>         at java.lang.Throwable.<init>(Compiled Code)
>         at java.lang.Exception.<init>(Compiled Code)
>         at<init>(Compiled Code)
>         at
> iled Code)
>         at
> (Compiled Code)
>         at
>         at Code)
> What's really driving me up the wall is that this works perfectly fine
> Both WebSphere and JRun. Is this something particular to Tomcat??
> Thanks for all help
> Rit

Author of Java Developer's Guide to Servlets and JSP 
ISBN 0-7821-2809-2

View raw message