tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Filip Hanik - Dev Lists <devli...@hanik.com>
Subject Re: svn commit: r477251 - /tomcat/tc6.0.x/trunk/java/org/apache/catalina/connector/Response.java
Date Mon, 20 Nov 2006 18:57:57 GMT
I don't see anything wrong with my fix, as it is clear that the 
outputstream is using the converter

java.lang.Exception: conv is null
        at 
org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:471)
        at 
org.apache.catalina.connector.CoyoteOutputStream.print(CoyoteOutputStream.java:113)
        at 
javax.servlet.ServletOutputStream.println(ServletOutputStream.java:242)
        at 
com.sun.ts.tests.servlet.common.util.ServletTestUtil.printResult(ServletTestUtil.java:320)
        at 
com.sun.ts.tests.servlet.api.common.response.ResponseTests.flushBufferTest(ResponseTests.java:126)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at 
com.sun.ts.tests.servlet.api.common.response.ResponseTestServlet.service(ResponseTestServlet.java:43)
        at 
com.sun.ts.tests.servlet.api.javax_servlet.servletresponsewrapper.TestServlet.service(TestServlet.java:36)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
        at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
        at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
        at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:212)
        at 
org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:888)
        at 
org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:624)
        at 
org.apache.tomcat.util.net.NioEndpoint$Worker.run(NioEndpoint.java:1467)
        at java.lang.Thread.run(Thread.java:595)

Same test with the JIO connector
java.lang.Exception: conv is null
        at 
org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:471)
        at 
org.apache.catalina.connector.CoyoteOutputStream.print(CoyoteOutputStream.java:113)
        at 
javax.servlet.ServletOutputStream.println(ServletOutputStream.java:242)
        at 
com.sun.ts.tests.servlet.common.util.ServletTestUtil.printResult(ServletTestUtil.java:320)
        at 
com.sun.ts.tests.servlet.api.common.response.ResponseTests.flushBufferTest(ResponseTests.java:126)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at 
com.sun.ts.tests.servlet.api.common.response.ResponseTestServlet.service(ResponseTestServlet.java:43)
        at 
com.sun.ts.tests.servlet.api.javax_servlet.servletresponsewrapper.TestServlet.service(TestServlet.java:36)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
        at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
        at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
        at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:212)
        at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:818)
        at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:624)
        at 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
        at java.lang.Thread.run(Thread.java:595)
                                                         

Filip

Remy Maucherat wrote:
> Filip Hanik - Dev Lists wrote:
>> I figured :). I'll revert and hunt down the root cause. My guess is 
>> that if the response was used with output stream first, then recycled 
>> and then used again, somehow the conv ends up being null and causes a 
>> NPE in the write method.
>
> Ok, and what does the stack trace look like exactly ?
>
> Rémy
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message