axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Katherine Sanders (JIRA)" <j...@apache.org>
Subject [jira] Created: (AXIS2-4872) Incorrect default fault action when other fault actions are overidden in the @Action annotation
Date Fri, 05 Nov 2010 12:05:45 GMT
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


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


Mime
View raw message