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/26 17:21:24 UTC

[jira] Resolved: (TUSCANY-2136) Incorrect proxy injected for unwired SCA reference

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

Raymond Feng resolved TUSCANY-2136.
-----------------------------------

    Resolution: Fixed

Fixed under r671343

> Incorrect proxy injected for unwired SCA reference 
> ---------------------------------------------------
>
>                 Key: TUSCANY-2136
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2136
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Core Runtime
>    Affects Versions: Java-SCA-1.2
>            Reporter: Jean-Sebastien Delfino
>            Assignee: Raymond Feng
>             Fix For: Java-SCA-1.2
>
>
> Discussed on tuscany-dev here: http://marc.info/?l=tuscany-dev&m=120615059020103
> The latest code does not seem to handle the injection of unwired SCA 
> references correctly.
> Here's how I set up my code:
> class CustomerInfoServiceImpl {
>    @Reference(required = false)
>    public CustomerInfo customer;
>    ...
> }
> In the .composite I don't wire the customer reference.
> I still end up with a proxy injected into the customer field. I was 
> expecting the field to be null.
> Calling a business method on that proxy throws an exception
> <<<
> Service not found for component AtomAggregator reference customer 
> (bindingURI=null operation=getCustomerInfo). Ensure that the composite 
> containing the service is loaded and started somewhere in the SCA domain 
> and that if running in a remote node that the interface of the target 
> service marked as @Remotable
>  >>>
> and that message is pretty misleading too :)
> Any idea of what's going wrong with injection?

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