IBM Support

PI26813: WHEN E.PRINTSTACKTRACE() IS CALLED, THE OUTPUT CAN BE MISSING SOME LINES OF USER CODE

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • The Liberty profile will trim frames relating to server
    internals from printed stack traces in the console.log and
    messages.log files. (The trace.log will always have completed
    stack traces.)
    .
    If a stack trace is printed using e.printStackTrace() (rather
    than passed as a parameter in a logging call), the server would
    trim all frames below the first internal method. This means that
    if there is a callback from Liberty code or third party code to
    user code, the user code would not be printed.
    .
    This fix ensures that all user code and third party code is
    included in printed stack traces.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server Liberty Profile                      *
    ****************************************************************
    * PROBLEM DESCRIPTION: When e.printStackTrace() is called, the *
    *                      trimmed console output may be missing   *
    *                      some lines of user code                 *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    If a stack trace is printed using e.printStackTrace() (rather
    than passed as a parameter in a logging call), the server will
    trim all frames below the first internal method. This means that
    if there is a callback from Liberty profile code or third party
    code to user code, the user code would not be printed.
    

Problem conclusion

  • Trimming of stack traces has been updated to ensure callbacks to
    user code are always included.
    
    The fix for this APAR is
    currently targeted for inclusion in fix pack 8.5.5.4.  Please
    refer to the Recommended Updates page for delivery information:
    http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980
    

Temporary fix

  • The trace.log file will always have complete stack traces. If
    exceptions are passed as a parameter in a log call, the stack
    trace will always be trimmed without removing any user code.
    

Comments

APAR Information

  • APAR number

    PI26813

  • Reported component name

    WAS LIBERTY COR

  • Reported component ID

    5725L2900

  • Reported release

    855

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2014-10-01

  • Closed date

    2014-11-12

  • Last modified date

    2014-11-12

  • 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

    WAS LIBERTY COR

  • Fixed component ID

    5725L2900

Applicable component levels

  • R855 PSY

       UP

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

Document Information

Modified date:
27 April 2022