IBM Support

PH54093: COLLECTOR TOOL FAILS WITH NULLPOINTEREXCEPTION

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

  • When running the collector tool, an NullPointerException is
    encoutered when parsing through an empty file with a stack
    trace:
    
    Caused by: java.lang.NullPointerException
          at com.ibm.websphere.rastools.collector.Collector.flushOu
    tputBuffer(Collector.java:4365)
          at com.ibm.websphere.rastools.collector.Collector.scanAnd
    ObfuscateFile(Collector.java:4117)
          at com.ibm.websphere.rastools.collector.Collector.getFile
    (Collector.java:1075)
          at com.ibm.websphere.rastools.collector.Collector.getFile
    s(Collector.java:1246)
          at com.ibm.websphere.rastools.collector.Collector.getFile
    s(Collector.java:1132)
          at com.ibm.websphere.rastools.collector.Collector.getDir(
    Collector.java:1529)
          at com.ibm.websphere.rastools.collector.Collector.collect
    (Collector.java:981)
          at com.ibm.websphere.rastools.collector.Collector.main(Co
    llector.java:373)
          ... 5 more
    

Local fix

  • N/A
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server.                                     *
    ****************************************************************
    * PROBLEM DESCRIPTION: When running the collector tool, an     *
    *                      NullPointerException is                 *
    *                      encountered when the file parsed        *
    *                      through                                 *
    *                      is empty.                               *
    ****************************************************************
    * RECOMMENDATION:  Make the file non-empty as a work-around.   *
    ****************************************************************
    When running the collector tool, an NullPointerException is
    encountered when parsing through an empty file with a stack
    trace:
    Caused by: java.lang.NullPointerException
    at com.ibm.websphere.rastools.collector.Collector.flushOu
    tputBuffer(Collector.java:4365)
    at com.ibm.websphere.rastools.collector.Collector.scanAnd
    ObfuscateFile(Collector.java:4117)
    at com.ibm.websphere.rastools.collector.Collector.getFile
    (Collector.java:1075)
    at com.ibm.websphere.rastools.collector.Collector.getFile
    s(Collector.java:1246)
    at com.ibm.websphere.rastools.collector.Collector.getFile
    s(Collector.java:1132)
    at com.ibm.websphere.rastools.collector.Collector.getDir(
    Collector.java:1529)
    at com.ibm.websphere.rastools.collector.Collector.collect
    (Collector.java:981)
    at com.ibm.websphere.rastools.collector.Collector.main(Co
    llector.java:373)
    ... 5 more
    

Problem conclusion

  • The Collector tool's code has been updated to better handle this
    scenario (of an empty file being parsed first) so that a null-
    pointer exception is not encountered.
    
    The fix for this APAR is targeted for inclusion in fix pack
    8.5.5.24 and 9.0.5.17. For more information, see 'Recommended
    Updates for WebSphere Application Server':
    https://www.ibm.com/support/pages/node/715553
    

Temporary fix

  • Make the file non-empty as a work-around.
    

Comments

APAR Information

  • APAR number

    PH54093

  • 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

    2023-04-21

  • Closed date

    2023-06-22

  • Last modified date

    2023-06-22

  • 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

[{"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:
22 June 2023