"IllegalStateException" error when using "Rewrite Valve"

Solution Unverified - Updated -

Issue

When using Rewrite Valve on Red Hat JBoss Enterprise Application Platform (EAP) 6.4.x, it is possible to receive following exception:

2016/02/23 16:38:33,892 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host]] (http-127.0.0.1/127.0.0.1:8080-1) JBWEB000238: Exception sending request destroyed lifecycle event to listener instance of class org.jboss.weld.servlet.WeldListener: java.lang.IllegalStateException: JBWEB000057: The request object has been recycled and is no longer associated with this facade
    at org.apache.catalina.connector.RequestFacade.removeAttribute(RequestFacade.java:494) [jbossweb.jar:7.5.12.Final-redhat-1]
    at org.jboss.weld.servlet.WeldListener.requestDestroyed(WeldListener.java:133)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) [jbossweb.jar:7.5.12.Final-redhat-1]
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97) [jbossweb.jar:7.5.12.Final-redhat-1]
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102) [jbossweb.jar:7.5.12.Final-redhat-1]
    at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:621) [jbossweb.jar:7.5.12.Final-redhat-1]
......

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content