You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Musachy Barroso (JIRA)" <ji...@apache.org> on 2009/08/12 23:54:59 UTC

[jira] Commented: (WW-3168) Exceptions thrown by constructors are not mapped to actions as condfigured in struts.xml

    [ https://issues.apache.org/struts/browse/WW-3168?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46614#action_46614 ] 

Musachy Barroso commented on WW-3168:
-------------------------------------

I think we should just document it. It is not the same thing catching an exception from the action method and from the constructor. The constructor might get called even if without an action request, it is up to the object factory to instantiate the actions, and in the case of singletons, there is a good chance they will be created before any request is made. I will document this.

> Exceptions thrown by constructors are not mapped to actions as condfigured in struts.xml
> ----------------------------------------------------------------------------------------
>
>                 Key: WW-3168
>                 URL: https://issues.apache.org/struts/browse/WW-3168
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Core Actions
>    Affects Versions: 2.1.6
>         Environment: Seen on Linux, with JBoss and JDK 1.6.0.13, but this should not matter.
>            Reporter: Jan T. Kim
>            Priority: Minor
>             Fix For: 2.1.8
>
>
> Exception mappings configured as described in docs/exception-configuration.html do not seem to affect exceptions thrown by constructors but result in a "Unable to instantiate Action" exception.
> If this behaviour is intended I suggest to clarify that in the documentation and / or the FAQ.

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