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

Headless Testsuite fails throwing NPE at initMatrixAndMetrics() for Swing

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Duplicate
    • Affects Version/s: 1.4.0
    • Fix Version/s: None
    • Component/s: client-libs
    • Labels:

      Description

      In Solaris Headless Testsuite fails throwing NPE at initMatrixAndMetrics() when different methods related to Swing Components is called.

      BEGIN: javax.swing.JButton: do_getPreferredSize_8
        !! FAIL: javax.swing.JButton: do_getPreferredSize_8 status=fail with exception=java.lang.NullPointerException
      java.lang.NullPointerException
              at sun.awt.font.FontDesignMetrics.initMatrixAndMetrics(FontDesignMetrics.java:164)
              at sun.awt.font.FontDesignMetrics.<init>(FontDesignMetrics.java:157)
              at sun.awt.font.FontDesignMetrics.<init>(FontDesignMetrics.java:142)
              at sun.awt.SunToolkit.getFontMetrics(SunToolkit.java:339)
              at sun.awt.motif.MToolkit.getFontMetrics(MToolkit.java:336)
              at sun.awt.HeadlessToolkit.getFontMetrics(HeadlessToolkit.java:377)
              at javax.swing.plaf.basic.BasicGraphicsUtils.getPreferredButtonSize(BasicGraphicsUtils.java:281)
              at javax.swing.plaf.basic.BasicButtonUI.getPreferredSize(BasicButtonUI.java:406)
              at javax.swing.JComponent.getPreferredSize(JComponent.java:1176)
              at javax_swing_JButton.do_getPreferredSize_8(javax_swing_JButton.java:248)
              at javax_swing_JButton.run(javax_swing_JButton.java:3756)
              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 at initMatrixAndMetrics() and the complete Test Report. I could reproduce the failiure in both SolSparc 8 and SolSparc 9

      This is working fine in Merlin Beta.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: