axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kostis Anagnostopoulos <>
Subject IllegalArgumentException when changing fault-y soap-envelope from within a handler
Date Tue, 04 May 2010 15:32:37 GMT

(I'm using axis2-1.4.1 due to jdk-1.4 requirement)

In an axis2-client, i need to replace the SOAPEnvelope from within a
In-Fault Handler.
But i'm getting the next exception:

java.lang.IllegalArgumentException: The MessageContext does not have
an associated SOAPFault.
        at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(
        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(

By comparing the
rev1.4.1  <--> 'trunk'
i see that the code has been modified for supporting RM which requires
the same thing
(to replace SOAPEnv from within handler),
and the SOAPEnvelope is re-read after handler-chain, right before
deciding whether it is a fault.

Here is the source-code from the trunk that is missing in rev1.4.1:

    // rampart handlers change the envelope and set the decrypted envelope
    // so need to check the new one else resenvelope.hasFault() become false.
    resenvelope = responseMessageContext.getEnvelope();

* Does anybody know of any workround to acomplish the same thing
without patching axis2?
(replace a faulty SOAPEnv from within handler)

Thank you in Advance
  Kostis Anagnostopoulos

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

View raw message