EM12c : Securing agent fails with : NumberFormatException (Doc ID 2154682.1)

Last updated on JUNE 28, 2016

Applies to:

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

Symptoms

Securing the Enterprise Manager (EM) Cloud Control agent fails,

$ ./emctl secure agent
Oracle Enterprise Manager Cloud Control 12c Release 4
Copyright (c) 1996, 2014 Oracle Corporation. All rights reserved.
Agent successfully stopped... Done.
Securing agent... Started.
Enter Agent Registration Password :
Agent successfully restarted... Done.
Securing agent... Failed.

Securing agent with SLB & Direct OMS URL also fails with the same error. Stack from secure log file below,

Agent secure with SLB URL:

2016-06-17 14:01:33,661 [main] INFO agent.SecureAgentCmd main.235 - emdWalletSrcUrl: https://eosoprdoem.odc.vzwcorp.com:4900/empbs/upload
2016-06-17 14:01:33,673 [main] ERROR agent.SecureAgentCmd main.257 - Failed to secure the Agent:
java.lang.NumberFormatException: For input string: ""
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:470)
at java.lang.Integer.parseInt(Integer.java:499)
at oracle.sysman.emctl.secure.agent.SecureAgentCmd.getProxyInfo(SecureAgentCmd.java:1130)
at oracle.sysman.emctl.secure.agent.SecureAgentCmd.secureAgent(SecureAgentCmd.java:269)
at oracle.sysman.emctl.secure.agent.SecureAgentCmd.main(SecureAgentCmd.java:244)

Agent secure with Direct OMS URL:

2016-06-21 11:26:12,755 [main] INFO agent.SecureAgentCmd main.235 - emdWalletSrcUrl: https://obloem01dpdvg.odc.vzwcorp.com:4900/empbs/upload
2016-06-21 11:26:12,767 [main] ERROR agent.SecureAgentCmd main.257 - Failed to secure the Agent:
java.lang.NumberFormatException: For input string: ""
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:470)
at java.lang.Integer.parseInt(Integer.java:499)
at oracle.sysman.emctl.secure.agent.SecureAgentCmd.getProxyInfo(SecureAgentCmd.java:1130)
at oracle.sysman.emctl.secure.agent.SecureAgentCmd.secureAgent(SecureAgentCmd.java:269)
at oracle.sysman.emctl.secure.agent.SecureAgentCmd.main(SecureAgentCmd.java:244)



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