Cannot throw same fault from multiple methods
---------------------------------------------

                 Key: AXIS2-3138
                 URL: https://issues.apache.org/jira/browse/AXIS2-3138
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
    Affects Versions: 1.2, 1.3
         Environment: Windows XP
            Reporter: Scott Waldner
            Priority: Critical


I am using Axis2 to consume a web service (client application).  The web 
service has multiple methods that throw the same exception.  For example:

            Method1() throws MyCustomException1
            Method2() throws MyCustomException1

When MyCustomException1 is thrown from Method2 it gets returned from the 
generated client stubs as a RemoteException instead of MyCustomException1.

I am not an expert at the implementation of Axis2, but here is what I can see.  
It looks like the generated client stubs are ok.  The generated client stubs 
are interrogating the returned exception looking for 
"Method2.MyCustomException1".  However, the exception it is comparing against 
is actually "Method1.MyCustomException1".  This seems like the cause of the 
problem - somehow the exception was mapped wrong because two method are 
throwing this same exception.

A similar bug was written previously which fixed the generated code, but it 
appears that there are still problems.  See issues AXIS2-2778 and AXIS2-2748.

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to