Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#23 closed defect (wontfix)

Frequent tree-view-related exceptions

Reported by: ke Owned by: jd
Priority: minor Milestone:
Component: core Version:
Keywords: Cc:

Description

Exceptions of the following forms occur very frequently while perusing the control flow tree:

Exception in thread "AWT-EventQueue?-0" java.lang.NullPointerException?

at javax.swing.BufferStrategyPaintManager?.flushAccumulatedRegion(BufferStrategyPaintManager?.java:403) at javax.swing.BufferStrategyPaintManager?.endPaint(BufferStrategyPaintManager?.java:363) at javax.swing.RepaintManager?.endPaint(RepaintManager?.java:1288) at javax.swing.JComponent._paintImmediately(JComponent.java:5078) at javax.swing.JComponent.paintImmediately(JComponent.java:4882) at javax.swing.RepaintManager?.paintDirtyRegions(RepaintManager?.java:785) at javax.swing.RepaintManager?.paintDirtyRegions(RepaintManager?.java:713) at javax.swing.RepaintManager?.seqPaintDirtyRegions(RepaintManager?.java:693) at javax.swing.SystemEventQueueUtilities?$ComponentWorkRequest?.run(SystemEventQueueUtilities?.java:125) at java.awt.event.InvocationEvent?.dispatch(InvocationEvent?.java:209) at java.awt.EventQueue?.dispatchEvent(EventQueue?.java:597) at java.awt.EventDispatchThread?.pumpOneEventForFilters(EventDispatchThread?.java:269) at java.awt.EventDispatchThread?.pumpEventsForFilter(EventDispatchThread?.java:184) at java.awt.EventDispatchThread?.pumpEventsForHierarchy(EventDispatchThread?.java:174) at java.awt.EventDispatchThread?.pumpEvents(EventDispatchThread?.java:169) at java.awt.EventDispatchThread?.pumpEvents(EventDispatchThread?.java:161) at java.awt.EventDispatchThread?.run(EventDispatchThread?.java:122)

Exception in thread "AWT-EventQueue?-0" java.lang.ArrayIndexOutOfBoundsException?: No such child: 0

at java.awt.Container.getComponent(Container.java:294) at javax.swing.JViewport.getView(JViewport.java:958) at javax.swing.JViewport.getViewSize(JViewport.java:1009) at javax.swing.plaf.basic.BasicScrollPaneUI.syncScrollPaneWithViewport(BasicScrollPaneUI.java:265) at javax.swing.plaf.basic.BasicScrollPaneUI$Handler.viewportStateChanged(BasicScrollPaneUI.java:1064) at javax.swing.plaf.basic.BasicScrollPaneUI$Handler.stateChanged(BasicScrollPaneUI.java:1006) at javax.swing.JViewport.fireStateChanged(JViewport.java:1384) at javax.swing.JViewport$ViewListener?.componentResized(JViewport.java:1302) at java.awt.Component.processComponentEvent(Component.java:6089) at java.awt.Component.processEvent(Component.java:6043) at java.awt.Container.processEvent(Container.java:2041) at java.awt.Component.dispatchEventImpl(Component.java:4630) at java.awt.Container.dispatchEventImpl(Container.java:2099) at java.awt.Component.dispatchEvent(Component.java:4460) at java.awt.EventQueue?.dispatchEvent(EventQueue?.java:599) at java.awt.EventDispatchThread?.pumpOneEventForFilters(EventDispatchThread?.java:269) at java.awt.EventDispatchThread?.pumpEventsForFilter(EventDispatchThread?.java:184) at java.awt.EventDispatchThread?.pumpEventsForHierarchy(EventDispatchThread?.java:174) at java.awt.EventDispatchThread?.pumpEvents(EventDispatchThread?.java:169) at java.awt.EventDispatchThread?.pumpEvents(EventDispatchThread?.java:161) at java.awt.EventDispatchThread?.run(EventDispatchThread?.java:122)

Exception in thread "AWT-EventQueue?-0" java.lang.NullPointerException?

at org.kahina.core.visual.tree.KahinaTreeView?.getNodeX(KahinaTreeView?.java:526) at org.kahina.core.visual.tree.KahinaTreeViewPanel?.scrollToNode(KahinaTreeViewPanel?.java:461) at org.kahina.core.visual.tree.KahinaTreeViewPanel?.updateDisplay(KahinaTreeViewPanel?.java:100) at org.kahina.core.visual.tree.KahinaTreeViewListener?.mouseClicked(KahinaTreeViewListener?.java:55) at java.awt.Component.processMouseEvent(Component.java:6266) at javax.swing.JComponent.processMouseEvent(JComponent.java:3267) at java.awt.Component.processEvent(Component.java:6028) at java.awt.Container.processEvent(Container.java:2041) at java.awt.Component.dispatchEventImpl(Component.java:4630) at java.awt.Container.dispatchEventImpl(Container.java:2099) at java.awt.Component.dispatchEvent(Component.java:4460) at java.awt.LightweightDispatcher?.retargetMouseEvent(Container.java:4574) at java.awt.LightweightDispatcher?.processMouseEvent(Container.java:4247) at java.awt.LightweightDispatcher?.dispatchEvent(Container.java:4168) at java.awt.Container.dispatchEventImpl(Container.java:2085) at java.awt.Window.dispatchEventImpl(Window.java:2478) at java.awt.Component.dispatchEvent(Component.java:4460) at java.awt.EventQueue?.dispatchEvent(EventQueue?.java:599) at java.awt.EventDispatchThread?.pumpOneEventForFilters(EventDispatchThread?.java:269) at java.awt.EventDispatchThread?.pumpEventsForFilter(EventDispatchThread?.java:184) at java.awt.EventDispatchThread?.pumpEventsForHierarchy(EventDispatchThread?.java:174) at java.awt.EventDispatchThread?.pumpEvents(EventDispatchThread?.java:169) at java.awt.EventDispatchThread?.pumpEvents(EventDispatchThread?.java:161) at java.awt.EventDispatchThread?.run(EventDispatchThread?.java:122)

Change History (2)

comment:1 Changed 8 years ago by jd

  • Resolution set to wontfix
  • Status changed from new to closed

Exceptions of the last type are avoided since rev 485.

The first two types are a lot harder to fix because they happen far down in Swing's guts, and I don't even have a chance to catch these because I do not call these methods explicitly. Since there will be a major revamp of tree rendering sooner I later chances are that these mysterious error messages will vanish. I will therefore not invest too much time in this for now.

comment:2 Changed 8 years ago by jd

Some further research suggests the remaining problems might be related to this Swing bug.

Note: See TracTickets for help on using tickets.