IBM Support

PH47827: NPE DURING BATCH JOB EXECUTION

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • The following exception was issued during batch job execution:
    
    java.lang.NullPointerException
    at com.ibm.wsspi.batch.checkpointalgorithms.timebased.getAlgori
    thmName(timebased.java:47)
    at com.xzy.abc.getAlgorithmName(ABCLogger.java:19)    // line
    modified for sec
    at com.ibm.ws.gridcontainer.batch.checkpoint.CheckpointMgr.init
    ialize(CheckpointMgr.java:317)
    at com.ibm.ws.gridcontainer.batch.impl.StepManagerImpl._getChec
    kpointManager(StepManagerImpl.java:721)
    at com.ibm.ws.gridcontainer.batch.impl.StepManagerImpl.setupSte
    p(StepManagerImpl.java:250)
    at com.ibm.ws.gridcontainer.security.actions.SetupStepBatchUser
    PrivilegedAction.executeAction(SetupStepBatchUserPrivilegedActi
    on.java:45)
    at com.ibm.ws.gridcontainer.security.AbstractUserPrivilegedActi
    on.run(AbstractUserPrivilegedAction.java:47)
    
    The batch runtime is accessing a field from the algorithm that's
    not yet initialized due to an earlier initialization error. This
    results in NullPointerException which is masking the original
    exception during initialization. The APAR will deliver the
    proper error handling. It will not fix that original exception
    which could be cased by a number of reasons.
    

Local fix

  • n/a
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server                                      *
    *                  Java Batch                                  *
    ****************************************************************
    * PROBLEM DESCRIPTION: NullPointerException occurs early       *
    *                      during                                  *
    *                      initialization of batch job's           *
    *                      checkpoint                              *
    *                      manager                                 *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    When an error is encountered during initialization of the batch
    runtime Checkpoint Manager, the runtime attempts to log an error
    message.  It uses some values from the job's checkpoint
    algorithm
    in that error message.  If the error occurs early enough during
    the initialization, some values may not be initialized yet,
    leading to a NullPointerException when accessed for use in the
    error message, and losing the original error that occurred.
    

Problem conclusion

  • A code update has been made to properly handle the condition if
    an error occurs during early initialization of the job checkpoin
    manager.
    
    The fix for this APAR is targeted for inclusion in fix pack
    9.0.5.14 and 8.5.5.23. For more information, see 'Recommended
    Updates for WebSphere Application Server':
    https://www.ibm.com/support/pages/node/715553
    

Temporary fix

Comments

APAR Information

  • APAR number

    PH47827

  • Reported component name

    WEBSPHERE FOR Z

  • Reported component ID

    5655I3500

  • Reported release

    900

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2022-07-07

  • Closed date

    2022-08-09

  • Last modified date

    2022-08-09

  • 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 FOR Z

  • Fixed component ID

    5655I3500

Applicable component levels

[{"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":"900","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
10 August 2022