Issue Details (XML | Word | Printable)

Key: GLASSFISH-12891
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Shing Wai Chan
Reporter: hschack
Votes: 0
Watchers: 0

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

Caching an empty response freezes webapp

Created: 04/Aug/10 06:48 AM   Updated: 14/Sep/10 11:55 AM   Resolved: 14/Sep/10 11:55 AM
Component/s: web_container
Affects Version/s: V3
Fix Version/s: 3.1_b14

Time Tracking:
Not Specified


Operating System: All
Platform: All

Issuezilla Id: 12,891
Participants: Amy Roh, hschack and Shing Wai Chan

 Description  « Hide

The web application can return a response page with empty content.
If this page is requested for the first time, it is correctly returned.
If this page is requested for the second time, there is no response and the web
application is not accessible any more. The Admin interface can still be accessed.
It seems that the cache fails when serving an empty file.

Happens on a vanilla installation of glassfish 3 and the following cache
settings in sun.web.xml:

<cache enabled="true" max-entries="4096" timeout-in-seconds="30">

The problem also occurrs on v2.1.1

Shing Wai Chan added a comment - 04/Aug/10 05:48 PM

We find similar issue when a servlet throw an exception.

Shing Wai Chan added a comment - 05/Aug/10 11:59 AM

Transmitting file data ..
Committed revision 39422.

Shing Wai Chan added a comment - 05/Aug/10 12:03 PM

add test case:

Sending build.xml
Adding cachingHang
Adding cachingHang/
Adding cachingHang/
Adding cachingHang/build.xml
Adding cachingHang/descriptor
Adding cachingHang/descriptor/glassfish-web.xml
Adding cachingHang/servlet
Adding cachingHang/servlet/test
Adding cachingHang/servlet/test/
Adding cachingHang/servlet/test/
Transmitting file data .......
Committed revision 39425.

Amy Roh added a comment - 14/Sep/10 11:55 AM
      • Issue 3861 has been marked as a duplicate of this issue. ***