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

Apps using WebView don't work with default build settings

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • P2
    • Resolution: Fixed
    • 8
    • 8
    • javafx

    Description

      After calling "gradle sdk" no web-view (e.g. HelloWebView) sample work. Looks like web-view related classes are not included into final jfxrt.jar

      Stack trace:
      QuantumRenderer: shutdown
      java.lang.reflect.InvocationTargetException
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:491)
              at com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:351)
              at com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:304)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:491)
              at sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.java:778)
      Caused by: java.lang.RuntimeException: Exception in Application start method
              at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:867)
              at com.sun.javafx.application.LauncherImpl.access$000(LauncherImpl.java:56)
              at com.sun.javafx.application.LauncherImpl$1.run(LauncherImpl.java:158)
              at java.lang.Thread.run(Thread.java:724)
      Caused by: java.lang.ExceptionInInitializerError
              at javafx.scene.web.WebEngine.<clinit>(WebEngine.java:297)
              at javafx.scene.web.WebView.<init>(WebView.java:249)
              at helloworld.HelloWebView.start(HelloWebView.java:22)
              at com.sun.javafx.application.LauncherImpl$5.run(LauncherImpl.java:810)
              at com.sun.javafx.application.PlatformImpl$6.run(PlatformImpl.java:273)
              at com.sun.javafx.application.PlatformImpl$5$1.run(PlatformImpl.java:239)
              at com.sun.javafx.application.PlatformImpl$5$1.run(PlatformImpl.java:236)
              at java.security.AccessController.doPrivileged(Native Method)
              at com.sun.javafx.application.PlatformImpl$5.run(PlatformImpl.java:236)
              at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
              at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
              at com.sun.glass.ui.win.WinApplication.access$300(WinApplication.java:39)
              at com.sun.glass.ui.win.WinApplication$3$1.run(WinApplication.java:101)
              ... 1 more
      Caused by: java.util.MissingResourceException: Can't find bundle for base name com.sun.webkit.build, locale en_US
              at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1540)
              at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1363)
              at java.util.ResourceBundle.getBundle(ResourceBundle.java:820)
              at com.sun.webkit.Utilities.<clinit>(Utilities.java:35)
              ... 14 more
      Exception running application helloworld.HelloWebView

      Attachments

        Issue Links

          Activity

            People

              peterz Peter Zhelezniakov
              msoch Martin Ĺ och
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported: