axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Grant Maxwell <>
Subject error handling - please help
Date Thu, 20 Oct 2011 10:38:35 GMT

I am writing a java/axis2 program to access a remote service written in .Net.

The problem I am having is that when the remote service does not like our request for some
reason it does not return a soap message but rather outputs an 
http message like: 
Server was unable to process request. ---> ERROR: 22003: integer out of range

Of course axis2 does spits the dummy with:

org.apache.axis2.AxisFault: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character
'S' (code 83) in prolog; expected '<'
 at [row,col {unknown-source}]: [1,1]
	at org.apache.axis2.AxisFault.makeFault(
	at org.apache.axis2.transport.TransportUtils.createSOAPMessage(
	at org.apache.axis2.transport.TransportUtils.createSOAPMessage(
	at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(
	at org.apache.axis2.description.OutInAxisOperationClient.send(
	at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(
	at org.apache.axis2.client.OperationClient.execute(
	at com.XXXXXX.api.DistributorStub.insertLocation(
	at org.opengts.servers.taip.TrackClientPacketHandler.parseInsertRecord_RTCP(
	at org.opengts.servers.taip.TrackClientPacketHandler.parseInsertRecord(
	at org.opengts.servers.taip.TrackClientPacketHandler.getHandlePacket(
	at org.opengts.util.ServerSocketThread$

I'm quite new to axis2 and am struggling with how to capture this message and deal with it.
My first instinct is to get the original text from the failed message and log the reason,
but I cant work out how to retrieve the text message.
I was only able to get the message (above) via tcpdump and wireshark :(

Can anyone please tell me how to access the incoming message text ?


how to better handle this exception in such a way as to log the cause.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message