Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4988063

SLES8: Java2D demo threw exceptions when using linux-i586

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Duplicate
    • Affects Version/s: 5.0
    • Fix Version/s: None
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • CPU:
      x86
    • OS:
      linux_suse_sles_8

      Description

      JDK : JDK1.5.0 b32c linux-i586
      Platform[s] : SuSE SLES-8 (AMD64), SuSE SLES-8 (i386)
      switch/Mode : -Xcomp (pass with -Xint)

      Running Java2D demo by using linux-i586 on SLES8 machines will crash Java2D demo.

      How to reproduce:
      ==================
      1. Launch Java2D demo: bin/java -jar demo/jfc/Java2D/*jar
      2. Open Options/RunWindow and click on Run to start the auto tests. You'll see the NPE in a minute. (You can also manually click on a few tabs instead of auto tests. ) Once you see the NPE, you cannot click on any tabs. The Java2D demo hangs.


      Error Messages:
      ================
      Java2D Demo RunWindow : 20 Runs, 10 second delay between tabs
      java version: 1.5.0-beta
      Linux 2.4.19-SMP

      #0 Tue Feb 03 14:21:25 PST 2004, 4400.8984K used
      java.lang.NullPointerException
              at java.awt.Dimension.<init>(Dimension.java:91)
              at java.awt.Component.getMaximumSize(Component.java:2323)
              at java.awt.Container.getMaximumSize(Container.java:1622)
              at javax.swing.JComponent.getMaximumSize(JComponent.java:1579)
              at javax.swing.BoxLayout.checkRequests(BoxLayout.java:435)
              at javax.swing.BoxLayout.layoutContainer(BoxLayout.java:375)
              at javax.swing.JToolBar$DefaultToolBarLayout.layoutContainer(JToolBar.java:786)
              at java.awt.Container.layout(Container.java:1398)
              at java.awt.Container.doLayout(Container.java:1388)
              at java.awt.Container.validateTree(Container.java:1470)
              at java.awt.Container.validateTree(Container.java:1477)
              at java.awt.Container.validateTree(Container.java:1477)
              at java.awt.Container.validateTree(Container.java:1477)
              at java.awt.Container.validateTree(Container.java:1477)
              at java.awt.Container.validateTree(Container.java:1477)
              at java.awt.Container.validate(Container.java:1445)
              at java2d.DemoGroup.setup(DemoGroup.java:257)
              at java2d.GlobalPanel.stateChanged(GlobalPanel.java:102)
              at javax.swing.JTabbedPane.fireStateChanged(JTabbedPane.java:283)
              at javax.swing.JTabbedPane$ModelListener.stateChanged(JTabbedPane.java:215)
              at javax.swing.DefaultSingleSelectionModel.fireStateChanged(DefaultSingleSelectionModel.java:116)
              at javax.swing.DefaultSingleSelectionModel.setSelectedIndex(DefaultSingleSelectionModel.java:50)
              at javax.swing.JTabbedPane.setSelectedIndexImpl(JTabbedPane.java:471)
              at javax.swing.JTabbedPane.setSelectedIndex(JTabbedPane.java:457)
              at java2d.RunWindow.run(RunWindow.java:219)
              at java.lang.Thread.run(Thread.java:566)
      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:786)
              at java.awt.Container.layout(Container.java:1398)
              at java.awt.Container.doLayout(Container.java:1388)
              at java.awt.Container.validateTree(Container.java:1470)
              at java.awt.Container.validateTree(Container.java:1477)
              at java.awt.Container.validateTree(Container.java:1477)
              at java.awt.Container.validateTree(Container.java:1477)
              at java.awt.Container.validateTree(Container.java:1477)
              at java.awt.Container.validateTree(Container.java:1477)
              at java.awt.Container.validateTree(Container.java:1477)
              at java.awt.Container.validateTree(Container.java:1477)
              at java.awt.Container.validateTree(Container.java:1477)
              at java.awt.Container.validateTree(Container.java:1477)
              at java.awt.Container.validateTree(Container.java:1477)
              at java.awt.Container.validateTree(Container.java:1477)
              at java.awt.Container.validate(Container.java:1445)
              at javax.swing.RepaintManager.validateInvalidComponents(RepaintManager.java:354)
              at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:116)
              at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:201)
              at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
              at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
              at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
              at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
      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:786)
              at java.awt.Container.layout(Container.java:1398)
              at java.awt.Container.doLayout(Container.java:1388)
              at java.awt.Container.validateTree(Container.java:1470)
              at java.awt.Container.validateTree(Container.java:1477)
              at java.awt.Container.validateTree(Container.java:1477)
              at java.awt.Container.validateTree(Container.java:1477)
              at java.awt.Container.validateTree(Container.java:1477)
              at java.awt.Container.validateTree(Container.java:1477)
              at java.awt.Container.validateTree(Container.java:1477)
              at java.awt.Container.validateTree(Container.java:1477)
              at java.awt.Container.validate(Container.java:1445)
              at javax.swing.plaf.basic.BasicTabbedPaneUI.ensureCurrentLayout(BasicTabbedPaneUI.java:1215)
              at javax.swing.plaf.basic.BasicTabbedPaneUI.paint(BasicTabbedPaneUI.java:530)
              at javax.swing.plaf.metal.MetalTabbedPaneUI.paint(MetalTabbedPaneUI.java:827)
              at javax.swing.plaf.metal.MetalTabbedPaneUI.update(MetalTabbedPaneUI.java:716)
              at javax.swing.JComponent.paintComponent(JComponent.java:714)
              at javax.swing.JComponent.paint(JComponent.java:977)
              at javax.swing.JComponent.paintChildren(JComponent.java:814)
              at javax.swing.JComponent.paint(JComponent.java:986)
              at javax.swing.JComponent.paintChildren(JComponent.java:814)
              at javax.swing.JComponent.paint(JComponent.java:986)
              at javax.swing.JComponent.paintChildren(JComponent.java:814)
              at javax.swing.JComponent.paint(JComponent.java:986)
              at javax.swing.JLayeredPane.paint(JLayeredPane.java:559)
              at javax.swing.JComponent.paintChildren(JComponent.java:814)
              at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4882)
              at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4828)
              at javax.swing.JComponent.paint(JComponent.java:967)
              at java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:21)
              at sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:60)
              at sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:97)
              at java.awt.Container.paint(Container.java:1704)
              at sun.awt.RepaintArea.paintComponent(RepaintArea.java:248)
              at sun.awt.X11.XRepaintArea.paintComponent(XRepaintArea.java:56)
              at sun.awt.RepaintArea.paint(RepaintArea.java:224)
              at sun.awt.X11.XComponentPeer.handleEvent(XComponentPeer.java:632)
              at java.awt.Component.dispatchEventImpl(Component.java:4007)
              at java.awt.Container.dispatchEventImpl(Container.java:2019)
              at java.awt.Window.dispatchEventImpl(Window.java:1757)
              at java.awt.Component.dispatchEvent(Component.java:3779)
              at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
              at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
              at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
              at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

      Test Machines:
      ===============
      kurtz:~/temp # more /etc/*release
      ::::::::::::::
      /etc/SuSE-release
      ::::::::::::::
      SuSE SLES-8 (i386)
      VERSION = 8.1
      ::::::::::::::
      /etc/UnitedLinux-release
      ::::::::::::::
      UnitedLinux 1.0 (i586)


      bela:/tmp/tiger # more /etc/*release
      ::::::::::::::
      /etc/SuSE-release
      ::::::::::::::
      SuSE SLES-8 (AMD64)
      VERSION = 8.1
      ::::::::::::::
      /etc/UnitedLinux-release
      ::::::::::::::
      UnitedLinux 1.0 (AMD64)
      VERSION = 1.0

      VERSION = 1.0
      ::::::::::::::
      /etc/lsb-release
      ::::::::::::::
      LSB_VERSION="1.2"
      DISTRIB_ID="UnitedLinux"
      DISTRIB_RELEASE="1.0"
      DISTRIB_DESCRIPTION="UnitedLinux 1.0 (i586)"

      ###@###.### 2004-02-03

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pmohansunw Praveen Mohan (Inactive)
                Reporter:
                schien Suchen Chien (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: