Skip to Main Content

pingOMS fails with java.lang.NullPointerException

user13471583Oct 16 2018 — edited Oct 18 2018

Hi

Agent on one of the target hosts is unable to communicate with the Enterprise Manager.

./emctl pingOMS

Oracle Enterprise Manager Cloud Control 13c Release 1

Copyright (c) 1996, 2015 Oracle Corporation.  All rights reserved.

---------------------------------------------------------------

EMD pingOMS error: An internal error has occurred at the agent: "java.lang.NullPointerException". Check the agent's error logs for details.

From the gcagent.log:

Caused by: java.lang.NullPointerException

        at HTTPClient.HTTPConnection.<init>(HTTPConnection.java:579)

        at oracle.sysman.gcagent.comm.http.ClientConnection.instantiateConnection(ClientConnection.java:807)

        at oracle.sysman.gcagent.comm.http.ClientConnection.<init>(ClientConnection.java:103)

        at oracle.sysman.gcagent.comm.http.OMSConnection.<init>(OMSConnection.java:74)

        at oracle.sysman.gcagent.ping.PingConnection.<init>(PingConnection.java:72)

        at oracle.sysman.gcagent.ping.PingManager.pingOMS(PingManager.java:1102)

        at oracle.sysman.gcagent.dispatch.cxl.PingOMSAction.pingOMS(PingOMSAction.java:66)

        at oracle.sysman.gcagent.dispatch.cxl.PingOMSAction.satisfyRequest(PingOMSAction.java:104)

        at oracle.sysman.gcagent.dispatch.ProcessRequestAction._call(ProcessRequestAction.java:135)

        at oracle.sysman.gcagent.dispatch.ProcessRequestAction.call(ProcessRequestAction.java:96)

        at oracle.sysman.gcagent.dispatch.InlineDispatchCoordinator.dispatchRequest(InlineDispatchCoordinator.java:235)

        at oracle.sysman.gcagent.dispatch.DispatchRequestsAction.call(DispatchRequestsAction.java:111)

        at oracle.sysman.gcagent.dispatch.DispatchRequestsAction.call(DispatchRequestsAction.java:51)

        at oracle.sysman.gcagent.task.DiagWrappedAction.call(DiagWrappedAction.java:52)

        at java.util.concurrent.FutureTask.run(FutureTask.java:262)

        at oracle.sysman.gcagent.task.SingleActionTask.run(SingleActionTask.java:76)

        at oracle.sysman.gcagent.dispatch.DispatchRequestsTask.run(DispatchRequestsTask.java:64)

        at oracle.sysman.gcagent.task.AbstractTemplateTask.call(AbstractTemplateTask.java:270)

        at oracle.sysman.gcagent.task.AbstractTemplateTask.call(AbstractTemplateTask.java:55)

        at oracle.sysman.gcagent.task.TaskFutureImpl$WrappedTask.accountedCall(TaskFutureImpl.java:600)

        at oracle.sysman.gcagent.task.TaskFutureImpl$WrappedTask.call(TaskFutureImpl.java:644)

        at java.util.concurrent.FutureTask.run(FutureTask.java:262)

        at oracle.sysman.gcagent.task.TaskFutureImpl.run1(TaskFutureImpl.java:373)

        at oracle.sysman.gcagent.task.TaskFutureImpl.run(TaskFutureImpl.java:330)

        at oracle.sysman.gcagent.task.executor.CurrentThreadExecutor.submit(CurrentThreadExecutor.java:78)

        at oracle.sysman.gcagent.task.executor.CurrentThreadExecutor.submit(CurrentThreadExecutor.java:64)

        at oracle.sysman.gcagent.dispatch.DispatchRequestsExecutor.submit(DispatchRequestsExecutor.java:82)

        at oracle.sysman.gcagent.dispatch.RequestDispatcher.executeRequests(RequestDispatcher.java:2378)

        at oracle.sysman.gcagent.dispatch.RequestDispatcher.dispatchRequests(RequestDispatcher.java:787)

        at oracle.sysman.gcagent.comm.agent.http.TMClientProtocolServer.onServiceProtocol(TMClientProtocolServer.java:328)

        at oracle.sysman.gcagent.comm.agent.http.HTTPRequestHandler.handle(HTTPRequestHandler.java:198)

        ... 15 more

2018-10-16 20:12:43,395 [28:642FB6F2:IncCreHandler] INFO - ADR Incident created: Id=1, message=[null], module=oracle.sysman.gcagent.comm.http.ClientConnection, problemKey='java.lang.NullPointerException:HTTPClient.HTTPConnection:579::oracle.sysman.gcagent.comm.http.ClientConnection:807', direcotry=/opt/agent/agent_inst/diag/ofm/emagent/emagent/incident/incdir_1

2018-10-16 20:12:44,260 [111:oracle.dfw.impl.incident.DiagnosticsDataExtractorImpl - Incident Dump Executor (created: Tue Oct 16 20:12:43 GMT 2018)] ERROR - Exception Occured While Collecting AgentCertificatePropertiesnull

I don't see this problem with other hosts. This host is in a different network and I am not sure if that could be causing this issue.

Let me know how I can resolve this. Thanks in advance for the help!

Comments
Post Details
Added on Oct 16 2018
11 comments
1,890 views