This week's book giveaway is in the XML and Related Technologies forum.
We're giving away four copies of Java XML & JSON and have Jeff Friesen on-line!
See this thread for details.
Win a copy of Java XML & JSON this week in the XML and Related Technologies 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

facing issue with web cache  RSS feed

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • 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.
 
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!