Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D74EF11BA6 for ; Wed, 17 Sep 2014 12:10:34 +0000 (UTC) Received: (qmail 34629 invoked by uid 500); 17 Sep 2014 12:10:34 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 34557 invoked by uid 500); 17 Sep 2014 12:10:34 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 34247 invoked by uid 99); 17 Sep 2014 12:10:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Sep 2014 12:10:34 +0000 Date: Wed, 17 Sep 2014 12:10:34 +0000 (UTC) From: "Hari Sekhon (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-7952) DataStax Agent Null Pointer Exception MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-7952?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Hari Sekhon updated CASSANDRA-7952: ----------------------------------- Description: I've got a Null Pointer Exception in my DataStax OpsCenter Agent log, and it's not reporting in to the OpsCenter. Here is the log {code} INFO [StompConnection receiver] 2014-09-17 13:01:15,992 New JMX connection (127.0.0.1:7199) INFO [Jetty] 2014-09-17 13:01:16,019 Jetty server started INFO [Initialization] 2014-09-17 13:01:16,031 Using x.x.x.x as the cassandra broadcast address INFO [StompConnection receiver] 2014-09-17 13:01:16,032 Starting up agent collection. INFO [Initialization] 2014-09-17 13:01:16,162 agent RPC address is x.x.x.x INFO [StompConnection receiver] 2014-09-17 13:01:16,162 agent RPC address is x.x.x.x INFO [Initialization] 2014-09-17 13:01:16,162 agent RPC broadcast address is x.x.x.x INFO [StompConnection receiver] 2014-09-17 13:01:16,162 agent RPC broadcast address is x.x.x.x INFO [StompConnection receiver] 2014-09-17 13:01:16,163 Starting OS metric collectors (Linux) INFO [Initialization] 2014-09-17 13:01:16,166 Clearing ssl.truststore INFO [Initialization] 2014-09-17 13:01:16,166 Clearing ssl.truststore.password INFO [Initialization] 2014-09-17 13:01:16,167 Setting ssl.store.type to JKS INFO [Initialization] 2014-09-17 13:01:16,167 Clearing kerberos.service.principal.name INFO [Initialization] 2014-09-17 13:01:16,167 Clearing kerberos.principal INFO [Initialization] 2014-09-17 13:01:16,167 Setting kerberos.useTicketCache to true INFO [Initialization] 2014-09-17 13:01:16,167 Clearing kerberos.ticketCache INFO [Initialization] 2014-09-17 13:01:16,168 Setting kerberos.useKeyTab to true INFO [Initialization] 2014-09-17 13:01:16,168 Clearing kerberos.keyTab INFO [Initialization] 2014-09-17 13:01:16,168 Setting kerberos.renewTGT to true INFO [Initialization] 2014-09-17 13:01:16,168 Setting kerberos.debug to false INFO [StompConnection receiver] 2014-09-17 13:01:16,171 Starting Cassandra JMX metric collectors INFO [thrift-init] 2014-09-17 13:01:16,171 Connecting to Cassandra cluster: x.x.x.x (port 9160) INFO [StompConnection receiver] 2014-09-17 13:01:16,187 New JMX connection (127.0.0.1:7199) INFO [thrift-init] 2014-09-17 13:01:16,189 Downed Host Retry service started with queue size -1 and retry delay 10s INFO [thrift-init] 2014-09-17 13:01:16,192 Registering JMX me.prettyprint.cassandra.service_Agent Cluster:ServiceType=hector,MonitorType=hector INFO [pdp-loader] 2014-09-17 13:01:16,231 in execute with client org.apache.cassandra.thrift.Cassandra$Client@7a22c094 INFO [pdp-loader] 2014-09-17 13:01:16,237 Attempting to load stored metric values. INFO [thrift-init] 2014-09-17 13:01:16,240 Connected to Cassandra cluster: PoC INFO [thrift-init] 2014-09-17 13:01:16,240 in execute with client org.apache.cassandra.thrift.Cassandra$Client@7a22c094 INFO [thrift-init] 2014-09-17 13:01:16,240 Using partitioner: org.apache.cassandra.dht.Murmur3Partitioner INFO [jmx-metrics-1] 2014-09-17 13:01:21,181 New JMX connection (127.0.0.1:7199) ERROR [StompConnection receiver] 2014-09-17 13:01:24,376 Failed to collect machine info java.lang.NullPointerException at clojure.lang.Numbers.ops(Numbers.java:942) at clojure.lang.Numbers.divide(Numbers.java:157) at opsagent.nodedetails.machine_info$get_machine_info.invoke(machine_info.clj:76) at opsagent.nodedetails$get_static_properties$fn__4313.invoke(nodedetails.clj:161) at opsagent.nodedetails$get_static_properties.invoke(nodedetails.clj:160) at opsagent.nodedetails$get_longtime_values$fn__4426.invoke(nodedetails.clj:227) at opsagent.nodedetails$get_longtime_values.invoke(nodedetails.clj:226) at opsagent.nodedetails$send_all_nodedetails$fn__4444.invoke(nodedetails.clj:245) at opsagent.jmx$jmx_wrap.doInvoke(jmx.clj:111) at clojure.lang.RestFn.invoke(RestFn.java:410) at opsagent.nodedetails$send_all_nodedetails.invoke(nodedetails.clj:241) at opsagent.opsagent$post_interface_startup.doInvoke(opsagent.clj:125) at clojure.lang.RestFn.invoke(RestFn.java:421) at opsagent.conf$handle_new_conf.invoke(conf.clj:179) at opsagent.messaging$message_callback$fn__6059.invoke(messaging.clj:30) at opsagent.messaging.proxy$java.lang.Object$StompConnection$Listener$7f16bc72.onMessage(Unknown Source) at org.jgroups.client.StompConnection.notifyListeners(StompConnection.java:319) at org.jgroups.client.StompConnection.run(StompConnection.java:269) at java.lang.Thread.run(Thread.java:745) {code} was: I've got a Null Pointer Exception in my DataStax OpsCenter Agent log, and it's not reporting in to the OpsCenter as a result. Here is the log {code} INFO [StompConnection receiver] 2014-09-17 13:01:15,992 New JMX connection (127.0.0.1:7199) INFO [Jetty] 2014-09-17 13:01:16,019 Jetty server started INFO [Initialization] 2014-09-17 13:01:16,031 Using x.x.x.x as the cassandra broadcast address INFO [StompConnection receiver] 2014-09-17 13:01:16,032 Starting up agent collection. INFO [Initialization] 2014-09-17 13:01:16,162 agent RPC address is x.x.x.x INFO [StompConnection receiver] 2014-09-17 13:01:16,162 agent RPC address is x.x.x.x INFO [Initialization] 2014-09-17 13:01:16,162 agent RPC broadcast address is x.x.x.x INFO [StompConnection receiver] 2014-09-17 13:01:16,162 agent RPC broadcast address is x.x.x.x INFO [StompConnection receiver] 2014-09-17 13:01:16,163 Starting OS metric collectors (Linux) INFO [Initialization] 2014-09-17 13:01:16,166 Clearing ssl.truststore INFO [Initialization] 2014-09-17 13:01:16,166 Clearing ssl.truststore.password INFO [Initialization] 2014-09-17 13:01:16,167 Setting ssl.store.type to JKS INFO [Initialization] 2014-09-17 13:01:16,167 Clearing kerberos.service.principal.name INFO [Initialization] 2014-09-17 13:01:16,167 Clearing kerberos.principal INFO [Initialization] 2014-09-17 13:01:16,167 Setting kerberos.useTicketCache to true INFO [Initialization] 2014-09-17 13:01:16,167 Clearing kerberos.ticketCache INFO [Initialization] 2014-09-17 13:01:16,168 Setting kerberos.useKeyTab to true INFO [Initialization] 2014-09-17 13:01:16,168 Clearing kerberos.keyTab INFO [Initialization] 2014-09-17 13:01:16,168 Setting kerberos.renewTGT to true INFO [Initialization] 2014-09-17 13:01:16,168 Setting kerberos.debug to false INFO [StompConnection receiver] 2014-09-17 13:01:16,171 Starting Cassandra JMX metric collectors INFO [thrift-init] 2014-09-17 13:01:16,171 Connecting to Cassandra cluster: x.x.x.x (port 9160) INFO [StompConnection receiver] 2014-09-17 13:01:16,187 New JMX connection (127.0.0.1:7199) INFO [thrift-init] 2014-09-17 13:01:16,189 Downed Host Retry service started with queue size -1 and retry delay 10s INFO [thrift-init] 2014-09-17 13:01:16,192 Registering JMX me.prettyprint.cassandra.service_Agent Cluster:ServiceType=hector,MonitorType=hector INFO [pdp-loader] 2014-09-17 13:01:16,231 in execute with client org.apache.cassandra.thrift.Cassandra$Client@7a22c094 INFO [pdp-loader] 2014-09-17 13:01:16,237 Attempting to load stored metric values. INFO [thrift-init] 2014-09-17 13:01:16,240 Connected to Cassandra cluster: PoC INFO [thrift-init] 2014-09-17 13:01:16,240 in execute with client org.apache.cassandra.thrift.Cassandra$Client@7a22c094 INFO [thrift-init] 2014-09-17 13:01:16,240 Using partitioner: org.apache.cassandra.dht.Murmur3Partitioner INFO [jmx-metrics-1] 2014-09-17 13:01:21,181 New JMX connection (127.0.0.1:7199) ERROR [StompConnection receiver] 2014-09-17 13:01:24,376 Failed to collect machine info java.lang.NullPointerException at clojure.lang.Numbers.ops(Numbers.java:942) at clojure.lang.Numbers.divide(Numbers.java:157) at opsagent.nodedetails.machine_info$get_machine_info.invoke(machine_info.clj:76) at opsagent.nodedetails$get_static_properties$fn__4313.invoke(nodedetails.clj:161) at opsagent.nodedetails$get_static_properties.invoke(nodedetails.clj:160) at opsagent.nodedetails$get_longtime_values$fn__4426.invoke(nodedetails.clj:227) at opsagent.nodedetails$get_longtime_values.invoke(nodedetails.clj:226) at opsagent.nodedetails$send_all_nodedetails$fn__4444.invoke(nodedetails.clj:245) at opsagent.jmx$jmx_wrap.doInvoke(jmx.clj:111) at clojure.lang.RestFn.invoke(RestFn.java:410) at opsagent.nodedetails$send_all_nodedetails.invoke(nodedetails.clj:241) at opsagent.opsagent$post_interface_startup.doInvoke(opsagent.clj:125) at clojure.lang.RestFn.invoke(RestFn.java:421) at opsagent.conf$handle_new_conf.invoke(conf.clj:179) at opsagent.messaging$message_callback$fn__6059.invoke(messaging.clj:30) at opsagent.messaging.proxy$java.lang.Object$StompConnection$Listener$7f16bc72.onMessage(Unknown Source) at org.jgroups.client.StompConnection.notifyListeners(StompConnection.java:319) at org.jgroups.client.StompConnection.run(StompConnection.java:269) at java.lang.Thread.run(Thread.java:745) {code} > DataStax Agent Null Pointer Exception > ------------------------------------- > > Key: CASSANDRA-7952 > URL: https://issues.apache.org/jira/browse/CASSANDRA-7952 > Project: Cassandra > Issue Type: Bug > Environment: DSE 4.5.1, DataStax OpsCenter & Agent 5.0.0 > Reporter: Hari Sekhon > > I've got a Null Pointer Exception in my DataStax OpsCenter Agent log, and it's not reporting in to the OpsCenter. Here is the log > {code} > INFO [StompConnection receiver] 2014-09-17 13:01:15,992 New JMX connection (127.0.0.1:7199) > INFO [Jetty] 2014-09-17 13:01:16,019 Jetty server started > INFO [Initialization] 2014-09-17 13:01:16,031 Using x.x.x.x as the cassandra broadcast address > INFO [StompConnection receiver] 2014-09-17 13:01:16,032 Starting up agent collection. > INFO [Initialization] 2014-09-17 13:01:16,162 agent RPC address is x.x.x.x > INFO [StompConnection receiver] 2014-09-17 13:01:16,162 agent RPC address is x.x.x.x > INFO [Initialization] 2014-09-17 13:01:16,162 agent RPC broadcast address is x.x.x.x > INFO [StompConnection receiver] 2014-09-17 13:01:16,162 agent RPC broadcast address is x.x.x.x > INFO [StompConnection receiver] 2014-09-17 13:01:16,163 Starting OS metric collectors (Linux) > INFO [Initialization] 2014-09-17 13:01:16,166 Clearing ssl.truststore > INFO [Initialization] 2014-09-17 13:01:16,166 Clearing ssl.truststore.password > INFO [Initialization] 2014-09-17 13:01:16,167 Setting ssl.store.type to JKS > INFO [Initialization] 2014-09-17 13:01:16,167 Clearing kerberos.service.principal.name > INFO [Initialization] 2014-09-17 13:01:16,167 Clearing kerberos.principal > INFO [Initialization] 2014-09-17 13:01:16,167 Setting kerberos.useTicketCache to true > INFO [Initialization] 2014-09-17 13:01:16,167 Clearing kerberos.ticketCache > INFO [Initialization] 2014-09-17 13:01:16,168 Setting kerberos.useKeyTab to true > INFO [Initialization] 2014-09-17 13:01:16,168 Clearing kerberos.keyTab > INFO [Initialization] 2014-09-17 13:01:16,168 Setting kerberos.renewTGT to true > INFO [Initialization] 2014-09-17 13:01:16,168 Setting kerberos.debug to false > INFO [StompConnection receiver] 2014-09-17 13:01:16,171 Starting Cassandra JMX metric collectors > INFO [thrift-init] 2014-09-17 13:01:16,171 Connecting to Cassandra cluster: x.x.x.x (port 9160) > INFO [StompConnection receiver] 2014-09-17 13:01:16,187 New JMX connection (127.0.0.1:7199) > INFO [thrift-init] 2014-09-17 13:01:16,189 Downed Host Retry service started with queue size -1 and retry delay 10s > INFO [thrift-init] 2014-09-17 13:01:16,192 Registering JMX me.prettyprint.cassandra.service_Agent Cluster:ServiceType=hector,MonitorType=hector > INFO [pdp-loader] 2014-09-17 13:01:16,231 in execute with client org.apache.cassandra.thrift.Cassandra$Client@7a22c094 > INFO [pdp-loader] 2014-09-17 13:01:16,237 Attempting to load stored metric values. > INFO [thrift-init] 2014-09-17 13:01:16,240 Connected to Cassandra cluster: PoC > INFO [thrift-init] 2014-09-17 13:01:16,240 in execute with client org.apache.cassandra.thrift.Cassandra$Client@7a22c094 > INFO [thrift-init] 2014-09-17 13:01:16,240 Using partitioner: org.apache.cassandra.dht.Murmur3Partitioner > INFO [jmx-metrics-1] 2014-09-17 13:01:21,181 New JMX connection (127.0.0.1:7199) > ERROR [StompConnection receiver] 2014-09-17 13:01:24,376 Failed to collect machine info > java.lang.NullPointerException > at clojure.lang.Numbers.ops(Numbers.java:942) > at clojure.lang.Numbers.divide(Numbers.java:157) > at opsagent.nodedetails.machine_info$get_machine_info.invoke(machine_info.clj:76) > at opsagent.nodedetails$get_static_properties$fn__4313.invoke(nodedetails.clj:161) > at opsagent.nodedetails$get_static_properties.invoke(nodedetails.clj:160) > at opsagent.nodedetails$get_longtime_values$fn__4426.invoke(nodedetails.clj:227) > at opsagent.nodedetails$get_longtime_values.invoke(nodedetails.clj:226) > at opsagent.nodedetails$send_all_nodedetails$fn__4444.invoke(nodedetails.clj:245) > at opsagent.jmx$jmx_wrap.doInvoke(jmx.clj:111) > at clojure.lang.RestFn.invoke(RestFn.java:410) > at opsagent.nodedetails$send_all_nodedetails.invoke(nodedetails.clj:241) > at opsagent.opsagent$post_interface_startup.doInvoke(opsagent.clj:125) > at clojure.lang.RestFn.invoke(RestFn.java:421) > at opsagent.conf$handle_new_conf.invoke(conf.clj:179) > at opsagent.messaging$message_callback$fn__6059.invoke(messaging.clj:30) > at opsagent.messaging.proxy$java.lang.Object$StompConnection$Listener$7f16bc72.onMessage(Unknown Source) > at org.jgroups.client.StompConnection.notifyListeners(StompConnection.java:319) > at org.jgroups.client.StompConnection.run(StompConnection.java:269) > at java.lang.Thread.run(Thread.java:745) > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)