You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fx-dev@ws.apache.org by Amitesh Pandya <am...@gmail.com> on 2006/06/12 13:33:39 UTC

Problem returning WSDL Fault..

Hi There,
I'm trying to return a Custom Fault from my web service implemented in
the Axis2 1.0 + Sandesha2 1.0

The service is implemented using the WSDL2JAVA generated skeleton.

The service is deployed as a IN-OUT RM service using the Sandesha.

Everything works fine as long as the fault is not thrwon from the Skeleton.
As soon as I throw a fault from the Skeleton I get the error: (Stack
trace mentioned below)

Kindly let me know If it is a know issue or If I've to do something
extra to thros an exception If I'm using Sandesha.

Kind Regards
Amitesh
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[12/06/06 12:10:57:289 BST] 0000003f SystemErr     R 	at
org.apache.sandesha2.workers.InOrderInvoker.run(InOrderInvoker.java:199)
[12/06/06 12:10:57:289 BST] 0000003f SystemErr     R Caused by:
org.apache.axis2.AxisFault: ReceiveFaultMessageException
[12/06/06 12:10:57:289 BST] 0000003f SystemErr     R 	at
my.test.sample.ReceiveServiceMessageReceiverInOut.invokeBusinessLogic(ReceiveServiceMessageReceiverInOut.java:70)
[12/06/06 12:10:57:289 BST] 0000003f SystemErr     R 	at
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:37)
[12/06/06 12:10:57:289 BST] 0000003f SystemErr     R 	at
org.apache.axis2.engine.AxisEngine.resumeReceive(AxisEngine.java:497)
[12/06/06 12:10:57:289 BST] 0000003f SystemErr     R 	at
org.apache.axis2.engine.AxisEngine.resume(AxisEngine.java:543)
[12/06/06 12:10:57:305 BST] 0000003f SystemErr     R 	at
org.apache.sandesha2.workers.InOrderInvoker.run(InOrderInvoker.java:189)
[12/06/06 12:10:58:304 BST] 0000003f SystemErr     R
org.apache.sandesha2.SandeshaException: Invalid message addition ,
operation context completed; nested exception is:
	org.apache.axis2.AxisFault: Invalid message addition , operation
context completed
	at org.apache.sandesha2.workers.InOrderInvoker.run(InOrderInvoker.java:199)
Caused by: org.apache.axis2.AxisFault: Invalid message addition ,
operation context completed
	at org.apache.axis2.description.InOutAxisOperation.addMessageContext(InOutAxisOperation.java:63)
	at org.apache.axis2.context.OperationContext.addMessageContext(OperationContext.java:85)
	at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:35)
	at org.apache.axis2.engine.AxisEngine.resumeReceive(AxisEngine.java:497)
	at org.apache.axis2.engine.AxisEngine.resume(AxisEngine.java:543)
	at org.apache.sandesha2.workers.InOrderInvoker.run(InOrderInvoker.java:189)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

---------------------------------------------------------------------
To unsubscribe, e-mail: sandesha-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: sandesha-dev-help@ws.apache.org