Bug 1309441 - [GSS](6.4.z) Valve triggers ClassCastException when forwarding a request
Summary: [GSS](6.4.z) Valve triggers ClassCastException when forwarding a request
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Web
Version: 6.4.6
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Aaron Ogburn
QA Contact: Radim Hatlapatka
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-02-17 20:01 UTC by Aaron Ogburn
Modified: 2019-10-10 11:14 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-03-17 18:49:19 UTC
Type: Bug


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 2159071 0 None None None 2016-02-17 20:02:05 UTC

Description Aaron Ogburn 2016-02-17 20:01:04 UTC
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.