IBM Support

PI40117: SETTING DATE AFTER 2038 YEAR AS "LONG DATE" GENERATES ARRAYINDEXOUTOFBOUNDSEXCEPTION

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When setting a date after 2038 in a servlet a Null Pointer
    Exception is thrown
    
    [4/8/15 5:59:19:547 UTC] 0000006c ServletWrappe E
    com.ibm.ws.webcontainer.servlet.ServletWrapper service
    SRVE0068E: An exception was thrown by one of the service
    methods of the servlet [com.ibm.jp.yshk.MyServlet] in
    application [DateHeader]. Exception created :
    [java.lang.ArrayIndexOutOfBoundsException: Array index out of
    range: -1
     at
    com.ibm.ws.webcontainer.srt.http.HttpDate.getBytes(HttpDate.java
    :192
     at
    com.ibm.ws.webcontainer.srt.http.HttpDate.toString(HttpDate.java
    :620
     at
    com.ibm.ws.webcontainer.channel.WCCResponseImpl.setDateHeader(WC
    CRes
     at
    com.ibm.ws.webcontainer.srt.SRTServletResponse.setDateHeader(SRT
    Serv
     at com.ibm.jp.yshk.MyServlet.doGet(MyServlet.java:40)
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  IBM WebSphere Application Server full       *
    *                  profile version 8.5.5 users of              *
    *                  setDateHeader() API                         *
    ****************************************************************
    * PROBLEM DESCRIPTION: The                                     *
    *                      javax.servlet.http.HttpServletResponse. *
    *                      setDateHeader() API throws a            *
    *                      java.lang.ArrayIndexOutOfBoundsExceptio *
    *                      n                                       *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    When calling the
    javax.servlet.http.HttpServletResponse.setDateHeader() API, a
    java.lang.ArrayIndexOutOfBoundsException might be thrown.
    This exception only occurs when a date is set after
    "Tue, 19 Jan 2038 03:14:07 GMT".
    

Problem conclusion

  • The WebContainer code has been modified and the
    ArrayIndexOutOfBoundsException is not thrown now in the above
    explained scenario.
    
    The fix for this APAR is currently targeted for inclusion in
    fix pack 8.5.5.8.  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

    PI40117

  • 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

    2015-04-29

  • Closed date

    2015-06-29

  • Last modified date

    2017-03-28

  • 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

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

Document Information

Modified date:
28 April 2022