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

Headless Testsuite fails throwing NPE at Hashtable.get() 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 java.util.Hashtable.get(Hashtable.java) when different methods related to the same is called

      BEGIN: javax.swing.JEditorPane: do__init__0
        !! FAIL: javax.swing.JEditorPane: do__init__0 status=fail with exception=java.lang.NullPointerException
      java.lang.NullPointerException
              at java.util.Hashtable.get(Hashtable.java:320)
              at java.awt.Component.getFontMetrics(Component.java:2125)
              at javax.swing.text.WrappedPlainView.updateMetrics(WrappedPlainView.java:304)
              at javax.swing.text.WrappedPlainView.updateChildren(WrappedPlainView.java:283)
              at javax.swing.text.WrappedPlainView.insertUpdate(WrappedPlainView.java:446)
              at javax.swing.plaf.basic.BasicTextUI$RootView.insertUpdate(BasicTextUI.java:1414)
              at javax.swing.plaf.basic.BasicTextUI$UpdateHandler.insertUpdate(BasicTextUI.java:1643)
              at javax.swing.text.AbstractDocument.fireInsertUpdate(AbstractDocument.java:185)
              at javax.swing.text.AbstractDocument.handleInsertString(AbstractDocument.java:736)
              at javax.swing.text.AbstractDocument.insertString(AbstractDocument.java:693)
              at javax.swing.text.PlainDocument.insertString(PlainDocument.java:117)
              at javax.swing.text.DefaultEditorKit.read(DefaultEditorKit.java:244)
              at javax.swing.JEditorPane.setText(JEditorPane.java:1285)
              at javax.swing.JEditorPane.<init>(JEditorPane.java:268)
              at javax_swing_JEditorPane.do__init__0(javax_swing_JEditorPane.java:18)
              at javax_swing_JEditorPane.run(javax_swing_JEditorPane.java:3780)
              at java.lang.Thread.run(Thread.java:579)

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

      Attached is the failiure scenarios which throws NPE and the complete Test Report

        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: