IBM Support

PH37038: CHARSET="UTF8" FAILS WITH UNSUPPORTEDENCODINGEXCEPTION IN WINK JAXRS

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • When the charset utf8 is specified with double quotes, the Wink
    JAXRS implementation fails, because the quotes are unexpected.
    Other implementations like CXF just ignore the quotes and accept
    that charset definition.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server using JAXRS-1.1 involving a UTF8     *
    *                  charset                                     *
    ****************************************************************
    * PROBLEM DESCRIPTION: With JAXRS version 1.1 specifying a     *
    *                      charset of "UTF8" with double quotes    *
    *                      can encounter an encoding error.        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    In JAXRS 1.1, specifying a charset="UTF-8" vs. charset=UTF-8
    may result in an UnsupportedEncodingException.
    com.ibm.ws.webcontainer.servlet.ServletWrapper service
    SRVE0014E: Uncaught service() exception root cause
    BPMRestAPIServlet: javax.servlet.ServletException:
    java.io.UnsupportedEncodingException: "UTF-8"
    

Problem conclusion

  • Adjusted the Wink RequestProcessor code to tolerate the
    quotation marks around the charset.
    
    The fix for this APAR is targeted for inclusion in fix packs
    9.0.5.9 and 8.5.5.21. For more information, see 'Recommended
    Updates for WebSphere Application Server':
    https://www.ibm.com/support/pages/node/715553
    

Temporary fix

Comments

APAR Information

  • APAR number

    PH37038

  • Reported component name

    WEBS APP SERV N

  • Reported component ID

    5724H8800

  • Reported release

    850

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2021-05-07

  • Closed date

    2021-07-13

  • Last modified date

    2021-07-13

  • 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

    WEBS APP SERV N

  • Fixed component ID

    5724H8800

Applicable component levels

  • R850 PSY

       UP

  • R900 PSY

       UP

[{"Line of Business":{"code":"LOB36","label":"IBM Automation"},"Business Unit":{"code":"BU053","label":"Cloud \u0026 Data Platform"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"850"}]

Document Information

Modified date:
16 July 2021