DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14270>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14270 Jsp throws a an IOException "Stream Closed" when reading from a URLConnection Summary: Jsp throws a an IOException "Stream Closed" when reading from a URLConnection Product: Tomcat 4 Version: 4.0 Beta 1 Platform: Sun OS/Version: Solaris Status: NEW Severity: Critical Priority: Other Component: Unknown AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Hi, I have a JSP that creates a URLConnection to another jsp in a differet instance of Tomcat and posts the user inputs to it.Th other JSPreads the input and sends back a file to the requesting jsp.The requesting jsp should be able to read the stream and pass back the file to the user.Now when the first jsp tries to read the InputStream from the URLCOnnection, an IOException is thrown saying "Stream closed".This occurs when I have the first jsp deployed under Tomcat in Solaris 2.6.The same JSP under Tomcat 4.0.1 in Windows NT Workstation works fine.I can also run a JUnit test case against the second JSP using a URLConnection and the file is downloaded fine.It is only when I use the first jsp to connect to the second jsp that I see the error and that too in Solaris.The Stack Trace I print out is ava.io.IOException: Stream closed. at java.net.PlainSocketImpl.available(PlainSocketImpl.java:387) at java.net.SocketInputStream.available(SocketInputStream.java:179) at java.io.BufferedInputStream.available(BufferedInputStream.java:337) at sun.net.www.http.ChunkedInputStream.readAheadNonBlocking (ChunkedInputStream.java:473) at sun.net.www.http.ChunkedInputStream.readAhead (ChunkedInputStream.java:586) at sun.net.www.http.ChunkedInputStream.available (ChunkedInputStream.java:694) at java.io.FilterInputStream.available(FilterInputStream.java:146) at org.apache.jsp.CertRetriever$jsp._jspService (CertRetriever$jsp.java:123) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service (JspServlet.java:202) at org.apache.jasper.servlet.JspServlet.serviceJspFile (JspServlet.java:382) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:193) ... Please help. Thanks, Harini -- To unsubscribe, e-mail: <mailto:tomcat-dev-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:tomcat-dev-help@;jakarta.apache.org>