You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Jan T. Kim (JIRA)" <ji...@apache.org> on 2009/06/24 10:32:43 UTC

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

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


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.


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

Posted by "Musachy Barroso (JIRA)" <ji...@apache.org>.
    [ 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.


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

Posted by "Musachy Barroso (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-3168?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Musachy Barroso resolved WW-3168.
---------------------------------

    Resolution: Won't Fix

documentation will be updated

> 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.


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

Posted by "Wes Wannemacher (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-3168?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Wes Wannemacher updated WW-3168:
--------------------------------

    Fix Version/s: 2.1.8

IMO, this is somewhat counter-intuitive and we should fix for 2.1.8

> 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.