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

HTMLFactory.create() throws NPE for OSX platform

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 12
    • client-libs
    • b18
    • 12
    • os_x

      JAVA Version:
      java version "12-ea" 2019-03-19
      Java(TM) SE Runtime Environment (build 12-ea+18)
      Java HotSpot(TM) 64-Bit Server VM (build 12-ea+18, mixed mode, sharing)

      OS=Mac OS X 10.13.3 (x86_64)

      Description:
      Test sanity/client/SwingSet/src/EditorPaneDemoTest.java was run as a part of Same binary runs where this issue was seen intermittently (2/1000 itterations).


      Error stack trace:
      java.lang.reflect.InvocationTargetException
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      at org.netbeans.jemmy.ClassReference.invokeMethod(ClassReference.java:134)
      at org.netbeans.jemmy.ClassReference.startApplication(ClassReference.java:97)
      at org.netbeans.jemmy.ClassReference.startApplication(ClassReference.java:75)
      at EditorPaneDemoTest.test(EditorPaneDemoTest.java:95)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85)
      at org.testng.internal.Invoker.invokeMethod(Invoker.java:639)
      at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:821)
      at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1131)
      at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:124)
      at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108)
      at org.testng.TestRunner.privateRun(TestRunner.java:773)
      at org.testng.TestRunner.run(TestRunner.java:623)
      at org.testng.SuiteRunner.runTest(SuiteRunner.java:357)
      at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:352)
      at org.testng.SuiteRunner.privateRun(SuiteRunner.java:310)
      at org.testng.SuiteRunner.run(SuiteRunner.java:259)
      at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
      at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
      at org.testng.TestNG.runSuitesSequentially(TestNG.java:1185)
      at org.testng.TestNG.runSuitesLocally(TestNG.java:1110)
      at org.testng.TestNG.run(TestNG.java:1018)
      at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:94)
      at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:54)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115)
      at java.base/java.lang.Thread.run(Thread.java:835)
      Caused by: java.lang.NullPointerException
      at java.desktop/javax.swing.text.html.HTMLEditorKit$HTMLFactory.create(HTMLEditorKit.java:1247)
      at java.desktop/javax.swing.text.CompositeView.loadChildren(CompositeView.java:112)
      at java.desktop/javax.swing.text.CompositeView.setParent(CompositeView.java:139)
      at java.desktop/javax.swing.text.html.BlockView.setParent(BlockView.java:72)
      at java.desktop/javax.swing.plaf.basic.BasicTextUI$RootView.setView(BasicTextUI.java:1427)
      at java.desktop/javax.swing.plaf.basic.BasicTextUI.setView(BasicTextUI.java:715)
      at java.desktop/javax.swing.plaf.basic.BasicTextUI.modelChanged(BasicTextUI.java:704)
      at java.desktop/javax.swing.plaf.basic.BasicTextUI$UpdateHandler.propertyChange(BasicTextUI.java:1911)
      at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:341)
      at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:333)
      at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:266)
      at java.desktop/java.awt.Component.firePropertyChange(Component.java:8728)
      at java.desktop/javax.swing.text.JTextComponent.setEditable(JTextComponent.java:1817)
      at com.sun.swingset3.demos.editorpane.EditorPaneDemo.<init>(EditorPaneDemo.java:117)
      at com.sun.swingset3.demos.editorpane.EditorPaneDemo.main(EditorPaneDemo.java:89)
      ... 37 more

            psadhukhan Prasanta Sadhukhan
            gpatil Gauri Patil (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: