Bug 1309441 - [GSS](6.4.z) Valve triggers ClassCastException when forwarding a request
[GSS](6.4.z) Valve triggers ClassCastException when forwarding a request
Status: CLOSED WONTFIX
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Web (Show other bugs)
6.4.6
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Aaron Ogburn
Radim Hatlapatka
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-02-17 15:01 EST by Aaron Ogburn
Modified: 2016-03-17 14:49 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-03-17 14:49:19 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 2159071 None None None 2016-02-17 15:02 EST

  None (edit)
Description Aaron Ogburn 2016-02-17 15:01:04 EST
Description of problem:

A ClassCastException like the following is hit if a valve forwards a request:

ERROR [org.apache.catalina.connector] (http-localhost/127.0.0.1:8080-1) JBWEB001018: An exception or error occurred in the container during the request processing: java.lang.ClassCastException: org.apache.catalina.connector.Request cannot be cast to javax.servlet.ServletRequestWrapper
	at org.apache.catalina.core.ApplicationFilterFactory.createFilterChain(ApplicationFilterFactory.java:136) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:819) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
	at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:620) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
	at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:553) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
	at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:482) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]

Version-Release number of selected component (if applicable):

7.5.12

How reproducible:

Very

Steps to Reproduce:
1. Forward a request from a valve
2.
3.

Actual results:

ClassCastException

Expected results:

No exceptions

Additional info:

Note You need to log in before you can comment on or make changes to this bug.