Saturday, 11 February 2017

Unable to start managed server using node manager becuase of java.io.IOException: Invalid state file format

========================================================================
Applies to:
Weblogic Server: 10.3.6 and later
========================================================================
Problem Summary:
Trying to start managed server using node manager but couldn't able to because of java.io.IOException: Invalid state file format.
There was a power failure and managed server host restarted automatically.

Error:
<Mar 2, 2016 3:16:43 AM CST> <WARNING> <I/O error while reading domain directory>
java.io.IOException: Invalid state file format. State file contents:
at weblogic.nodemanager.common.StateInfo.load(StateInfo.java:135)
at weblogic.nodemanager.server.ServerMonitor.loadStateInfo(ServerMonitor.java:475)
at weblogic.nodemanager.server.ServerMonitor.isCleanupAfterCrashNeeded(ServerMonitor.java:139)
at weblogic.nodemanager.server.ServerManager.recoverServer(ServerManager.java:255)
at weblogic.nodemanager.server.DomainManager.initialize(DomainManager.java:103)
at weblogic.nodemanager.server.DomainManager.<init>(DomainManager.java:55)
at weblogic.nodemanager.server.NMServer.getDomainManager(NMServer.java:257)
at weblogic.nodemanager.server.Handler.handleDomain(Handler.java:224)
at weblogic.nodemanager.server.Handler.handleCommand(Handler.java:108)
at weblogic.nodemanager.server.Handler.run(Handler.java:70)
at java.lang.Thread.run(Thread.java:619)

========================================================================
Root Cause:
managed_server.state file is invalid/corrupted which is located under $DOMAIN_HOME/servers/<managed_server>/data/nodemanager

========================================================================
Resolution:
1. Stop node manager of managed server.
2. Delete the below files,
   $DOMAIN_HOME/servers/<managed_server>/data/nodemanager/<managed_server>.state
   $DOMAIN_HOME/servers/<managed_server>/data/nodemanager/<managed_server>.lck
   $DOMAIN_HOME/servers/<managed_server>/data/nodemanager/<managed_server>.pid
3. Start node manager.
4. Start the managed server using admin.

No comments:

Post a Comment