Issue Details (XML | Word | Printable)

Key: GLASSFISH-20369
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Amy Roh
Reporter: Amy Roh
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
glassfish

The I/O streams should be closed before resuming since they might not be available after resume in upgrade.

Created: 22/Apr/13 04:14 PM   Updated: 22/Apr/13 06:40 PM   Resolved: 22/Apr/13 06:40 PM
Component/s: web_container
Affects Version/s: 4.0_b85
Fix Version/s: 4.0_b86_RC2

Time Tracking:
Not Specified

Tags: 4_0-approved
Participants: Amy Roh and Tom Mueller


 Description  « Hide

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)