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

Raymond Feng resolved TUSCANY-1662.
-----------------------------------

    Resolution: Fixed

Fixed under r573086

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

Reply via email to