EM 12c : emctl upload agent Fails with 'EMD upload error:An internal error has occurred at the agent: unable to send response' 'ERROR - UploadManager.init java.lang.NumberFormatException: null' Reported in gcagent.log (Doc ID 2005792.1)

Last updated on OCTOBER 12, 2016

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 upload agent

fails with following exception

Oracle Enterprise Manager Cloud Control 12c Release 4
Copyright (c) 1996, 2014 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
EMD upload error:An internal error has occurred at the agent: "unable to send response". Check the agent's error logs for details.

/AGENT_INST/sysman/log/emagent.nohup reports following exception

----- Fri Apr 17 12:37:57 2015::5803::Agent Launched with PID 5852 at time Fri Apr 17 12:37:57 2015 -----
----- Fri Apr 17 12:37:57 2015::5852::Time elapsed between Launch of Watchdog process and execing EMAgent is 6 secs -----
----- Fri Apr 17 12:37:57 2015::5803::Previous Thrash State(-1,-1) -----
2015-04-17 12:37:57,995 [1:main] WARN - Missing filename for log handler 'wsm'
2015-04-17 12:37:58,007 [1:main] WARN - Missing filename for log handler 'opss'
2015-04-17 12:37:58,008 [1:main] WARN - Missing filename for log handler 'opsscfg'
Apr 17, 2015 12:39:43 PM oracle.sysman.diag.EMDiagImpl captureDiagData.478
SEVERE: Critical error: <no message>
java.lang.NullPointerException
    at oracle.sysman.gcagent.upload.UploadStoreForward.performMerge(UploadStoreForward.java:4641)
..............
Apr 17, 2015 12:39:43 PM oracle.sysman.diag.EMDiagImpl createIncident.648
INFO: incident 385 created with problem key java.lang.NullPointerException:oracle.sysman.gcagent.upload.UploadStoreForward:4641, in directory /data1/TEST/testagt/agent_inst/diag/ofm/emagent/emagent/incident/incdir_385
Apr 17, 2015 12:53:01 PM oracle.sysman.diag.EMDiagImpl captureDiagData.478
SEVERE: Critical error: <no message>
java.lang.NullPointerException
    at oracle.sysman.gcagent.upload.UploadStoreForward.performMerge(UploadStoreForward.java:4641)
    at oracle.sysman.gcagent.upload.UploadStoreForward.startPush(UploadStoreForward.java:5084)
    at oracle.sysman.gcagent.upload.UploadManager.startPush(UploadManager.java:2097)
    at oracle.sysman.gcagent.upload.UploadManager.access$300(UploadManager.java:165)
Apr 17, 2015 1:55:19 PM oracle.sysman.diag.EMDiagImpl captureDiagData.478
SEVERE: Critical error: <no message>
java.lang.NullPointerException
    at oracle.sysman.gcagent.upload.UploadStoreForward.performMerge(UploadStoreForward.java:4641)
    at oracle.sysman.gcagent.upload.UploadStoreForward.startPush(UploadStoreForward.java:5084)   

/AGENT_INST/sysman/log/gcagent.log reports the following  exception

2015-04-17 12:39:43,238 [34:HTTP Listener-34 - /emd/main/] ERROR - Aninternal error has occurred.
    oracle.sysman.emSDK.agent.client.exception.TMInternalError
        at oracle.sysman.gcagent.comm.agent.http.HTTPRequestHandler.handle(HTTPRequestHandler.java:251)
    Caused by: java.lang.NullPointerException
    at  oracle.sysman.gcagent.upload.UploadStoreForward.performMerge(UploadStoreForward.java:4641)
        at oracle.sysman.gcagent.upload.UploadStoreForward.startPush(UploadStoreForward.java:5084)

...........

2015-04-17 13:40:19,674 [1:3305B9] DEBUG - Upload breadcrumb=Starting upload manager
2015-04-17 13:40:19,813 [1:main] ERROR - UploadManager.init
java.lang.NumberFormatException: null
    at java.lang.Integer.parseInt(Integer.java:417)
    at java.lang.Integer.parseInt(Integer.java:499)
    at oracle.sysman.gcagent.mbl.mblinbox.MblInbox.getMsgId(MblInbox.java:146)
    at oracle.sysman.gcagent.mbl.mblinbox.server.MblInboxServer.deliverIterator(MblInboxServer.java:56)
    at oracle.sysman.gcagent.upload.UploadStoreForward.deliverInbox(UploadStoreForward.java:4488)
    at oracle.sysman.gcagent.upload.UploadStoreForward.init(UploadStoreForward.java:4453)
    at oracle.sysman.gcagent.upload.UploadManager.init(UploadManager.java:1387)
    at oracle.sysman.gcagent.upload.UploadManager.tmNotifier(UploadManager.java:1171)
    at oracle.sysman.gcagent.tmmain.lifecycle.TMComponentSvc.invokeNotifier(TMComponentSvc.java:998)
    at oracle.sysman.gcagent.tmmain.lifecycle.TMComponentSvc.invokeInitializationStep(TMComponentSvc.java:1083)
    at oracle.sysman.gcagent.tmmain.lifecycle.TMComponentSvc.doInitializationStep(TMComponentSvc.java:916)
    at oracle.sysman.gcagent.tmmain.lifecycle.TMComponentSvc.notifierDriver(TMComponentSvc.java:812)
    at oracle.sysman.gcagent.tmmain.TMMain.startup(TMMain.java:256)
    at oracle.sysman.gcagent.tmmain.TMMain.agentMain(TMMain.java:557)
    at oracle.sysman.gcagent.tmmain.TMMain.main(TMMain.java:546)
 
 
so startup of upload didn't work - sysman/emd/upload  directory contents is corrupted

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