[ http://issues.apache.org/jira/browse/TUSCANY-586?page=all ]
ant elder closed TUSCANY-586.
-----------------------------
Resolution: Invalid
Not applicable to the new runtime code
> NullPointerException during
> registerModelObject(AbstractCompositeContext.java:446)
> ----------------------------------------------------------------------------------
>
> Key: TUSCANY-586
> URL: http://issues.apache.org/jira/browse/TUSCANY-586
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Core
> Affects Versions: Java-M1
> Environment: Windows XP
> Reporter: Yang Lei
>
> The scenario is:
> My sca.module file is in different location than the classpath location, so I
> use binaryClassLoader to indicate where to load binaries, use muduleURI to
> indicate the sca.module location.
> The code causing problem is like the following:
> ResourceLoader resourceLoader = new
> ResourceLoaderImpl(binaryClassLoader);
> ...
> AssemblyContext modelContext = new
> AssemblyContextImpl(modelFactory, modelLoader, resourceLoader);
> ModuleComponentConfigurationLoader loader =
> BootstrapHelper.getConfigurationLoader(systemContext, modelContext);
> ModuleComponent moduleComponent =
> loader.loadModuleComponent(name,configURI, new URL(moduleURI));
> rootContext.registerModelObject(moduleComponent);
> The exception is:
> Stack Dump = java.lang.NullPointerException
> at
> org.apache.tuscany.core.context.impl.AbstractCompositeContext.wireSource(AbstractCompositeContext.java:636)
> at
> org.apache.tuscany.core.context.impl.AbstractCompositeContext.start(AbstractCompositeContext.java:185)
> at
> org.apache.tuscany.core.context.scope.CompositeScopeContext.registerFactory(CompositeScopeContext.java:95)
> at
> org.apache.tuscany.core.context.impl.AbstractCompositeContext.registerConfiguration(AbstractCompositeContext.java:499)
> at
> org.apache.tuscany.core.context.impl.AbstractCompositeContext.registerModelObject(AbstractCompositeContext.java:446)
> Appreciate the fix.
> Yang
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]