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
Operations

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

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

Environment:

Operating System: All
Platform: All


Issuezilla Id: 12,891
Tags:
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">
<cache-mapping>
<servlet-name>dispatcher</servlet-name>
</cache-mapping>
</cache>

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

Sending
web/web-glue/src/main/java/com/sun/appserv/web/cache/filter/CachingFilter.java
Sending
web/web-glue/src/main/java/com/sun/appserv/web/cache/filter/CachingResponseWrapper.java
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/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.


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

kenaiadmin made changes - 26/Nov/10 12:14 AM
Field Original Value New Value
issue.field.bugzillaimportkey 12891 44495