You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by Lou Amodeo <lo...@gmail.com> on 2007/06/12 17:23:35 UTC
Problems with callback using WS Binding
I am trying to use callbacks with the WS Binding and receive a NPE during
composite activation. It looks like the issue is that the resolve() method
in the WebServiceBindingProcessor is not setting up a callbackInterface on
the InterfaceContract. The following snippet shows how the callInterface is
being set but there is no such code to set the callbackInterface?
PortType portType = getPortType(model);
*if* (portType != *null*) {WSDLInterfaceContract interfaceContract =
wsdlFactory.createWSDLInterfaceContract();
WSDLInterface wsdlInterface;
*try* {
wsdlInterface = introspector.introspect(portType,
wsdlDefinition.getInlinedSchemas(),
resolver);
} *catch* (InvalidInterfaceException e) {
*throw* *new* ContributionResolveException(e);
}
interfaceContract.setInterface(wsdlInterface);
model.setBindingInterfaceContract(interfaceContract);
}
Caused by: java.lang.NullPointerException
at org.apache.tuscany.sca.interfacedef.impl.InterfaceContractMapperImpl.map(
InterfaceContractMapperImpl.java:246)
at org.apache.tuscany.sca.core.runtime.CompositeActivatorImpl.createWires(
CompositeActivatorImpl.java:337)
at
org.apache.tuscany.sca.core.runtime.CompositeActivatorImpl.createRuntimeWires
(CompositeActivatorImpl.java:269)
at org.apache.tuscany.sca.core.runtime.CompositeActivatorImpl.activate(
CompositeActivatorImpl.java:580)
at
org.apache.tuscany.sca.host.embedded.impl.EmbeddedSCADomain$DomainCompositeHelper.addComposite
(EmbeddedSCADomain.java:124)