Win a copy of Getting started with Java on the Raspberry Pi this week in the Raspberry Pi forum!
  • 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
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Liutauras Vilda
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Piet Souris

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's a city wid manhunt for this tiny ad:
Low Tech Laboratory
https://www.kickstarter.com/projects/paulwheaton/low-tech-0
reply
    Bookmark Topic Watch Topic
  • New Topic