Here is the error from my log.
Code: Select all
2012-01-03 15:05:27,352 [MonitorThread] ERROR m.army.hrc.ServerMonitor.Monitor.Monitor - [33] Uncaught Exception in thread: MonitorThread
java.lang.NullPointerException: null
at org.jfree.data.time.TimeSeries.getTimePeriod(TimeSeries.java:361) ~[ASBS%20Server%20Monitor%201.0.0.jar:na]
at org.jfree.data.time.TimeSeries.removeAgedItems(TimeSeries.java:730) ~[ASBS%20Server%20Monitor%201.0.0.jar:na]
at org.jfree.data.time.TimeSeries.addOrUpdate(TimeSeries.java:709) ~[ASBS%20Server%20Monitor%201.0.0.jar:na]
at org.jfree.data.time.TimeSeries.addOrUpdate(TimeSeries.java:662) ~[ASBS%20Server%20Monitor%201.0.0.jar:na]
at mil.army.hrc.ASBS.ServerMonitor.Monitor.gui.MemoryUsageChart.AddMemoryUsageDataPoint(MemoryUsageChart.java:87) ~[ASBS%20Server%20Monitor%201.0.0.jar:na]
at mil.army.hrc.ASBS.ServerMonitor.Monitor.gui.SummaryPanel.update(SummaryPanel.java:153) ~[ASBS%20Server%20Monitor%201.0.0.jar:na]
at mil.army.hrc.ASBS.ServerMonitor.Monitor.gui.MonitorFrame.update(MonitorFrame.java:169) ~[ASBS%20Server%20Monitor%201.0.0.jar:na]
at mil.army.hrc.ASBS.ServerMonitor.Monitor.gui.MonitorFrame.run(MonitorFrame.java:195) ~[ASBS%20Server%20Monitor%201.0.0.jar:na]
at java.lang.Thread.run(Thread.java:662) ~[na:1.6.0_29]
Code: Select all
public void AddMemoryUsageDataPoint(final double memoryUsed)
{
LOG.trace("Adding a data point to the memory usage series...");
memoryUsage.addOrUpdate(new Second(Calendar.getInstance().getTime()), memoryUsed);
}