IBM Support

PI18176: NULLPOINTEREXCEPTION WHEN CREATING HEALTH POLICY BY USING COMMAND LINE

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When we try to create a health policy by using command line, it
    report a NPE like this:
    
    wsadmin>$AdminTask createHealthPolicy { -name myHealthPolicy
    -description "My Health Policy" -reactionMode SUPERVISE
    -addCondition { -type CUSTOM -expression
    "ODRServerMetric_FromServerStart$errors  > 100L"  } -addAction
    {{HEAPDUMP 1}{CUSTOM 2 GenerateThreadDump} } }
    
    WASX7015E: Exception running command: "$AdminTask
    createHealthPolicy { -name myHealthPolicy -description "My
    Health Policy" -reactionMode SUPERVISE -addCondition { -type
    CUSTOM -expression "ODRServerMetric_FromServerStart$errors  >
    100L"  } -addAction {{HEAPDUMP 1}{CUSTOM 2 GenerateThreadDump} }
    }"; exception information:
    java.lang.NullPointerException: java.lang.NullPointerException
    
    
    
    Although there is something wrong with my input, it should tell
    me what's wrong with my input, if just report me a NPE, I don't
    know what should I do next.
    

Local fix

  • na
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server                                      *
    ****************************************************************
    * PROBLEM DESCRIPTION: Calling AdminTask.createHealthPolicy    *
    *                      command with null server target         *
    *                      throws NullPointerException.            *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    When no server is specified in the
    AdminTask.createHealthPolicy command (a required parameter),
    the command throws a NullPointerException that does not
    explain the cause of the problem.
    

Problem conclusion

  • The command now throws a CommandValidationException, pointing
    out that "null" is not a valid target server name, when server
    name is unspecified.
    
    The fix for this APAR is currently targeted for inclusion in
    fix pack 8.5.5.3.  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

    PI18176

  • Reported component name

    WEBS APP SERV N

  • Reported component ID

    5724H8800

  • Reported release

    850

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2014-05-19

  • Closed date

    2014-10-09

  • Last modified date

    2014-10-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

    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