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 "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org> on 2007/11/19 13:55:47 UTC

[jira] Updated: (AXIS2-3138) Cannot throw same fault from multiple methods

     [ https://issues.apache.org/jira/browse/AXIS2-3138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amila Chinthaka Suriarachchi updated AXIS2-3138:
------------------------------------------------

    Attachment: exceptions.tar

I tested this with the attached wsdl and source codes and it worked fine.

> 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.3, 1.2
>         Environment: Windows XP
>            Reporter: Scott Waldner
>            Assignee: Amila Chinthaka Suriarachchi
>            Priority: Critical
>         Attachments: exceptions.tar
>
>
> 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org