• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

facing issue with web cache

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
There is no "i" in denial. Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic