Return-Path: Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 96578 invoked from network); 24 Nov 2000 16:52:33 -0000 Received: from pt73.peacetech.com (HELO ptint3.peacetech.com) (207.176.93.73) by locus.apache.org with SMTP; 24 Nov 2000 16:52:33 -0000 Received: by pt73.peacetech.com with Internet Mail Service (5.5.2650.21) id ; Fri, 24 Nov 2000 11:52:32 -0500 Message-ID: <511F5E23FD70D111BA840060083424E5B6DDAC@pt73.peacetech.com> From: "Roytman, Alex" To: "'tomcat-user@jakarta.apache.org'" Subject: RE: HANDLER THREAD PROBLEM: Stream closed prematurely Date: Fri, 24 Nov 2000 11:52:31 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N If you are running Tomcat standalone I would suggest to try it with Apache web server. We had some problems with tomcat built in web server - POST input stream would only give you first 1300 bytes of POST data and some other problems I do not remember. I believe apache inherited it from Sun Web server which had these problems. However all these problems were not present when we access tomcat via Apache web server Alex -----Original Message----- From: Ritwick Dhar [mailto:ritwick_d@EASTPOINT.COM] Sent: Friday, November 24, 2000 11:35 AM To: 'tomcat-user@jakarta.apache.org' Subject: HANDLER THREAD PROBLEM: Stream closed prematurely Hi, This problem is driving me nuts. I've tried debugging this, but nothing yet. 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 the reponse. Simple. The problem is, the moment the client tries to call 'urlConn.getInputStream()' to get an inputstream from the server, I get this (on the server console): HANDLER THREAD PROBLEM: java.io.IOException: Stream closed prematurely java.io.IOException: Stream closed prematurely at java.lang.Throwable.(Compiled Code) at java.lang.Exception.(Compiled Code) at java.io.IOException.(Compiled Code) at org.apache.tomcat.service.connector.AJP12RequestAdapter.readNextRequest(Comp iled Code) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection (Compiled Code) at org.apache.tomcat.service.TcpConnectionThread.run(Compiled Code) at java.lang.Thread.run(Compiled Code) What's really driving me up the wall is that this works perfectly fine with Both WebSphere and JRun. Is this something particular to Tomcat?? Thanks for all help Rit