AddNode fails with NullPointerException
 Technote (troubleshooting)
 
Problem(Abstract)
The Remove node command does not always modify setupCmdLine.sh correctly. AddNode fails with NullPointerException.
 
Cause
After adding the node to the deployment Manager, the WAS_CELL variable in the Base_Install_Root /bin/setupCmdLine file is changed to the deployment manager cell name . If you later remove the node from the deployment manager, the deployment manager cell name is not replaced with the base node cell name in the setupCmdLine

Sample exception in the addNode.log file:


[12/9/04 12:06:50:628 EST] 1b9fb1 AdminTool A ADMU0001I: Begin federation of node tbportal2 with Deployment Manager at gbo6005d.ibme.com:12005.
[12/9/04 12:06:50:635 EST] 1b9fb1 AdminTool E ADMU0111E: Program exiting with error: java.lang.NullPointerException
at com.ibm.ws.management.tools.AbstractNodeConfigUtility.getResource(AbstractNodeConfigUtility.java:126)
at com.ibm.ws.management.tools.AbstractNodeConfigUtility.isMemberOfCell(AbstractNodeConfigUtility.java:119)
at com.ibm.ws.management.tools.NodeFederationUtility.runTool(NodeFederationUtility.java:253)
at com.ibm.ws.management.tools.AdminTool.executeUtility(AdminTool.java:173)
at com.ibm.ws.management.tools.NodeFederationUtility.main(NodeFederationUtility.java:147)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)


Check the attached addNode.log for the complete stack trace.

 
Resolving the problem
  1. Back up Base_Install_Root /bin/setupCmdLine.sh or bat file.

  2. Edit the Base_Install_Root /bin/setupCmdLine file

  3. If the WAS_CELL variable points to the deployment Manager cell name , modify it to the base node cell name.

  4. Save the changes.

  5. Add the node again.

The cell Name is located at

Install_Root /config/cells/CELLNAME

The Node name is located at:

Install_Root /config/cells/cellname/nodes/NODENAME

 
addnode.log
 
Cross Reference information
Segment Product Component Platform Version Edition
Application Servers Runtimes for Java Technology Java SDK
 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > System Management/Repository
Operating system(s): Windows
Software version: 5.0.2.9
Software edition:
Reference #: 1193112
IBM Group: Software Group
Modified date: May 23, 2005