IBM Support

PI30941: AN FFDC REPORTING A CTX4SWCH RC=368 IS GENERATED DURING SERVER SHUTDOWN.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • An FFDC is generated during thread termination while the
    server is shutting down.
    The FFDC reports that the context switch (CTX4SWCH) attempt
    to switch a native context on the terminating thread failed
    with return code 368.
    The FFDC shows:
    java.lang.RuntimeException: The attempt to switch a native
    context on terminating thread: xxxxxxxx failed.
    SwitchContextReturnType [ReturnCode: 368, OldContextToken:
    null]
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server Liberty Profile on z/OS              *
    ****************************************************************
    * PROBLEM DESCRIPTION: An FFDC log reporting a CTX4SWCH RC=368 *
    *                      is generated during server shutdown.    *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    An FFDC log is generated during thread termination while the
    server is shutting down. The FFDC reports that the a call to
    Resource and Recovery Services' CTX4SWCH service failed with
    return code 368. The error took place due to an attempt by the
    transaction manager to switch a native context on a terminating
    thread that already had an associated native context.
    The FFDC log shows the following exception:
    java.lang.RuntimeException: The attempt to switch a native
    context on terminating thread: xxxxxxxx failed.
    SwitchContextReturnType [ReturnCode: 368, OldContextToken:
    null]
    at
    com.ibm.ws.zos.tx.internal.ContextManagerImpl.threadTerminating(
    ContextManagerImpl.java:692)
    at
    com.ibm.ws.zos.core.thread.internal.ThreadTracker.threadTerminat
    ing(ThreadTracker.java:101)
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PI30941

  • Reported component name

    LIBERTY - Z/OS

  • Reported component ID

    5655W6514

  • Reported release

    850

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2014-12-04

  • Closed date

    2014-12-05

  • Last modified date

    2014-12-05

  • 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

    LIBERTY - Z/OS

  • Fixed component ID

    5655W6514

Applicable component levels

  • R850 PSY

       UP

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

Document Information

Modified date:
28 April 2022