Hi Ted,

Could u please add JIRA (in Sandesha2) and attach whatever the files
necessary to reproduce the error. I just did a test with Axis21.1.1/Sandesha2
1.1 and it ran without trouble.

Chamikara


On 5/2/07, Ted Jones <[EMAIL PROTECTED]> wrote:

 I am using Sandesha2 1.1 with Axis2 1.1.1 and am running into an error
where the MessageReceiver is null for the Axis operation and is causing
a NPE. The following code in the OutInAxisOperation class is where the
exception occurs:

 if (options.isUseSeparateListener()) {
            CallbackReceiver callbackReceiver = (CallbackReceiver) axisOp
                    .getMessageReceiver();
            callbackReceiver.addCallback(mc.getMessageID(), callback);

I have the message receivers defined in my client axis2.xml and server
axis.xml. I even have the message receivers defined in the service.xml for
good measure.

I have set the following options in the Axis2 client:

clientOptions.setTransportInProtocol(
org.apache.axis2.Constants.TRANSPORT_HTTP);
clientOptions.setProperty(AddressingConstants.WS_ADDRESSING_VERSION,
org.apache.axis2.addressing.AddressingConstants.Final.WSA_NAMESPACE);
clientOptions.setUseSeparateListener(true);

The client/service works without Sandesha2 since I am not using a separate
listener in that case.

Is there anything else I need to add the the Axis2.xml or client code to
get the receiver set on the operation?

TIA,
Ted






--
Chamikara Jayalath
WSO2 Inc.
http://wso2.com/
http://wso2.org/ - For your Oxygen needs

Reply via email to