After some fun debugging today I realized that something has changed in
how reference bindings are configured, breaking with an NPE on
references with bindings that specify URIs, like follows:
<composite targetNamespace="http://catalog" name="catalog-mediation">
<component name="MediatedVegetablesCatalog">
<implementation.java
class="services.mediation.VegetablesCatalogMediationImpl"/>
<service name="Catalog">
<interface.java interface="services.Catalog"/>
<binding.ws name="Catalog"
uri="http://localhost:8105/MediatedVegetablesCatalog"/>
</service>
<reference name="catalog">
<interface.java interface="services.ejb.CatalogEJBRemote"/>
<binding.ejb name="catalog#VegetablesCatalogEJB/CatalogEJB"
uri="corbaname:iiop:[EMAIL PROTECTED]:1050#VegetablesCatalogEJB"/>
</reference>
</component>
</composite>
Instead of seeing an EJB binding in the memory model representing the
reference, I'm now seeing an SCA binding, with no URI, causing the
following NPE:
info: severe: SCA Node could not be created
info: java.lang.reflect.InvocationTargetException
info: at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
info: at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
info: at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
info: at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
info: at
org.apache.tuscany.sca.node.launcher.NodeLauncherUtil.node(NodeLauncherUtil.java:297)
info: at
org.apache.tuscany.sca.node.launcher.NodeLauncher.createNode(NodeLauncher.java:60)
info: at
org.apache.tuscany.sca.node.launcher.NodeLauncher.main(NodeLauncher.java:122)
info: Caused by: org.osoa.sca.ServiceRuntimeException:
java.lang.NullPointerException
info: at
org.apache.tuscany.sca.node.impl.NodeImpl.<init>(NodeImpl.java:155)
info: at
org.apache.tuscany.sca.node.impl.NodeFactoryImpl.createSCANode(NodeFactoryImpl.java:37)
info: at
org.apache.tuscany.sca.implementation.node.launcher.NodeImplementationLauncherBootstrap.<init>(NodeImplementationLauncherBootstrap.java:94)
info: ... 7 more
info: Caused by: java.lang.NullPointerException
info: at
org.apache.tuscany.sca.assembly.builder.impl.BaseWireBuilderImpl.createComponentReferenceTargets(BaseWireBuilderImpl.java:524)
info: at
org.apache.tuscany.sca.assembly.builder.impl.BaseWireBuilderImpl.connectComponentReferences(BaseWireBuilderImpl.java:599)
info: at
org.apache.tuscany.sca.assembly.builder.impl.BaseWireBuilderImpl.wireComponentReferences(BaseWireBuilderImpl.java:117)
info: at
org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceWireBuilderImpl.build(ComponentReferenceWireBuilderImpl.java:44)
info: at
org.apache.tuscany.sca.assembly.builder.impl.CompositeBuilderImpl.build(CompositeBuilderImpl.java:140)
info: at
org.apache.tuscany.sca.host.embedded.impl.ReallySmallRuntime.buildComposite(ReallySmallRuntime.java:237)
info: at
org.apache.tuscany.sca.node.impl.NodeImpl.configureNode(NodeImpl.java:333)
info: at
org.apache.tuscany.sca.node.impl.NodeImpl.<init>(NodeImpl.java:152)
info: ... 9 more
info: Exception in thread "main"
org.apache.tuscany.sca.node.launcher.LauncherException:
java.lang.reflect.InvocationTargetException
info: at
org.apache.tuscany.sca.node.launcher.NodeLauncherUtil.node(NodeLauncherUtil.java:330)
info: at
org.apache.tuscany.sca.node.launcher.NodeLauncher.createNode(NodeLauncher.java:60)
info: at
org.apache.tuscany.sca.node.launcher.NodeLauncher.main(NodeLauncher.java:122)
info: Caused by: java.lang.reflect.InvocationTargetException
info: at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
info: at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
info: at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
info: at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
info: at
org.apache.tuscany.sca.node.launcher.NodeLauncherUtil.node(NodeLauncherUtil.java:297)
info: ... 2 more
info: Caused by: org.osoa.sca.ServiceRuntimeException:
java.lang.NullPointerException
info: at
org.apache.tuscany.sca.node.impl.NodeImpl.<init>(NodeImpl.java:155)
info: at
org.apache.tuscany.sca.node.impl.NodeFactoryImpl.createSCANode(NodeFactoryImpl.java:37)
info: at
org.apache.tuscany.sca.implementation.node.launcher.NodeImplementationLauncherBootstrap.<init>(NodeImplementationLauncherBootstrap.java:94)
info: ... 7 more
info: Caused by: java.lang.NullPointerException
info: at
org.apache.tuscany.sca.assembly.builder.impl.BaseWireBuilderImpl.createComponentReferenceTargets(BaseWireBuilderImpl.java:524)
info: at
org.apache.tuscany.sca.assembly.builder.impl.BaseWireBuilderImpl.connectComponentReferences(BaseWireBuilderImpl.java:599)
info: at
org.apache.tuscany.sca.assembly.builder.impl.BaseWireBuilderImpl.wireComponentReferences(BaseWireBuilderImpl.java:117)
info: at
org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceWireBuilderImpl.build(ComponentReferenceWireBuilderImpl.java:44)
info: at
org.apache.tuscany.sca.assembly.builder.impl.CompositeBuilderImpl.build(CompositeBuilderImpl.java:140)
info: at
org.apache.tuscany.sca.host.embedded.impl.ReallySmallRuntime.buildComposite(ReallySmallRuntime.java:237)
info: at
org.apache.tuscany.sca.node.impl.NodeImpl.configureNode(NodeImpl.java:333)
info: at
org.apache.tuscany.sca.node.impl.NodeImpl.<init>(NodeImpl.java:152)
info: ... 9 more
Any clue?
--
Jean-Sebastien