[GLASSFISH-20369] The I/O streams should be closed before resuming since they might not be available after resume in upgrade. Created: 22/Apr/13  Updated: 20/Dec/16  Resolved: 22/Apr/13

Status: Resolved
Project: glassfish
Component/s: web_container
Affects Version/s: 4.0_dev
Fix Version/s: 4.0_dev

Type: Bug Priority: Major
Reporter: Amy Roh Assignee: Amy Roh
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Tags: 4_0-approved

 Description   

The I/O streams should be closed before resuming since they might not be available after resume in upgrade. This can cause NPE when WebConnection#close is performed in ReadListener#onDataAvailable.

Caused by: java.lang.NullPointerException
    at org.apache.catalina.connector.OutputBuffer.close(OutputBuffer.java:261)
    at org.apache.catalina.connector.CoyoteOutputStream.close(CoyoteOutputStream.java:186)
    at org.apache.catalina.connector.WebConnectionImpl.close(WebConnectionImpl.java:126)



 Comments   
Comment by Amy Roh [ 22/Apr/13 ]

What is the impact on the customer of the bug?

Users will see the NPE and stacktrace.

What is the cost/risk of fixing the bug?

Low risk. I have ran web devtests and checked with web socket team to make sure there is no regression.

Is there an impact on documentation or message strings?

No.

Which tests should QA (re)run to verify the fix did not destabilize GlassFish?

web/web socket tests

Which is the targeted build of 4.0 for this fix?

4.0_b86_RC2

If this an integration of a new version of a component from another project, what are the changes that are being brought in? This might be list of Jira issues from that project or a list of revision messages.

na

Comment by Tom Mueller [ 22/Apr/13 ]

Approved for 4.0.

Comment by Amy Roh [ 22/Apr/13 ]

Fixed in 61581.

Generated at Wed Feb 22 10:08:56 UTC 2017 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.