My Oracle Support Banner

On BDA V4.* with 12.1.0.4 Plugin OEM Reports "java.lang.NullPointerException at java.lang.String.compareTo" Followed by "Error while converting date formats:null" (Doc ID 2025050.1)

Last updated on DECEMBER 04, 2019

Applies to:

Enterprise Manager for Big Data Appliance - Version 12.1.0.4.0 and later
Linux x86-64

Symptoms

NOTE: In the examples that follow, user details, cluster names, hostnames, directory paths, filenames, etc. represent a fictitious sample (and are used to provide an illustrative example only). Any similarity to actual persons, or entities, living or dead, is purely coincidental and not intended in any manner.


On BDA V4.1/OL6 with the 12.1.0.4.0 plugin OEM reports:

java.lang.NullPointerException at java.lang.String.compareTo(String.java:1167)
followed by
ERROR - Error while converting date formats:null


This may be observered after following the solution provided in: On BDA V4.1 with 12.1.0.4 Plugin OEM Reports "java.lang.NullPointerException at java.lang.String.compareTo" Followed by OutOfMemoryError (Doc ID 2019692.1)


From the agent log and incidents logs observe:

1.  From the agent log,  gcagent.log, see the NullPointerException:

2015-06-17 06:35:47,036 [268296:GC.Executor.147(oracle_hadoop_hdfs:hdfs_cdh:cloudera_hdfs_metrics_cdh5)
(oracle_hadoop_hdfs:hdfs_cdh:cloudera_hdfs_metrics_cdh5:cloudera_hdfs_metrics_cdh5)] ERROR -
oracle_hadoop_hdfs:hdfs_cdh:cloudera_hdfs_metrics_cdh5:cloudera_hdfs_metrics_cdh5
java.lang.NullPointerException at java.lang.String.compareTo(String.java:1167)
     at oracle.sysman.gcagent.target.interaction.execution.ExecuteTask.ProcessMultiple ResultSetForTimestamp(ExecuteTask.java:4650)
...
oracle.sysman.gcagent.metadata.impl.collection.MetricColl$1.call(MetricColl.java:552)
...
2015-06-17 06:35:47,048 [268296:GC.Executor.147
(oracle_hadoop_hdfs:hdfs_cdh:cloudera_hdfs_metrics_cdh5)] ERROR -Critical error: Java.lang.NullPointerException
      at java.lang.String.compareTo(String.java:1167)
      at oracle.sysman.gcagent.target.interaction.execution.ExecuteTask.ProcessMultiple ResultSetForTimestamp(ExecuteTask.java:4650)

2. The incident logs show output like:

a) From the file, gcagent_sdk.trc  right before NullPointerExeption see the "ERROR - Error while converting date formats:null".

2015-06-17 06:35:47,032 [268296:ECF03D93] INFO - data length = 4
2015-06-17 06:35:47,034 [268296:GC.Executor.147
(oracle_hadoop_hdfs:hdfs_cdh:cloudera_hdfs_metrics_cdh5)
(oracle_hadoop_hdfs:hdfs_cdh:cloudera_hdfs_metrics_cdh5:cloudera_hdfs_metrics_cdh5)]
ERROR - Error while converting date formats:null



a) From gcagent_errors.log, at the same time as the NullPointerException see a "Critial error" reported:

2015-06-17 06:35:47,036 [268296:GC.Executor.147
(oracle_hadoop_hdfs:hdfs_cdh:cloudera_hdfs_metrics_cdh5)
(oracle_hadoop_hdfs:hdfs_cdh:cloudera_hdfs_metrics_cdh5:cloudera_hdfs_metrics_cdh5)]
 ERROR -oracle_hadoop_hdfs:hdfs_cdh:cloudera_hdfs_metrics_cdh5:cloudera_hdfs_metrics_cdh5
2015-06-17 06:35:47,048 [268296:GC.Executor.147
(oracle_hadoop_hdfs:hdfs_cdh:cloudera_hdfs_metrics_cdh5)] ERROR - Critical error:

3.Note: It maybe be possible to trigger the NullPointerException report here on all nodes of the cluster by restarting the Cloudera Management service after updating the mailing list for alerts.

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
References


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