Return-Path: X-Original-To: apmail-struts-issues-archive@minotaur.apache.org Delivered-To: apmail-struts-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A603A1017A for ; Thu, 13 Jun 2013 06:30:23 +0000 (UTC) Received: (qmail 90952 invoked by uid 500); 13 Jun 2013 06:30:22 -0000 Delivered-To: apmail-struts-issues-archive@struts.apache.org Received: (qmail 90924 invoked by uid 500); 13 Jun 2013 06:30:21 -0000 Mailing-List: contact issues-help@struts.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@struts.apache.org Delivered-To: mailing list issues@struts.apache.org Received: (qmail 90912 invoked by uid 99); 13 Jun 2013 06:30:21 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Jun 2013 06:30:21 +0000 Date: Thu, 13 Jun 2013 06:30:21 +0000 (UTC) From: "Lukasz Lenart (JIRA)" To: issues@struts.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (WW-4105) Struts2 raise java.lang.ClassCastException when Result type is chain MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/WW-4105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13681950#comment-13681950 ] Lukasz Lenart commented on WW-4105: ----------------------------------- Could you share you setup? Or prepare small maven based app which presents the bug? I have tested with the Struts2 Showcase application (there is example how to use action chaining) and everything works like charm :-) > Struts2 raise java.lang.ClassCastException when Result type is chain > --------------------------------------------------------------------- > > Key: WW-4105 > URL: https://issues.apache.org/jira/browse/WW-4105 > Project: Struts 2 > Issue Type: Bug > Components: Core Interceptors > Affects Versions: 2.3.14.3 > Environment: tomcat6 struts2.3.* > Reporter: zhouyong > Fix For: 2.3.x > > > java.lang.ClassCastException: A action cannot be cast to B action when A chain to B. > ChainingInterceptor.java has a bug in intercept function when Result type is chain. > Intercept function of ChainingInterceptor will change action member of DefaultActionInvocation class. And invokeAction of DefaultActionInvocation will fail in line 450. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira