#6 NPE when selecting the last event while tailing

open
nobody
insight-ui (17)
4
2008-04-06
2008-04-06
Bindul Bhowmik
No

[This item was moved over from MindTree OpenMind. Defect Tracker#24]

When the Eclipse plugin is used to post events to Insight, and events are coming in, if the last appended event (as visible on the event list presentation) is selected a Null Pointer Exception is thrown. This primarily occurs when more events are coming in.

I believe this will be the case while tailing a file also. Also, the scroll bar is not moving accurately (but, that might be because CPU usage is at 100% - Bug #22).

Steps to reproduce:
-------------------
1. Start Insight and Eclipse and enable the remote receiver and appender.
2. Start something that logs a lot (Tomcat with B2BGateway?)
3. As the events start coming in, select the last event logged, and you will see a NPE when more events are coming in.

Stack Trace:
------------
java.lang.NullPointerException
at com.mindtree.insight.gui.EventListPresentation.valueChanged(EventListPresentation.java:242)
at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:187)
at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:167)
at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:214)
at javax.swing.DefaultListSelectionModel.insertIndexInterval(DefaultListSelectionModel.java:524)
at javax.swing.JTable.tableRowsInserted(JTable.java:2933)
at javax.swing.JTable.tableChanged(JTable.java:2869)
at javax.swing.table.AbstractTableModel.fireTableChanged(AbstractTableModel.java:280)
at javax.swing.table.AbstractTableModel.fireTableRowsInserted(AbstractTableModel.java:215)
at com.mindtree.insight.model.LogEventTableModel.addLogEvent(LogEventTableModel.java:149)
at com.mindtree.insight.gui.EventListPresentation.processRealTimeUpdate(EventListPresentation.java:211)
at com.mindtree.insight.Controller.notifyLogEventOccurred(Controller.java:170)
at com.mindtree.insight.model.LogEventModel.fireLogEventAdded(LogEventModel.java:123)
at com.mindtree.insight.appender.ParsedEventAppender.appendEvent(ParsedEventAppender.java:184)
at com.mindtree.insight.appender.ParsedEventAppender.doAppend(ParsedEventAppender.java:171)
at com.mindtree.insight.receiver.AbstractReceiver.fireEventReceived(AbstractReceiver.java:252)
at com.mindtree.insight.receiver.AbstractReceiver.run(AbstractReceiver.java:168)

Discussion