IBM Support

PH15733: SIMPLEDATEFORMAT USAGE IN JAX-RS HEADERS CLASS CAUSING ARRAYINDEXOUTOFBOUNDSEXCEPTION

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Usage of a non thread-safe implementation to get an instance of
    SimpleDateFormat resulted in the below
    java.lang.ArrayIndexOutOfBoundsException:
    
    java.lang.ArrayIndexOutOfBoundsException
    at java.util.Calendar.getDisplayName(Calendar.java:2125)
    at
    java.text.SimpleDateFormat.subFormat(SimpleDateFormat.java:1136)
    at java.text.SimpleDateFormat.format(SimpleDateFormat.java:977)
    at java.text.SimpleDateFormat.format(SimpleDateFormat.java:947)
    at java.text.DateFormat.format(DateFormat.java:356)
    at
    org.apache.cxf.transport.http.Headers.toHttpDate(Headers.java:54
    7)
    at
    org.apache.cxf.transport.http.Headers.headerObjectToString(Heade
    rs.java:514)
    

Local fix

  • N/A
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server                                      *
    ****************************************************************
    * PROBLEM DESCRIPTION: JAX-RS 2.0 requests cause a             *
    *                      ArrayIndexOutOfBoundsException.         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    SimpleDateFormat is not thread-safe, so processing multiple
    requests can result in an ArrayIndexOutOfBoundsException.
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PH15733

  • 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-08-19

  • Closed date

    2019-10-25

  • Last modified date

    2019-10-25

  • 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:
17 October 2021