axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vidura Gamini Abhaya <vidu...@gmail.com>
Subject AxisFault thrown with 'unknown'
Date Fri, 20 Feb 2009 02:31:43 GMT
Hi,

I've modified the Axis2 1.4 engine for some experiments and after a recent
modification it is throwing the following AxisFault at the client
intermittently,

org.apache.axis2.AxisFault: unknown
    at
org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:512)
    at
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:370)
    at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:416)
    at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
    at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
    at
edu.rmit.cs.ws.testservice.FactorPrimesServiceStub.primeCount(FactorPrimesServiceStub.java:740)
    at
edu.rmit.cs.net.client.TCPProcessor.createRequest(TCPProcessor.java:127)
    at edu.rmit.cs.net.client.TCPProcessor.run(TCPProcessor.java:63)
    at java.lang.Thread.run(Thread.java:713)

The client uses an unmodified version of the axis2-kernel-1.4.jar.

A few things observed,

- If the web service calls are done in a sequential manner (one after the
other waiting for the first one to complete) the problem doesn't seem to be
there.
- Even when the requests are sent in parallel to the server, the first
requests gets serviced without any problem. The error comes only on the
second request or after that. When the exception is thrown it gets thrown
for all the subsequent requests.
- When the exception is received at the client, the client hangs
momentarily.
- No errors are reported on the server.

I've been unable to pinpoint exactly what causes this so far after a couple
of days effort. However, I found out that the AxisFault gets thrown due to a
SOAP fault that happens somewhere up the execution. The AxisFault gets
thrown from the client code due to the code in
OutInAxisOperationClient.handleRequest,

if (resenvelope.hasFault()||responseMessageContext.isProcessingFault()) {
                if (options.isExceptionToBeThrownOnSOAPFault()) {
                    // does the SOAPFault has a detail element for Excpetion
                    throw
Utils.getInboundFaultFromMessageContext(responseMessageContext);
                }
            }

due to the MessageContext inside
operationContext.messageContexts.[Hashmap].key("In"), it its properties
having a 'fault' for the ContentType.

I couldn't specifically find where the ContentType is set from and what
causes the fault. Any help in finding out what causes this would be greatly
appreciated.

Thanks,

Vidura

Mime
View raw message