[GLASSFISH-12891] Caching an empty response freezes webapp Created: 04/Aug/10  Updated: 19/Dec/16  Resolved: 14/Sep/10

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

Type: Bug Priority: Major
Reporter: hschack Assignee: Shing Wai Chan
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: All
Platform: All

Issuezilla Id: 12,891


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

Comment by Shing Wai Chan [ 04/Aug/10 ]

We find similar issue when a servlet throw an exception.

Comment by Shing Wai Chan [ 05/Aug/10 ]

Transmitting file data ..
Committed revision 39422.

Comment by Shing Wai Chan [ 05/Aug/10 ]

add test case:

Sending build.xml
Adding cachingHang
Adding cachingHang/WebTest.java
Adding cachingHang/build.properties
Adding cachingHang/build.xml
Adding cachingHang/descriptor
Adding cachingHang/descriptor/glassfish-web.xml
Adding cachingHang/servlet
Adding cachingHang/servlet/test
Adding cachingHang/servlet/test/TestServlet.java
Adding cachingHang/servlet/test/TestServlet2.java
Transmitting file data .......
Committed revision 39425.

Comment by Amy Roh [ 14/Sep/10 ]
      • Issue 3861 has been marked as a duplicate of this issue. ***
Generated at Thu Jan 19 03:05:39 UTC 2017 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.