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 06DEB173F6 for ; Fri, 3 Oct 2014 06:27:34 +0000 (UTC) Received: (qmail 44202 invoked by uid 500); 3 Oct 2014 06:27:33 -0000 Delivered-To: apmail-struts-issues-archive@struts.apache.org Received: (qmail 44155 invoked by uid 500); 3 Oct 2014 06:27:33 -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 44145 invoked by uid 99); 3 Oct 2014 06:27:33 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Oct 2014 06:27:33 +0000 Date: Fri, 3 Oct 2014 06:27:33 +0000 (UTC) From: "Lukasz Lenart (JIRA)" To: issues@struts.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (WW-4405) ArrayIndexOutOfBoundsException during Struts action call 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-4405?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14157729#comment-14157729 ] Lukasz Lenart commented on WW-4405: ----------------------------------- It isn't possible to solve it with current version of OGNL - it doesn't support specifying what method must be called to narrow possible options. I will add note to Version Notes about that and postpone this issue till version 2.5. > ArrayIndexOutOfBoundsException during Struts action call > -------------------------------------------------------- > > Key: WW-4405 > URL: https://issues.apache.org/jira/browse/WW-4405 > Project: Struts 2 > Issue Type: Bug > Affects Versions: 2.3.18 > Reporter: Mirek Hankus > Fix For: 2.3.18 > > Attachments: strutstest.zip > > > I've just changed struts to version 2.3.18 and I'm getting ArrayIndexOutOfBoundsException. > {code} > ERROR 14:53:49,382 pl.netpr.struts.results.ErrorResult - wystapil blad java.lang.ArrayIndexOutOfBoundsException: 1 > ERROR 14:53:49,382 pl.netpr.struts.results.ErrorResult - java.lang.ArrayIndexOutOfBoundsException: 1 > at ognl.OgnlRuntime.resolveType(OgnlRuntime.java:710) > at ognl.OgnlRuntime.findParameterTypes(OgnlRuntime.java:679) > at ognl.OgnlRuntime.getAppropriateMethod(OgnlRuntime.java:1185) > at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1223) > at ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:68) > at com.opensymphony.xwork2.ognl.accessor.XWorkMethodAccessor.callMethodWithDebugInfo(XWorkMethodAccessor.java:117) > at com.opensymphony.xwork2.ognl.accessor.XWorkMethodAccessor.callMethod(XWorkMethodAccessor.java:108) > at ognl.OgnlRuntime.callMethod(OgnlRuntime.java:1369) > at ognl.ASTMethod.getValueBody(ASTMethod.java:90) > at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212) > at ognl.SimpleNode.getValue(SimpleNode.java:258) > at ognl.Ognl.getValue(Ognl.java:494) > at ognl.Ognl.getValue(Ognl.java:458) > at com.opensymphony.xwork2.ognl.OgnlUtil$2.execute(OgnlUtil.java:309) > at com.opensymphony.xwork2.ognl.OgnlUtil.compileAndExecute(OgnlUtil.java:340) > at com.opensymphony.xwork2.ognl.OgnlUtil.getValue(OgnlUtil.java:307) > at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:421) > at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:285) > at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248) > at pl.netpr.login.struts2.AuthorizationInterceptor.intercept(AuthorizationInterceptor.java:50) > {code} > AuthorizationInterceptor.java:50 contains > {code} invocation.invoke() > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)