NPE if SCDL uses component reference that is not defined consistently in the 
implementation
-------------------------------------------------------------------------------------------

                 Key: TUSCANY-1309
                 URL: https://issues.apache.org/jira/browse/TUSCANY-1309
             Project: Tuscany
          Issue Type: Bug
         Environment: Win XP
            Reporter: Simon Laws
            Assignee: Simon Laws
            Priority: Minor


For example,

public class AlertsServiceImpl {

    private RSSCheckerService    rssChecker;
    
    private AlertsSourcesService alertsSources;

    @Reference
    public void setRssChecker(RSSCheckerService rssChecker) {
        this.rssChecker = rssChecker;
    }
    
    // missing explicit reference defintion for alertsSources. 
    ...
}

Then the SCDL...

    <component name="AlertsServiceComponent">
        <implementation.java 
class="org.apache.tuscany.sca.samples.aggregator.AlertsServiceImpl" />
        <reference name="rssChecker" target="RSSCheckerComponent"/>
        <reference name="alertsSources" target="AlertsSourcesServiceComponent"/>
    </component>

Results in NPE

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