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 "Deepal Jayasinghe (JIRA)" <ji...@apache.org> on 2007/01/26 12:28:49 UTC

[jira] Resolved: (AXIS2-1953) Wrong exception occurs when trying to invoke a service which is configured with an invalid message receiver

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

Deepal Jayasinghe resolved AXIS2-1953.
--------------------------------------

    Resolution: Fixed

Fixed the issue in current code base

> Wrong exception occurs when trying to invoke a service which is configured with an invalid message receiver
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-1953
>                 URL: https://issues.apache.org/jira/browse/AXIS2-1953
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>    Affects Versions: 1.1.1
>         Environment: jdk1.5, Win Xp
>            Reporter: Charitha Kankanamge
>         Assigned To: Deepal Jayasinghe
>         Attachments: client.java, myService.aar
>
>
> I created the following service class and deployed with the following services.xml.
> service implementation class
> ----------------------------------------
> public class myService {
> 	public String echo(String s){
> 		return s;
> 	}
> }
> Services.xml
> ------------------
> <service name="myService">
>     <description>
>         This is a sample service created to test Axis2 client API
>     </description>
>     <parameter name="ServiceClass" 
> locked="false">myService
> </parameter>
>     <operation name="echo">
>         <messageReceiver 
> class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
>     </operation>
>   </service>
> Then I tried to invoke the service using a client which used OMElement payload and ServiceClient. 
> I got the following exception when running the client.
> org.apache.axis2.AxisFault: ServiceClass does not implement required method of the form OMElement echo(OMElement e)
> 	at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:271)
> 	at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:202)
> 	at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:579)
> 	at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:508)
> 	at client.main(client.java:42)
> However the correct cause of the problem here is not what the exception says. Here I used a wrong message receiver class in the service and the exception does not say anything about the exact issue. 
> Please generate the correct exception/error in this scenario. (eg:- An error such as 'The specified message receiver is invalid for the scenario' )

-- 
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