Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-4405

ArrayIndexOutOfBoundsException during Struts action call

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3.20
    • 2.5
    • None
    • None

    Description

      I've just changed struts to version 2.3.18 and I'm getting ArrayIndexOutOfBoundsException.

      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)
      

      AuthorizationInterceptor.java:50 contains

       invocation.invoke()
      

      Attachments

        1. strutstest.zip
          22 kB
          Mirek Hankus

        Activity

          People

            lukaszlenart Lukasz Lenart
            mhankus Mirek Hankus
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: