-
Bug
-
Resolution: Duplicate
-
P3
-
None
-
6
-
None
-
generic
-
generic
Doesn't happen everytime, but seem to happen maybe 30-50% of the time.
After the following exception it appears to hang.
cruella<5> ( setenv DISPLAY cruella:0 ; /opt/java/jdk1.6.0/bin/java -jar /opt/java/jdk1.6.0/demo/jfc/Java2D/Java2Demo.jar -runs=1 -delay=1 )
Java2D Demo RunWindow : 1 Runs, 1 second delay between tabs
java version: 1.6.0-ea
SunOS 5.9
#0 Mon Apr 11 17:13:09 PDT 2005, 6271.539K used
Exception in thread "RunWindow" java.lang.NullPointerException
at java.awt.Dimension.<init>(Dimension.java:91)
at java.awt.Component.getMaximumSize(Component.java:2349)
at java.awt.Container.getMaximumSize(Container.java:1626)
at javax.swing.JComponent.getMaximumSize(JComponent.java:1737)
at javax.swing.BoxLayout.checkRequests(BoxLayout.java:435)
at javax.swing.BoxLayout.layoutContainer(BoxLayout.java:375)
at javax.swing.JToolBar$DefaultToolBarLayout.layoutContainer(JToolBar.java:788)
at java.awt.Container.layout(Container.java:1400)
at java.awt.Container.doLayout(Container.java:1389)
at java.awt.Container.validateTree(Container.java:1472)
at java.awt.Container.validateTree(Container.java:1479)
at java.awt.Container.validateTree(Container.java:1479)
at java.awt.Container.validateTree(Container.java:1479)
at java.awt.Container.validateTree(Container.java:1479)
at java.awt.Container.validateTree(Container.java:1479)
at java.awt.Container.validate(Container.java:1447)
at java2d.DemoGroup.setup(DemoGroup.java:258)
at java2d.GlobalPanel.stateChanged(GlobalPanel.java:103)
at javax.swing.JTabbedPane.fireStateChanged(JTabbedPane.java:294)
at javax.swing.JTabbedPane$ModelListener.stateChanged(JTabbedPane.java:226)
at javax.swing.DefaultSingleSelectionModel.fireStateChanged(DefaultSingleSelectionModel.java:116)
at javax.swing.DefaultSingleSelectionModel.setSelectedIndex(DefaultSingleSelectionModel.java:50)
at javax.swing.JTabbedPane.setSelectedIndexImpl(JTabbedPane.java:482)
at javax.swing.JTabbedPane.setSelectedIndex(JTabbedPane.java:468)
at java2d.RunWindow.run(RunWindow.java:220)
at java.lang.Thread.run(Thread.java:595)
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at javax.swing.SizeRequirements.calculateTiledPositions(SizeRequirements.java:294)
at javax.swing.BoxLayout.layoutContainer(BoxLayout.java:378)
at javax.swing.JToolBar$DefaultToolBarLayout.layoutContainer(JToolBar.java:788)
at java.awt.Container.layout(Container.java:1400)
at java.awt.Container.doLayout(Container.java:1389)
at java.awt.Container.validateTree(Container.java:1472)
at java.awt.Container.validateTree(Container.java:1479)
at java.awt.Container.validateTree(Container.java:1479)
at java.awt.Container.validateTree(Container.java:1479)
at java.awt.Container.validateTree(Container.java:1479)
at java.awt.Container.validateTree(Container.java:1479)
at java.awt.Container.validateTree(Container.java:1479)
at java.awt.Container.validateTree(Container.java:1479)
at java.awt.Container.validateTree(Container.java:1479)
at java.awt.Container.validateTree(Container.java:1479)
at java.awt.Container.validateTree(Container.java:1479)
at java.awt.Container.validateTree(Container.java:1479)
at java.awt.Container.validate(Container.java:1447)
at javax.swing.RepaintManager.validateInvalidComponents(RepaintManager.java:398)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:113)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:589)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:247)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:162)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:154)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:115)
----
uname: SunOS cruella 5.9 Generic_112233-12 sun4u sparc SUNW,Ultra-60
uptime: 5:17pm up 7 day(s), 5:36, 2 users, load average: 0.57, 0.42, 0.21
model: SUNW,Ultra-60
memory: Memory size: 512 Megabytes
But I have also seen it happen on Solaris 10 and Solaris AMD64 and X86.
###@###.### 2005-04-12 00:18:20 GMT
After the following exception it appears to hang.
cruella<5> ( setenv DISPLAY cruella:0 ; /opt/java/jdk1.6.0/bin/java -jar /opt/java/jdk1.6.0/demo/jfc/Java2D/Java2Demo.jar -runs=1 -delay=1 )
Java2D Demo RunWindow : 1 Runs, 1 second delay between tabs
java version: 1.6.0-ea
SunOS 5.9
#0 Mon Apr 11 17:13:09 PDT 2005, 6271.539K used
Exception in thread "RunWindow" java.lang.NullPointerException
at java.awt.Dimension.<init>(Dimension.java:91)
at java.awt.Component.getMaximumSize(Component.java:2349)
at java.awt.Container.getMaximumSize(Container.java:1626)
at javax.swing.JComponent.getMaximumSize(JComponent.java:1737)
at javax.swing.BoxLayout.checkRequests(BoxLayout.java:435)
at javax.swing.BoxLayout.layoutContainer(BoxLayout.java:375)
at javax.swing.JToolBar$DefaultToolBarLayout.layoutContainer(JToolBar.java:788)
at java.awt.Container.layout(Container.java:1400)
at java.awt.Container.doLayout(Container.java:1389)
at java.awt.Container.validateTree(Container.java:1472)
at java.awt.Container.validateTree(Container.java:1479)
at java.awt.Container.validateTree(Container.java:1479)
at java.awt.Container.validateTree(Container.java:1479)
at java.awt.Container.validateTree(Container.java:1479)
at java.awt.Container.validateTree(Container.java:1479)
at java.awt.Container.validate(Container.java:1447)
at java2d.DemoGroup.setup(DemoGroup.java:258)
at java2d.GlobalPanel.stateChanged(GlobalPanel.java:103)
at javax.swing.JTabbedPane.fireStateChanged(JTabbedPane.java:294)
at javax.swing.JTabbedPane$ModelListener.stateChanged(JTabbedPane.java:226)
at javax.swing.DefaultSingleSelectionModel.fireStateChanged(DefaultSingleSelectionModel.java:116)
at javax.swing.DefaultSingleSelectionModel.setSelectedIndex(DefaultSingleSelectionModel.java:50)
at javax.swing.JTabbedPane.setSelectedIndexImpl(JTabbedPane.java:482)
at javax.swing.JTabbedPane.setSelectedIndex(JTabbedPane.java:468)
at java2d.RunWindow.run(RunWindow.java:220)
at java.lang.Thread.run(Thread.java:595)
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at javax.swing.SizeRequirements.calculateTiledPositions(SizeRequirements.java:294)
at javax.swing.BoxLayout.layoutContainer(BoxLayout.java:378)
at javax.swing.JToolBar$DefaultToolBarLayout.layoutContainer(JToolBar.java:788)
at java.awt.Container.layout(Container.java:1400)
at java.awt.Container.doLayout(Container.java:1389)
at java.awt.Container.validateTree(Container.java:1472)
at java.awt.Container.validateTree(Container.java:1479)
at java.awt.Container.validateTree(Container.java:1479)
at java.awt.Container.validateTree(Container.java:1479)
at java.awt.Container.validateTree(Container.java:1479)
at java.awt.Container.validateTree(Container.java:1479)
at java.awt.Container.validateTree(Container.java:1479)
at java.awt.Container.validateTree(Container.java:1479)
at java.awt.Container.validateTree(Container.java:1479)
at java.awt.Container.validateTree(Container.java:1479)
at java.awt.Container.validateTree(Container.java:1479)
at java.awt.Container.validateTree(Container.java:1479)
at java.awt.Container.validate(Container.java:1447)
at javax.swing.RepaintManager.validateInvalidComponents(RepaintManager.java:398)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:113)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:589)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:247)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:162)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:154)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:115)
----
uname: SunOS cruella 5.9 Generic_112233-12 sun4u sparc SUNW,Ultra-60
uptime: 5:17pm up 7 day(s), 5:36, 2 users, load average: 0.57, 0.42, 0.21
model: SUNW,Ultra-60
memory: Memory size: 512 Megabytes
But I have also seen it happen on Solaris 10 and Solaris AMD64 and X86.
###@###.### 2005-04-12 00:18:20 GMT
- duplicates
-
JDK-4971236 SWAT: Java2D demo SizeRequirements.calculateTiledPositions() overflows allocated
- Closed