DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38884>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38884

           Summary: null pointer exception displaying logs if number of
                    columns reduced
           Product: Log4j
           Version: 1.3alpha
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: chainsaw
        AssignedTo: log4j-dev@logging.apache.org
        ReportedBy: [EMAIL PROTECTED]


Configured a logfilepatternreceiver in Chainsaw specifying a custom
field:PROP(SOMEFIELD)
Chainsaw loaded the log file correctly
Exited Chainsaw

Modified the logFilePatternReceiver configuration to ignore the text that was
creating a custom field: replaced PROP(SOMEFIELD) with *

Restarted Chainsaw

The table of logging events didn't display correctly and null pointer exceptions
were being generated.

Workaround: delete the settings files in the .chainsaw directory associated with
the log file.

Exception generated:

Exception in thread "AWT-EventQueue-0" java.lang.IndexOutOfBoundsException:
Index: 14, Size: 14
        at java.util.ArrayList.RangeCheck(Unknown Source)
        at java.util.ArrayList.get(Unknown Source)
        at
org.apache.log4j.chainsaw.ChainsawCyclicBufferTableModel.getValueAt(ChainsawCyclicBufferTableModel.java:440)
        at javax.swing.JTable.getValueAt(Unknown Source)
        at javax.swing.JTable.prepareRenderer(Unknown Source)
        at javax.swing.plaf.basic.BasicTableUI.paintCell(Unknown Source)
        at javax.swing.plaf.basic.BasicTableUI.paintCells(Unknown Source)
        at javax.swing.plaf.basic.BasicTableUI.paint(Unknown Source)
        at javax.swing.plaf.ComponentUI.update(Unknown Source)
        at javax.swing.JComponent.paintComponent(Unknown Source)
        at javax.swing.JComponent.paint(Unknown Source)
        at javax.swing.JViewport.blitDoubleBuffered(Unknown Source)
        at javax.swing.JViewport.windowBlitPaint(Unknown Source)
        at javax.swing.JViewport.setViewPosition(Unknown Source)
        at 
javax.swing.plaf.basic.BasicScrollPaneUI$Handler.hsbStateChanged(Unknown Source)
        at 
javax.swing.plaf.basic.BasicScrollPaneUI$Handler.stateChanged(Unknown Source)
        at javax.swing.DefaultBoundedRangeModel.fireStateChanged(Unknown Source)
        at javax.swing.DefaultBoundedRangeModel.setRangeProperties(Unknown 
Source)
        at javax.swing.DefaultBoundedRangeModel.setValue(Unknown Source)
        at javax.swing.JScrollBar.setValue(Unknown Source)
        at 
javax.swing.plaf.basic.BasicScrollBarUI$TrackListener.setValueFrom(Unknown
Source)
        at 
javax.swing.plaf.basic.BasicScrollBarUI$TrackListener.mouseDragged(Unknown
Source)
        at java.awt.Component.processMouseMotionEvent(Unknown Source)
        at javax.swing.JComponent.processMouseMotionEvent(Unknown Source)
        at java.awt.Component.processEvent(Unknown Source)
        at java.awt.Container.processEvent(Unknown Source)
        at java.awt.Component.dispatchEventImpl(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Window.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to