Hi I am new to ehcache I am trying to use SimplePageCacheFilter for caching the page.
When I hit the required page it is caching but when I try to hit the same page with different passing parameters it is throwing
IllegalStateException as below.
avax.servlet.ServletException: java.lang.IllegalStateException: JBWEB002005: Header count exceeded allowed maximum [128]
net.sf.ehcache.constructs.web.filter.Filter.logThrowable(Filter.java:143)
net.sf.ehcache.constructs.web.filter.Filter.doFilter(Filter.java:91)
JBWEB000071: root cause
java.lang.IllegalStateException: JBWEB002005: Header count exceeded allowed maximum [128]
org.apache.tomcat.util.http.MimeHeaders.createHeader(MimeHeaders.java:331)
org.apache.tomcat.util.http.MimeHeaders.addValue(MimeHeaders.java:349)
org.apache.coyote.Response.addHeader(Response.java:351)
org.apache.catalina.connector.Response.addHeader(Response.java:1102)
org.apache.catalina.connector.ResponseFacade.addHeader(ResponseFacade.java:509)
net.sf.ehcache.constructs.web.filter.CachingFilter.setHeaders(CachingFilter.java:408)
net.sf.ehcache.constructs.web.filter.CachingFilter.writeResponse(CachingFilter.java:337)
net.sf.ehcache.constructs.web.filter.CachingFilter.doFilter(CachingFilter.java:224)
net.sf.ehcache.constructs.web.filter.EhcacheCacheFilter3.doFilter(EhcacheCacheFilter3.java:33)
net.sf.ehcache.constructs.web.filter.Filter.doFilter(Filter.java:86)
I have tried some ways to avoid the issue by increasing the maxcount system property in standalone.xml and I tried using other caching filters also but the issue is not resolved.
One thing I observed is when I clear the browser history manually then I am able to hit the page and after some time it falling in to Same.
Please help me.