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 2007/09/06 00:35:34 UTC

[jira] Assigned: (TUSCANY-1662) NullpointerException if reference name in composite file needs to match exactly what is defined in java file

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

Raymond Feng reassigned TUSCANY-1662:
-------------------------------------

    Assignee: Raymond Feng

> NullpointerException if reference name in composite file needs to match exactly what is defined in java file
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-1662
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1662
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Problem Determination
>            Reporter: Rashmi Hunt
>            Assignee: Raymond Feng
>             Fix For: Java-SCA-Next
>
>
> Reference name in composite file needs to match exactly what is defined in java file : example : in java reference : 
> @Reference
>           public void setPricechgLoggingWSService (PricechgLoggingWSService pricechgLoggingWSService) {
>               this.pricechgLoggingWSService = pricechgLoggingWSService;
>           }
> in composite file : <reference name="pricechgLoggingWSService">
> If the mismatch occurred, NPE will be generated when composite starts
> java.lang.NullPointerException
>                                 at org.apache.tuscany.sca.core.runtime.CompositeActivatorImpl.createWires      
>                                 (CompositeActivatorImpl.java:328)
>                                 at org.apache.tuscany.sca.core.runtime.CompositeActivatorImpl.createRuntimeWires 
>                                 (CompositeActivatorImpl.java:269)
>                                  at org.apache.tuscany.sca.core.runtime.CompositeActivatorImpl.activate 
>                                 (CompositeActivatorImpl.java:578)
> I'm not sure if the stack trace would be the same, but besides the error where you have a typing mismatch you get the same net result if your @Reference is not placed on a method/field with public or protected access (i.e. if you use a private or pkg (dflt) modifier). Might as well tackle @Property at the same time.. probably the same state of affairs there. 

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