Start a new topic
Answered

How to resolve 'This stream is not writable' Tomcat error?

How to resolve 'This stream is not writable' Tomcat error?


Best Answer

If you are seeing this stack trace in your PDE Log and have HTTP 2.0 configured on your Tomcat 9 server, you may be encountered an issue where the HTTP 2.0 connection closed due too much overhead. 

org.apache.catalina.authenticator.FormAuthenticator.forwardToErrorPage Unexpected error forwarding to error page org.apache.catalina.connector.ClientAbortException: org.apache.coyote.CloseNowException: Connection [1031], Stream [11], This stream is not writable


To resolve the issue, you will need to set the overhead threshold to 0. 

  • First Stop Tomcat 
  • Edit the server.xml file to set the overhead threshold. Similar to this example. 
 <UpgradeProtocol className="org.apache.coyote.http2.Http2Protocol"         overheadDataThreshold=0  />
  •  Start Tomcat 

This should resolve the error message. 

1 Comment

Answer

If you are seeing this stack trace in your PDE Log and have HTTP 2.0 configured on your Tomcat 9 server, you may be encountered an issue where the HTTP 2.0 connection closed due too much overhead. 

org.apache.catalina.authenticator.FormAuthenticator.forwardToErrorPage Unexpected error forwarding to error page org.apache.catalina.connector.ClientAbortException: org.apache.coyote.CloseNowException: Connection [1031], Stream [11], This stream is not writable


To resolve the issue, you will need to set the overhead threshold to 0. 

  • First Stop Tomcat 
  • Edit the server.xml file to set the overhead threshold. Similar to this example. 
 <UpgradeProtocol className="org.apache.coyote.http2.Http2Protocol"         overheadDataThreshold=0  />
  •  Start Tomcat 

This should resolve the error message. 

Login to post a comment