You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "耿韶光 (JIRA)" <tu...@ws.apache.org> on 2007/07/05 07:48:04 UTC
[jira] Created: (TUSCANY-1411) JDKInvocationHandler works wrong
when a component references more than one WS
JDKInvocationHandler works wrong when a component references more than one WS
-----------------------------------------------------------------------------
Key: TUSCANY-1411
URL: https://issues.apache.org/jira/browse/TUSCANY-1411
Project: Tuscany
Issue Type: Bug
Components: Java SCA Core Runtime
Affects Versions: Java-SCA-Next
Environment: windows xp, java5
Reporter: 耿韶光
I extended ws-service and ws-reference sample with 2 services, original it has only one reference of web service which was referenced by a component.
Up to now, I add a second service, then things go wrong:
The original component implements a service interface, with "getService" method, the client got the instance(a proxy) of the service interface, then the client could invoke the method on the service interface.
But now the component implements the second service interface, then the org.apache.tuscany.sca.core.invocation.JDKInvocationHandler seems could not recognize the right generic of the component.
--
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
Re: [jira] Resolved: (TUSCANY-1411) JDKInvocationHandler works wrong when a component references more than one WS
Posted by shaoguang geng <ge...@yahoo.com>.
Hi Raymond,
After re-investigated the code, it means to me not a bug in fact, sorry for my "bugging shout".
But there is something should be noticed: for sample ws-ref/ws-service, the client component class implemented a interface or two, This demostration is not right!
Client generic is proxy casted, the component class is proxied to the service interface, so it does not need(or should not) implement the service interface by itself, it is a pretty feature that the client and server side is looser coupled.
So from the sample(ws-ref/ws-serv)'s point of view, the service consumer's programming model should be documented.
"Raymond Feng (JIRA)" <tu...@ws.apache.org> wrote:
[ https://issues.apache.org/jira/browse/TUSCANY-1411?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Raymond Feng resolved TUSCANY-1411.
-----------------------------------
Resolution: Invalid
Fix Version/s: Java-SCA-Next
My understanding is that you said it's NOT a bug. Please speak out if I get it wrong.
> JDKInvocationHandler works wrong when a component references more than one WS
> -----------------------------------------------------------------------------
>
> Key: TUSCANY-1411
> URL: https://issues.apache.org/jira/browse/TUSCANY-1411
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Core Runtime
> Affects Versions: Java-SCA-Next
> Environment: windows xp, java5
> Reporter: è¿é¶å
> Fix For: Java-SCA-Next
>
>
> I extended ws-service and ws-reference sample with 2 services, original it has only one reference of web service which was referenced by a component.
>
> Up to now, I add a second service, then things go wrong:
>
> The original component implements a service interface, with "getService" method, the client got the instance(a proxy) of the service interface, then the client could invoke the method on the service interface.
> But now the component implements the second service interface, then the org.apache.tuscany.sca.core.invocation.JDKInvocationHandler seems could not recognize the right generic of the component.
--
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
---------------------------------
TV dinner still cooling?
Check out "Tonight's Picks" on Yahoo! TV.
[jira] Resolved: (TUSCANY-1411) JDKInvocationHandler works wrong
when a component references more than one WS
Posted by "Raymond Feng (JIRA)" <tu...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-1411?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Raymond Feng resolved TUSCANY-1411.
-----------------------------------
Resolution: Invalid
Fix Version/s: Java-SCA-Next
My understanding is that you said it's NOT a bug. Please speak out if I get it wrong.
> JDKInvocationHandler works wrong when a component references more than one WS
> -----------------------------------------------------------------------------
>
> Key: TUSCANY-1411
> URL: https://issues.apache.org/jira/browse/TUSCANY-1411
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Core Runtime
> Affects Versions: Java-SCA-Next
> Environment: windows xp, java5
> Reporter: 耿韶光
> Fix For: Java-SCA-Next
>
>
> I extended ws-service and ws-reference sample with 2 services, original it has only one reference of web service which was referenced by a component.
>
> Up to now, I add a second service, then things go wrong:
>
> The original component implements a service interface, with "getService" method, the client got the instance(a proxy) of the service interface, then the client could invoke the method on the service interface.
> But now the component implements the second service interface, then the org.apache.tuscany.sca.core.invocation.JDKInvocationHandler seems could not recognize the right generic of the component.
--
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
[jira] Commented: (TUSCANY-1411) JDKInvocationHandler works wrong
when a component references more than one WS
Posted by "耿韶光 (JIRA)" <tu...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-1411?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12510319 ]
耿韶光 commented on TUSCANY-1411:
------------------------------
Things goes like this, There is a runaround of this issue, and now it seems not a bug!
Original error comes from the two interfaces implementation, the sca runtime just got to know one of them, I change the secquence of the two interfaces in the code, then the wrong service call worked, and the right one not.
Now I change the client code into getService([component class],[component name]/[interface name without the package perfix]), OK now it works.
But it seems not a nice way, for the situation, getService call like this will puzzle the developer.
> JDKInvocationHandler works wrong when a component references more than one WS
> -----------------------------------------------------------------------------
>
> Key: TUSCANY-1411
> URL: https://issues.apache.org/jira/browse/TUSCANY-1411
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Core Runtime
> Affects Versions: Java-SCA-Next
> Environment: windows xp, java5
> Reporter: 耿韶光
>
> I extended ws-service and ws-reference sample with 2 services, original it has only one reference of web service which was referenced by a component.
>
> Up to now, I add a second service, then things go wrong:
>
> The original component implements a service interface, with "getService" method, the client got the instance(a proxy) of the service interface, then the client could invoke the method on the service interface.
> But now the component implements the second service interface, then the org.apache.tuscany.sca.core.invocation.JDKInvocationHandler seems could not recognize the right generic of the component.
--
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