My Oracle Support Banner

EM 13c: Agent generates Alerts "Internal error detected: java.lang.NullPointerException:java.io.File:277::oracle.sysman.gcagent.addon.fetchlet.discovery.DiscoveryFetchlet:265" (Doc ID 2403050.1)

Last updated on OCTOBER 02, 2023

Applies to:

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

Symptoms

EM 13c agents generating following alerts

Host=<Agent_Hostname>
Target type=Agent
Target name=<Agent_Hostname>:<Agent_Port>
Categories=Diagnostics
Message=Internal error detected: java.lang.NullPointerException:java.io.File:277::oracle.sysman.gcagent.addon.fetchlet.discovery.DiscoveryFetchlet:265.
Severity=Critical
Event reported time=Apr 22, 2018 1:42:54 PM HST

Event name=adrIncidentError:diagnosticIncident

$AGENT_INST_HOME/sysman/log/gcagent.log reports following errors:

2018-04-22 13:44:56,472 [1055:95CA4EB1:GC.OnDemand.19 (Real-Time Metric Request;<Agent_Hostname>;DiscoverNow)] WARN - Failed to create fetchlet state dir (<AGENT_INST_HOME>/sysman/emd/state/fetchlet_state/Discovery) - setting to null
2018-04-22 13:44:56,473 [1055:GC.OnDemand.19 (Real-Time Metric Request;host.<Agent_Hostname>;DiscoverNow)] ERROR - Critical error:
java.lang.NullPointerException
at java.io.File.(File.java:277)
at oracle.sysman.gcagent.addon.fetchlet.discovery.DiscoveryFetchlet.getMetric(DiscoveryFetchlet.java:265)
at oracle.sysman.gcagent.target.interaction.execution.FetchletFactory.getMetric(FetchletFactory.java:426)
at oracle.sysman.gcagent.target.interaction.execution.ExecuteTask.executeQueryDescriptor(ExecuteTask.java:1202)

Caused by: java.lang.NullPointerException
at java.io.File.(File.java:277)
at oracle.sysman.gcagent.addon.fetchlet.discovery.DiscoveryFetchlet.getMetric(DiscoveryFetchlet.java:265) 

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.