IBM Support

PH08182: INVOCATION.BUILDER#ACCEPTLANGUAGE() SETS AN INVALID ACCEPT-LANGUAGE HEADER

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Empty non-null country value in java.util.Locale results in
    IllegalArgumentException:
    Caused by: java.lang.IllegalArgumentException: Illegal locale
    value : de-
            at
    org.apache.cxf.jaxrs.utils.HttpUtils.getLocale(HttpUtils.java:29
    6)
            at
    org.apache.cxf.jaxrs.impl.HttpHeadersImpl.getAcceptableLanguages
    (HttpHeadersImpl.java:169)
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server with applications that use JAXRS     *
    *                  2.0.                                        *
    ****************************************************************
    * PROBLEM DESCRIPTION: A Locale in a JAXRS 2.0 Header          *
    *                      created with an empty string for the    *
    *                      country code will result in an NPE.     *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    Creating  a JAXRS local with an empty string for country code
    (new Locale("en", ""); will result in an NPE.  Empty string
    for country code should be handled the same as a null entry.
    

Problem conclusion

  • Changed the code to an empty string country code the same as a
    null country code is handled.
    
    The fix for this APAR is currently targeted for inclusion in
    fix pack 9.0.0.11.  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

    PH08182

  • Reported component name

    WEBSPHERE APP S

  • Reported component ID

    5724J0800

  • Reported release

    900

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2019-02-06

  • Closed date

    2019-03-29

  • Last modified date

    2019-03-29

  • 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

  • R900 PSY

       UP

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

Document Information

Modified date:
14 October 2021