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 "Sagara Gunathunga (Resolved) (JIRA)" <ji...@apache.org> on 2011/12/22 06:49:30 UTC

[jira] [Resolved] (AXIS2-5092) IN-only method custom exception return missing details

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

Sagara Gunathunga  resolved AXIS2-5092.
---------------------------------------

    Resolution: Invalid

As I commented on AXIS2-5215 this is an invalid option.
                
> IN-only method custom exception return missing details
> ------------------------------------------------------
>
>                 Key: AXIS2-5092
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5092
>             Project: Axis2
>          Issue Type: Bug
>          Components: adb, rpc
>    Affects Versions: 1.5.5, 1.6.0, 1.6.1, 1.7.0
>         Environment: Tomcat 6, jdk 1.6.0_26
>            Reporter: Vilnis Termanis
>            Assignee: Sagara Gunathunga 
>              Labels: detail, exception, in-only, pojo
>
> Procedure:
> 1) Create POJO service with non-returning function which throws a custom exception, e.g.:
> public class ExampleService { public void testFunction(String something) throws MyException { throw new MyException("testing123", 123); }}
> Explicitly define testFunction() as "InOnly" in services.xml (due to AXIS2-5215):
>  <operation name="testFunction"><messageReceiver class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver" /></operation>
> 3) Call testFunction() from client
> 4) Change function to be non-void, e.g.:
> public boolean testFunction(String something) throws MyException { throw new MyException("testing123", 123); }}
> 5) Repeat step 3
> Result:
> 3) Additional exception variables are not returned as part of xml response, i.e. an empty "<detail/>" tag is returned.
> 5) Fully populated <detail> tag returned as part of exception, as expected.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org