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 MAY 24, 2018

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=hostname.domain.com
Target type=Agent
Target name=hostname.domain.com:3776
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;hostname.domain.com;DiscoverNow)] WARN - Failed to create fetchlet state dir (/u02/app/oracle/product/agent_prd/prd01vgtw11/agent_inst/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.hostname.domain.com;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

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