Hi,

I have the following piece of code to add contribution to an
EmbeddedSCADomain:

<snip>
               EmbeddedSCADomain eScaDomain = new
EmbeddedSCADomain(classLoader, domainUri);
               ModelResolverImpl modelResolver = new
ModelResolverImpl(classLoader);
               Contribution contribution =
eScaDomain.getContributionService().contribute(contributionURI, new
URL(contributionRoot), modelResolver, false);
               for (DeployedArtifact artifact : contribution.getArtifacts())
{
                   if (artifact.getModel() instanceof Composite) {
                       eScaDomain.getDomainCompositeHelper
().addComposite((Composite)artifact.getModel());
                   }
               }
               eScaDomain.getDomainCompositeHelper().activateDomain();
</snip>

Service lookup is fine.  But, service invocation is throwing a
NullPointerException.  Upon debugging I notice that the references inside
the composite are not wired.  If I add a call
compositeActivator.start(domainComposite)
inside EmbeddedSCADomain.activateDomain() method , I am getting my code to
run as expected.  I am wondering if there is a problem in
EmbeddedSCADomain.activateDomain() method.

Thanks and regards,
Vamsi

Reply via email to