IBM Support

PH13533: WEB SERVICE REQUEST CONTAINING WS-AT CONTEXT FAILS IF PROVIDER WEB SERVICE IS CONFIGURED TO SUPPORT WS-RM.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When processing an inbound Web Service request with a WS-AT
    Context, processing fails with a java.lang.ClassCastException
    when marshalling the response.
    
    The call stack associated with the error is of the form:
    
    AxisEngine    E org.apache.axis2.engine.AxisEngine receive
    Sandesha2 got an exception when processing an out message:
    java.lang.ClassCastException:
    org.apache.axiom.om.impl.llom.OMElementImpl incompatible with
    org.apache.axiom.soap.SOAPHeaderBlock.
                                     org.apache.axis2.AxisFault:
    Sandesha2 got an exception when processing an out message:
    java.lang.ClassCastException:
    org.apache.axiom.om.impl.llom.OMElementImpl incompatible with
    org.apache.axiom.soap.SOAPHeaderBlock.
     at
    org.apache.sandesha2.handlers.SandeshaOutHandler.invoke(Sandesha
    OutHandler.java:232)
     at
    org.apache.axis2.handlers.AbstractHandler.invoke_stage2(Abstract
    Handler.java:133)
     at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:343)
     at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
     at
    org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:372)
     at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:537)
     at
    org.apache.axis2.jaxws.server.JAXWSMessageReceiver.receive(JAXWS
    MessageReceiver.java:220)
     at
    org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:212)
     at
    org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPo
    stRequest(HTTPTransportUtils.java:172)
     at
    com.ibm.ws.websvcs.transport.http.WASAxis2Servlet.doPost(WASAxis
    2Servlet.java:1632)
    ...
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  WebSphere Application Server users of Web   *
    *                  Services Atomic Transactions                *
    ****************************************************************
    * PROBLEM DESCRIPTION: Provider side processing of a Web       *
    *                      Service request containing a WS-AT      *
    *                      Context fails with                      *
    *                      java.lang.ClassCastException            *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    If a Web Service provider is configured to support both
    WS-Atomic Transactions and WS-ReliableMessaging then a
    java.lang.ClassCastException occurs when the provider is
    processing the response to a request containing a WS-AT
    context.
    It should be noted that WS-RM and WS-AT cannot be used on the
    same request by design, however it should be possible for a
    Web Service provider to be configured to support both WS-AT
    and WS-RM so that either of those qualities of service are
    available on a mutually exclusive basis.
    The ClassCastException occurred because the WS-AT component
    inserted a plain OMElement directly into the SOAPHeader rather
    than a SOAPHeaderBlock.  Later processing by the WS-RM
    component cast the SOAPHeader's child directly to a
    SOAPHeaderBlock.
    

Problem conclusion

  • The WS-AT component was modified to add a SOAPHeaderBlock,
    rather than a plain OMElement, to the SOAPHeader.
    
    The fix for this APAR is currently targeted for inclusion in
    fix packs 8.5.5.16 and 9.0.5.1.  Please refer to the
    Recommended Updates page for delivery information:
    http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980
    

Temporary fix

  • The error occurs when using the default deferred registration
    optimization for WebSphere Application Server to WebSphere
    Application Server WS-AT.  This optimization can be disabled
    by specifying a new Transaction Service Custom Property with
    name DISABLE_WSTX_DEFERRED_REGISTRATION and value true
    

Comments

APAR Information

  • APAR number

    PH13533

  • Reported component name

    WEBSPHERE APP S

  • Reported component ID

    5724J0800

  • Reported release

    850

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2019-06-20

  • Closed date

    2019-06-24

  • Last modified date

    2019-06-24

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    WEBSPHERE APP S

  • Fixed component ID

    5724J0800

Applicable component levels

  • R850 PSY

       UP

  • R900 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.5","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
28 April 2022