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

Headless Testsuite fails throwing NPE at getThumbSize() for Swing Components

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2 P2
    • None
    • 1.4.0
    • client-libs

      In Solaris Headless Testsuite fails throwing NPE when different methods related to getThumbSize() is called.

      **** BEGIN: javax.swing.JColorChooser
           BEGIN: javax.swing.JColorChooser: do_getAccessibleContext_0
        !! FAIL: javax.swing.JColorChooser: do_getAccessibleContext_0 status=fail with exception=java.lang.NullPointerException
      java.lang.NullPointerException
              at javax.swing.plaf.metal.MetalSliderUI.getThumbSize(MetalSliderUI.java:243)
              at javax.swing.plaf.basic.BasicSliderUI.calculateThumbSize(BasicSliderUI.java:361)
              at javax.swing.plaf.basic.BasicSliderUI.calculateGeometry(BasicSliderUI.java:345)
              at javax.swing.plaf.basic.BasicSliderUI.installUI(BasicSliderUI.java:135)
              at javax.swing.plaf.metal.MetalSliderUI.installUI(MetalSliderUI.java:78)
              at javax.swing.JComponent.setUI(JComponent.java:405)
              at javax.swing.JSlider.setUI(JSlider.java:241)
              at javax.swing.JSlider.updateUI(JSlider.java:252)
              at javax.swing.JSlider.<init>(JSlider.java:202)
              at javax.swing.colorchooser.DefaultHSBChooserPanel.buildSliderPalettePanel(DefaultHSBChooserPanel.java:462)
              at javax.swing.colorchooser.DefaultHSBChooserPanel.buildChooser(DefaultHSBChooserPanel.java:260)
              at javax.swing.colorchooser.AbstractColorChooserPanel.installChooserPanel(AbstractColorChooserPanel.java:120)
              at javax.swing.plaf.basic.BasicColorChooserUI$PropertyHandler.propertyChange(BasicColorChooserUI.java:231)
              at javax.swing.event.SwingPropertyChangeSupport.firePropertyChange(SwingPropertyChangeSupport.java:267)
              at javax.swing.event.SwingPropertyChangeSupport.firePropertyChange(SwingPropertyChangeSupport.java:235)
              at javax.swing.JComponent.firePropertyChange(JComponent.java:3739)
              at javax.swing.JColorChooser.setChooserPanels(JColorChooser.java:449)
              at javax.swing.plaf.basic.BasicColorChooserUI.installUI(BasicColorChooserUI.java:81)
              at javax.swing.JComponent.setUI(JComponent.java:405)
              at javax.swing.JColorChooser.setUI(JColorChooser.java:212)
              at javax.swing.JColorChooser.updateUI(JColorChooser.java:223)
              at javax.swing.JColorChooser.<init>(JColorChooser.java:186)
              at javax.swing.JColorChooser.<init>(JColorChooser.java:174)
              at javax.swing.JColorChooser.<init>(JColorChooser.java:165)
              at javax_swing_JColorChooser.do_getAccessibleContext_0(javax_swing_JColorChooser.java:18)
              at javax_swing_JColorChooser.run(javax_swing_JColorChooser.java:3694)
              at java.lang.Thread.run(Thread.java:579)


      Testsuite available at
      /net/sqesvr/export/awt/awt_ws/Headless

      Attached is the failiure scenarios which throws NPE and the complete Test Report
      I could reproduce the failiure in both SolSparc 8 and SolSparc 9

            svioletsunw Scott Violet (Inactive)
            rpullanisunw Rakesh Pullanikkad (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: