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

wangfeng commented on TUSCANY-1473:
-----------------------------------

Thank Raymond for providing the patch.

I think this resolution is not perfect.

I read the code and found this getPhysical method always returned 'Object' 
class type.We called the isAssignableFrom method to match the input type,thus 
what ever type was inputed,this method always returned true.

Maybe modifing the getPhysical method's return type which should be the type 
defined in the WSDL file would be better.

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

Reply via email to