[ 
https://issues.apache.org/jira/browse/TUSCANY-3843?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13004922#comment-13004922
 ] 

Benjamin Busjaeger commented on TUSCANY-3843:
---------------------------------------------

This change resolves the issue for me:

diff --git 
a/tuscany-modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/NodeImpl.java
 
b/tuscany-modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/NodeImpl.java
index 7c01da1..58136ef 100644
--- 
a/tuscany-modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/NodeImpl.java
+++ 
b/tuscany-modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/NodeImpl.java
@@ -123,7 +123,8 @@ public class NodeImpl implements Node {
                 // to read the contributions and create the domain composite
                 if (contributions == null) {
                     contributions = 
nodeFactory.loadContributions(configuration, context);
-
+                }
+                if (domainComposite == null) {
                     domainComposite = nodeFactory.configureNode(configuration, 
contributions, context);

                     this.compositeContext =

> Node.start() throws NPE after NodeFactory.create(List<?>)
> ---------------------------------------------------------
>
>                 Key: TUSCANY-3843
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-3843
>             Project: Tuscany
>          Issue Type: Bug
>          Components: SCA Java Runtime
>    Affects Versions: Java-SCA-2.0
>         Environment: revision 1069549 + TUSCANY-3842
>            Reporter: Benjamin Busjaeger
>
> Comopsite activation fails, because domainComposite is null:
> Caused by: org.apache.tuscany.sca.runtime.ActivationException: 
> java.lang.NullPointerException
>       at 
> org.apache.tuscany.sca.core.assembly.impl.CompositeActivatorImpl.activate(CompositeActivatorImpl.java:91)
>       at org.apache.tuscany.sca.node.impl.NodeImpl.start(NodeImpl.java:144)
>       ... 56 more
> Caused by: java.lang.NullPointerException
>       at 
> org.apache.tuscany.sca.core.assembly.impl.CompositeActivatorImpl.activate(CompositeActivatorImpl.java:87)
>       ... 57 more

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to