IBM Support

PI16825: ONE RUNTIMEEXCEPTION IS THROWN FROM THE JAX-RS CLIENT SIDE WITH JAVA 7 IN SOME SCENARIOS.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • On the JAX-RS client side with Java 7, the following exception
    will be thrown in some specific scenarios:
    java.lang.RuntimeException: A
    javax.ws.rs.ext.MessageBodyWriter implementation was not found
    for the class [B type and text/xml media type.  Verify that
    all entity providers are correctly registered.  Add a custom
    javax.ws.rs.ext.MessageBodyWriter provider to handle the type
    and media type if a JAX-RS entity provider does not currently
    exist.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  IBM WebSphere Application Server V8.0       *
    *                  users of JAX-RS web services                *
    ****************************************************************
    * PROBLEM DESCRIPTION: One RuntimeException is thrown from     *
    *                      the JAX-RS client side with Java 7 in   *
    *                      some specific scenarios.                *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    On the JAX-RS client side with Java 7, the following exception
    will be thrown in some scenarios:
    org.apache.wink.client.ClientRuntimeException:
    java.lang.RuntimeException: java.lang.RuntimeException: A
    javax.ws.rs.ext.MessageBodyWriter implementation was not found
    for the class [B type and text/xml media type. Verify that all
    entity providers are correctly registered. Add a custom
    javax.ws.rs.ext.MessageBodyWriter provider to handle the type
    and media type if a JAX-RS entity provider does not currently
    exist.
    at
    org.apache.wink.client.internal.ResourceImpl.invoke(ResourceImpl
    .java:240)
    at
    org.apache.wink.client.internal.ResourceImpl.invoke(ResourceImpl
    .java:189)
    at
    org.apache.wink.client.internal.ResourceImpl.invokeNoException(R
    esourceImpl.java:181)
    at
    org.apache.wink.client.internal.ResourceImpl.post(ResourceImpl.j
    ava:322)
    

Problem conclusion

  • To prevent this RuntimeException, we added a branch for
    dealing with byte arrays and Java bean arrays which are not
    regarded as GenericArrayType.
    
    The fix for this APAR is currently targeted for inclusion in
    fix pack 8.0.0.9.  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

    PI16825

  • Reported component name

    WEBSPHERE APP S

  • Reported component ID

    5724J0800

  • Reported release

    800

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2014-04-28

  • Closed date

    2014-05-14

  • Last modified date

    2014-05-21

  • 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

  • R800 PSY

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.0","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
14 October 2021