This week's book giveaways are in the Cloud and AI/ML forums.
We're giving away four copies each of Cloud Native Patterns and Natural Language Processing and have the authors on-line!
See this thread and this one for details.
Win a copy of Cloud Native PatternsE this week in the Cloud forum
or Natural Language Processing in the AI/ML 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
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

facing issue with web cache

 
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!