IBM Support

PM23491: A derived JAXB bean may not be marshaled (sent) correctly to a JAX-WS Web service.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • A derived JAXB bean may not be marshaled (sent) correctly to a
    JAX-WS Web service.  The receiving service may fail with an
    unpredictable error.
    
    Here is an example scenario that may fail.
    
    The method for the Web service is:
    
     @WebMethod
     @RequestWrapper(my.service.Echo)
     @ResponseWrapper(my.service.EchoResponse)
     public my.data.A echo(my.data.A a);
    
    And the application sends a JAXB bean that is my.data.B which
    extends my.data.A.
    
    In such cases, the JAX-WS runtime may send an XML message
    containing the element A instead of the derived element B.
    

Local fix

  • na
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  IBM WebSphere Application Server Feature    *
    *                  Pack for Web Services users of JAX-WS       *
    ****************************************************************
    * PROBLEM DESCRIPTION: A derived JAXB bean may not be          *
    *                      marshaled (sent) correctly to a         *
    *                      JAX-WS Web service.                     *
    ****************************************************************
    * RECOMMENDATION:  Install a fix pack containing this APAR.    *
    ****************************************************************
    A derived JAXB bean may not be marshaled (sent) correctly to a
    JAX-WS Web service.  The receiving service may fail with an
    unpredictable error.
    
    Here is an example scenario that may fail.
    
    The method for the Web service is:
    
     @WebMethod
     @RequestWrapper(my.service.Echo)
     @ResponseWrapper(my.service.EchoResponse)
     public my.data.A echo(my.data.A a);
    
    And the application sends a JAXB bean that is my.data.B which
    extends my.data.A.
    
    In such cases, the JAX-WS runtime may send an XML message
    containing the element A instead of the derived element B.
    
    Note:
      1) The error will only occur in V7.0 if the Web method
    specifies a @RequestWrapper or @ResponseWrapper class.
      2) The error will only occur if the wrapper class was
    generated with tooling from a prior version of WebSphere.  The
    wsimport tooling provided in V7.0 adds @XmlSeeAlso
    annotations, which correctly reference the derived class (B).
    

Problem conclusion

  • The JAX-WS V7.0 runtime uses the JAXB 2.1 version of JAX-B.
    The 2.1 version of JAXB provides an @XmlSeeAlso annotation,
    which is used to reference derived classes. The Feature Pack
    for Web Services runtime in V6.1 uses an older version of JAXB
    that does not support the @XmlSeeAlso annotation.
    
    This APAR will inspect the parameters of the Web service and
    tolerate the Feature Pack for Web Serice usage of derived JAXB
    objects.
    
    The fix for this APAR is currently targeted for inclusion in
    fix pack 6.1.0.35.  Please refer to the Recommended Updates
    page for delivery information:
    http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM23491

  • Reported component name

    WEBSERVIC FEATU

  • Reported component ID

    5724J0850

  • Reported release

    610

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2010-09-29

  • Closed date

    2010-10-15

  • Last modified date

    2010-10-15

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

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

    PM24272

Fix information

  • Fixed component name

    WEBSERVIC FEATU

  • Fixed component ID

    5724J0850

Applicable component levels

  • R610 PSY

       UP

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

Document Information

Modified date:
10 February 2022