Hi All,

I'm getting an Exception whilst attempting to get a client component
node using the following code:

node = 
SCANode2Factory.newInstance().createSCANode("target/classes/client.composite",
new SCAContribution("test", "target/classes"));

The composite contains a reference to a locally hosted web service:

<binding.ws uri="http://localhost:8080/example-ws/WSServiceComponent"/>

When I execute my client I get the following NPE, which it appears to
be throwing whilst trying to add an operation to the wsdl based upon
the interface (I'm using interface.java).

The signature of the interface that causes it to die is:

public void throwException throws WSException();

And the Exception is:

Caused by: java.lang.NullPointerException
        at 
org.apache.tuscany.sca.binding.ws.wsdlgen.Interface2WSDLGenerator.generateOperation(Interface2WSDLGenerator.java:527)
        at 
org.apache.tuscany.sca.binding.ws.wsdlgen.Interface2WSDLGenerator.generate(Interface2WSDLGenerator.java:232)
        at 
org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator.createWSDLInterfaceContract(BindingWSDLGenerator.java:306)
        at 
org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator.createWSDLDocument(BindingWSDLGenerator.java:204)
        at 
org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator.generateWSDL(BindingWSDLGenerator.java:162)
        at 
org.apache.tuscany.sca.binding.ws.xml.BindingBuilderImpl.build(BindingBuilderImpl.java:48)
        at 
org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceBindingBuilderImpl.buildReferenceBindings(ComponentReferenceBindingBuilderImpl.java:65)
        at 
org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceBindingBuilderImpl.build(ComponentReferenceBindingBuilderImpl.java:47)
        at 
org.apache.tuscany.sca.assembly.builder.impl.CompositeBuilderImpl.build(CompositeBuilderImpl.java:142)
        at 
org.apache.tuscany.sca.host.embedded.impl.ReallySmallRuntime.buildComposite(ReallySmallRuntime.java:234)
        at 
org.apache.tuscany.sca.node.impl.NodeImpl.configureNode(NodeImpl.java:359)
        at org.apache.tuscany.sca.node.impl.NodeImpl.<init>(NodeImpl.java:203)
        ... 26 more

Does anyone have any ideas what would be causing this issue?

Cheers,

Dave.

--
Dave Sowerby MEng MBCS

Reply via email to