You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Katherine Sanders (JIRA)" <ji...@apache.org> on 2010/11/05 13:09:42 UTC
[jira] Updated: (AXIS2-4872) Incorrect default fault action when
other fault actions are overidden in the @Action annotation
[ https://issues.apache.org/jira/browse/AXIS2-4872?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Katherine Sanders updated AXIS2-4872:
-------------------------------------
Attachment: AXIS2-4872.patch
Here's a patch that fixes the problem and improves the fix for AXIS2-4839 to avoid calculating the default fault action twice.
> Incorrect default fault action when other fault actions are overidden in the @Action annotation
> -----------------------------------------------------------------------------------------------
>
> Key: AXIS2-4872
> URL: https://issues.apache.org/jira/browse/AXIS2-4872
> Project: Axis2
> Issue Type: Bug
> Components: Addressing
> Reporter: Katherine Sanders
> Priority: Minor
> Attachments: AXIS2-4872.patch
>
>
> When a method can throw multiple faults, but only some of those faults have custom actions that are set using the @Action and @FaultAction annotations, the other faults have incorrect default fault actions because the Exception class name is the empty string.
> E.g.
> @Action(
> fault={
> @FaultAction(className=TooBigNumbersException.class, value="http://fault5/toobignumbers")
> })
> public int addNumbersFault5(int number1, int number2) throws AddNumbersException, TooBigNumbersException {
> // throw AddNumbersException
> }
> Expected:<tns>/<class>/addNumbersFault5/Fault/AddNumbersException,
> Actual:<tns>/<class>/addNumbersFault5/Fault/
> This is similar to the issue in AXIS2-4839, which was using the wrong faultAction when the value="" in the @FaultAction annotation. This issue was also found during CTS testing for jaxws22.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org