You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Raymond Feng (JIRA)" <tu...@ws.apache.org> on 2008/03/03 22:40:50 UTC

[jira] Resolved: (TUSCANY-1473) Define component's service with interface.wsdl ,throws 'No matching operation' error.

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

Raymond Feng resolved TUSCANY-1473.
-----------------------------------

    Resolution: Fixed

I agree there is room for improvement in the java2wsdl mapping/matching. For this specific case, since WSDL interface is always remotable and operation overloading is not supported. We now compare the name to find the matching operation.

> Define component's service with interface.wsdl ,throws 'No matching operation' error.
> -------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-1473
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1473
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Assembly Model
>    Affects Versions: Java-SCA-0.91
>         Environment: Windows XP
>            Reporter: wangfeng
>            Assignee: Raymond Feng
>             Fix For: Java-SCA-Next
>
>         Attachments: testcase.zip
>
>
> I define the component's service with interface.java,the sample runs fine. but when I modify the component's service with interface.wsdl,the sample throws an exception.
> The throwable stack is :
> Exception in thread "main" java.lang.IllegalArgumentException: No matching operation is found: public abstract java.lang.String helloworld.HelloWorldService.getGreetings(java.lang.String)
> 	at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:69)
> 	at $Proxy10.getGreetings(Unknown Source)
> 	at helloworld.HelloWorldClient.main(HelloWorldClient.java:33)
> I look into the code,found the invoke mothod's input type is 'String',but the method which name is operation.getInputType().getLogical().get(i).getPhysical() on the SourceOperation  of the InvocationChain  is always return 'Object' type,so can't find an operation to match.

-- 
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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org