IBM Support

PI40490: NULLPOINTEREXCEPTION WHEN CREATING A NAMESERVER USING A WSADMIN JYTHON SCRIPT

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • On WSAS 8.5.0.0, OS Linux;
    
    When customer tries to create a NameServer object on a Server
    with the following command:
    
    AdminConfig.create("NameServer", ServerObjId, "[ ]")
    
    they get the following error:
    
    Caused by: java.lang.NullPointerException
    at com.ibm.ws.management.configservice.EndpointConfigHelper.
    fillDefaultEndpoint(EndpointConfigHelper.java:1815)
    at com.ibm.ws.management.configservice.EndpointConfigHelper.
    setNamedEndpoint(EndpointConfigHelper.java:1083)
    at com.ibm.ws.management.configservice.EndpointConfigHelper.
    setEndpointAttribute(EndpointConfigHelper.java:446)
    at
    com.ibm.ws.management.configservice.MOFUtil.objectAddedBasic(MOF
    Util.
    java:1031)
    at
    com.ibm.ws.management.configservice.MOFUtil.objectAdded(MOFUtil.
    java:
    1008)
    
    at
    com.ibm.ws.management.configservice.MOFUtil.addElementAt(MOFUtil
    .
    java:459)
    at com.ibm.ws.management.configservice.DocAccessor.addElementAt
    (DocAccessor.java:405)
    at
    com.ibm.ws.management.configservice.InnerConfigObjectDelegator.
    createConfigObject(InnerConfigObjectDelegator.java:134)
    at com.ibm.ws.management.configservice.ConfigObjectDelegator.
    createConfigData(ConfigObjectDelegator.java:150)
    at com.ibm.ws.management.configservice.ConfigServiceImpl.
    createConfigDataByTemplate(ConfigServiceImpl.java:1654)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessor
    Impl.
    java:60)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke
    (DelegatingMethodAccessorImpl.java:37)
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server version 8.5.5 or later               *
    ****************************************************************
    * PROBLEM DESCRIPTION: NullPointerException when creating      *
    *                      NameServer using wsadmin jython         *
    *                      scripts                                 *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    AdminConfig.create("NameServer", ServerObjId, "[ ]") failed
    with the following error:
    Caused by: java.lang.NullPointerException
    at
    com.ibm.ws.management.configservice.EndpointConfigHelper.fillDef
    aultEndpoint(EndpointConfigHelper.java:1815)
    at
    com.ibm.ws.management.configservice.EndpointConfigHelper.setName
    dEndpoint(EndpointConfigHelper.java:1083)
    at
    com.ibm.ws.management.configservice.EndpointConfigHelper.setEndp
    ointAttribute(EndpointConfigHelper.java:446)
    at
    com.ibm.ws.management.configservice.MOFUtil.objectAddedBasic(MOF
    Util.java:1031)
    at
    com.ibm.ws.management.configservice.MOFUtil.objectAdded(MOFUtil.
    java:1008)
    at
    com.ibm.ws.management.configservice.MOFUtil.addElementAt(MOFUtil
    .java:459)
    at
    com.ibm.ws.management.configservice.DocAccessor.addElementAt(Doc
    Accessor.java:405)
    at
    com.ibm.ws.management.configservice.InnerConfigObjectDelegator.c
    reateConfigObject(InnerConfigObjectDelegator.java:134)
    at
    com.ibm.ws.management.configservice.ConfigObjectDelegator.create
    ConfigData(ConfigObjectDelegator.java:150)
    at
    com.ibm.ws.management.configservice.ConfigServiceImpl.createConf
    igDataByTemplate(ConfigServiceImpl.java:1654)
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PI40490

  • Reported component name

    WEBSPHERE APP S

  • Reported component ID

    5724J0800

  • Reported release

    850

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2015-05-05

  • Closed date

    2015-07-14

  • Last modified date

    2015-07-14

  • 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 APP S

  • Fixed component ID

    5724J0800

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