|
Problem(Abstract) |
During addnode operation, addnode fails with
NullPointerException if there is no server defined on the node. |
|
Cause |
By default, the server1 application server will be created
during the installation process. If server1 is not required in the
configuration, then it should be removed only after adding the node to the
DMGR cell. Otherwise, the addnode will fail with the exception shown
below. If there is another server, in addition to server1 on the node,
server1 can be removed prior to federation.
[3/8/05 11:31:52:398 EST] 70eed6 AdminTool A ADMU0001I: Begin federation
of node Kumar with Deployment Manager at Kumar:8889.
[3/8/05 11:31:52:406 EST] 70eed6 AdminTool E ADMU0111E: Program exiting
with error: java.lang.NullPointerException
at com.ibm.ws.management.tools.AbstractNodeConfigUtility.getResource
(AbstractNodeConfigUtility.java:119)
at com.ibm.ws.management.tools.AbstractNodeConfigUtility.isMemberOfCell
(AbstractNodeConfigUtility.java:112)
at com.ibm.ws.management.tools.NodeFederationUtility.runTool
(NodeFederationUtility.java:243)
at
com.ibm.ws.management.tools.AdminTool.executeUtility(AdminTool.java:167)
at com.ibm.ws.management.tools.NodeFederationUtility.main
(NodeFederationUtility.java:137)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)
|
|
Diagnosing the
problem |
At least one server is required to add a node to
DeploymentManager cell. |
|
Resolving the
problem |
If there is no other server available on the node, follow
the steps below to recreate the server on the node, and then run the
addNode command.
- Connect to base node wsadmin using conntype NONE
wsadmin -conntype NONE
- set node [$AdminConfig getid /Node:mynode/]
- $AdminConfig create Server $node {{name myserv} {outputStreamRedirect
{{fileName myfile.out}}}}
- $AdminConfig save
|
|
|
|
Cross Reference information |
Segment |
Product |
Component |
Platform |
Version |
Edition |
Application Servers |
Runtimes for Java Technology |
Java SDK |
|
|
|
|
|
|
|