Struts 2
  1. Struts 2
  2. WW-3134

devmode=false still shows NoSuchMethodException

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.6
    • Fix Version/s: 2.3.18
    • Component/s: None
    • Labels:
      None
    • Environment:

      Linux, Tomcat 5.5

      Description

      Hello,
      setting devmode to false disables the stack trace for an unknown action, but a stacktrace for an unknown method is still shown:

      https://xxxxxxxxx/portal/core_welcome!missing.action

      java.lang.NoSuchMethodException: xxxxxx.core.actions.WelcomeAction.missing()
      java.lang.Class.getMethod(Class.java:1581)
      org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.getActionMethod(AnnotationValidationInterceptor.java:75)
      org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:47)
      com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
      com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
      com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:122)
      com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)

      Andi

        Activity

        Andi Sachs created issue -
        Wes Wannemacher made changes -
        Field Original Value New Value
        Attachment devMode-method-not-found.patch [ 14041 ]
        Jeff Turner made changes -
        Project Import Mon Feb 01 01:17:42 UTC 2010 [ 1264987062082 ]
        Lukasz Lenart made changes -
        Fix Version/s 2.3.x [ 12319176 ]
        Lukasz Lenart made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Lukasz Lenart [ lukaszlenart ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Lukasz Lenart
            Reporter:
            Andi Sachs
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development