[ 
https://issues.apache.org/struts/browse/WW-3134?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Wes Wannemacher updated WW-3134:
--------------------------------

    Attachment: devMode-method-not-found.patch

I'm never really clear on what is devMode, vs. what errors should we send 
upstream. I personally would like to see these stack traces in the log b/c 
maybe I've let a bad URL work it's way into a production app. However, as the 
OP points out, we got rid of the stack trace for action-mapping-not-found, so 
why have this one? Here is a patch to get rid of it, but hopefully we'll get 
some feedback (opinions) before committing.

> devmode=false still shows NoSuchMethodException
> -----------------------------------------------
>
>                 Key: WW-3134
>                 URL: https://issues.apache.org/struts/browse/WW-3134
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.1.6
>         Environment: Linux, Tomcat 5.5
>            Reporter: Andi Sachs
>         Attachments: devMode-method-not-found.patch
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to