Re: When does .getThreadCpuTime return nil?

2017-09-24 Thread Neil Okamoto
Ok, hope it works out. > On Sep 23, 2017, at 8:03 PM, lawrence.krub...@gmail.com wrote: > > > Thanks for the answer. I am surprised because I used this code for years > without ever seeing that error. I'm trying to imagine what I did differently > this one time. I've added error detection, we

Re: When does .getThreadCpuTime return nil?

2017-09-23 Thread lawrence . krubner
Thanks for the answer. I am surprised because I used this code for years without ever seeing that error. I'm trying to imagine what I did differently this one time. I've added error detection, we'll see if it happens again. On Friday, September 22, 2017 at 7:34:49 PM UTC-4, Neil Okamoto wro

Re: When does .getThreadCpuTime return nil?

2017-09-22 Thread Neil Okamoto
Maybe it's because you attempted method invocation via reflection but the object is nil. So for example if (threads) returns a list containing nils, then calling (.getId t) or (.getName t) would probably throw a null pointer exception. I'm not sure it's possible for (ManagementFactory/getThrea

When does .getThreadCpuTime return nil?

2017-09-22 Thread lawrence . krubner
I've been using this code for years. I copy and pasted it from someone else on this group, someone much smarter than I am. I have never seen an error from this code. Now suddenly I get a null pointer exception at the last line of this code: (ns denormalize_mysql_to_mongodb.monitoring (:impor