EM 12c : emctl start agent Fails with Error 'Target Interaction Manager in Step 2 - java.lang.NullPointerException' Reported in gcagent.log (Doc ID 1518200.1)

Last updated on APRIL 14, 2015

Applies to:

Enterprise Manager Base Platform - Version 12.1.0.1.0 and later
Information in this document applies to any platform.

Symptoms

$agent_inst/bin/emctl start agent

fails with following message

 Agent failed to Startup for Target Interaction Manager in step 2

/AGENT_INST/sysman/log/gcagent.log reports following error

2013-01-03 10:14:35,687 [1:main] ERROR - Agent failed to Startup for Target Interaction Manager in step 2
java.lang.NullPointerException
        at oracle.sysman.gcagent.util.resource.file.FileOperations.removeContents(FileOperations.java:136)
        at oracle.sysman.gcagent.util.resource.file.FileOperations.cleanup(FileOperations.java:126)
 

 OR

$/AGENT_INST/bin/emctl start agent

fails with following error

Oracle Enterprise Manager Cloud Control 12c Release 2
Copyright (c) 1996, 2012 Oracle Corporation.  All rights reserved.
Starting agent ................ failed.
Target Interaction Manager failed at Startup

/AGENT_INST/sysman/log/gcagent.log reports following error

 2013-12-15 05:26:26,518 [1:main] ERROR - Agent failed to Startup for Target Interaction Manager in step 2  java.lang.NullPointerException
 2013-12-15 05:26:26,519 [1:3305B9] INFO - Error while starting up (will do a shutdown)  java.lang.NullPointerException
 2013-12-15 05:26:26,519 [1:3305B9] INFO - Agent is shutting down

2013-12-16 03:34:44,484 [1:main] ERROR - Agent failed to Startup for Target Interaction Manager in step 2 java.lang.NullPointerException
at oracle.sysman.gcagent.util.resource.file.FileOperations.removeContents(FileOperations.java:136)
at oracle.sysman.gcagent.util.resource.file.FileOperations.cleanup(FileOperations.java:126)
at oracle.sysman.gcagent.target.interaction.execution.ConfigStateMgr.purgeState(ConfigStateMgr.java:1034)
at oracle.sysman.gcagent.target.interaction.execution.TargetInteractionMgr.tmNotifier(TargetInteractionMgr.java:176)
at oracle.sysman.gcagent.tmmain.lifecycle.TMComponentSvc.invokeNotifier(TMComponentSvc.java:897)


Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms