[ https://issues.apache.org/jira/browse/TUSCANY-1309?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jean-Sebastien Delfino reassigned TUSCANY-1309: ----------------------------------------------- Assignee: Jean-Sebastien Delfino (was: Simon Laws) > 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 > Components: Java SCA Assembly Model > Affects Versions: Java-SCA-0.90 > Environment: Win XP > Reporter: Simon Laws > Assignee: Jean-Sebastien Delfino > Priority: Minor > Fix For: Java-SCA-Next > > > 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]