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

HTML5 canvas: ClassCastException at com.sun.javafx.css.Type$PixelSizeType.convert(Type.java:687) on starting HTML5 canvas example

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • fx2.0
    • fx2.0
    • javafx
    • None
    • JavaFX 2.0 b17

      java.vendor=Sun Microsystems Inc.
      java.version=1.6.0_24
      java.vm.vendor=Sun Microsystems Inc.
      java.vm.version=19.1-b02
      os.name=Windows 7
      os.arch=x86
      os.version=6.1

    • web

      Hi!

      I use a WebView in a Stage/Scene/VBox.

              Scene scene = new Scene(group = new VBox());
              webEngine = new WebEngine("http://www.kevs3d.co.uk/dev/lsystems/");
              webView = new WebView(webEngine);
              group.getChildren().add (webView);


      HTML5 Canvas sample under this URL: http://www.kevs3d.co.uk/dev/lsystems/

      Press the start Button. I get this exception:

      caught: java.lang.ClassCastException: java.lang.String cannot be cast to com.sun.javafx.css.Value
      key = Key {property: -fx-opacity, type: PixelSizeType, initialValue: 1.0, inherits: false, subKeys: null}
      resolved = Value{ value: -fx-disabled-opacity, type: null, lookup}
      java.lang.ClassCastException: java.lang.String cannot be cast to com.sun.javafx.css.Value
      at com.sun.javafx.css.Type$PixelSizeType.convert(Type.java:687)
      at com.sun.javafx.css.Type$PixelSizeType.convert(Type.java:683)
      at com.sun.javafx.css.StyleHelper.lookup(StyleHelper.java:414)
      at com.sun.javafx.css.StyleHelper.transitionToState(StyleHelper.java:197)
      at javafx.scene.Node.impl_processCSS(Node.java:4192)
      at javafx.scene.Parent.impl_processCSS(Parent.java:976)
      at javafx.scene.control.Control.impl_processCSS(Control.java:709)
      at com.sun.webpane.sg.theme.RenderThemeImpl$FormButton.impl_processCSS(RenderThemeImpl.java:208)
      at com.sun.webpane.sg.theme.RenderThemeImpl.reapplyCSS(RenderThemeImpl.java:177)
      at com.sun.webpane.sg.theme.RenderThemeImpl$FormButton.impl_processCSS(RenderThemeImpl.java:205)
      at com.sun.webpane.sg.theme.RenderThemeImpl.processCSSLayoutSync(RenderThemeImpl.java:112)
      at com.sun.webpane.sg.theme.RenderThemeImpl.createWidget(RenderThemeImpl.java:74)
      at com.sun.webpane.platform.WebPage.twkUpdateContent(Native Method)
      at com.sun.webpane.platform.WebPage.updateDirty(WebPage.java:294)
      at com.sun.webpane.platform.WebPage.updateContent(WebPage.java:545)
      at com.sun.javafx.sg.prism.NGWebView.repaint(NGWebView.java:95)
      at javafx.scene.web.WebView.impl_updatePG(WebView.java:457)
      at javafx.scene.Node.syncPGNode(Node.java:411)
      at javafx.scene.Scene$ScenePulseListener.synchronizePGScene(Scene.java:1244)
      at javafx.scene.Scene$ScenePulseListener.pulse(Scene.java:1344)
      #
      at com.sun.javafx.tk.Toolkit.firePulse(Toolkit.java:295)
      at com.sun.javafx.tk.glass.GlassToolkit.pulse(GlassToolkit.java:217)
      at com.sun.javafx.tk.glass.GlassToolkit$3.run(GlassToolkit.java:184)
      at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
      at com.sun.glass.ui.win.WinApplication.access$100(WinApplication.java:14)
      at com.sun.glass.ui.win.WinApplication$1.run(WinApplication.java:33)
      # A fatal error has been detected by the Java Runtime Environment:
      #
      at java.lang.Thread.run(Thread.java:662)
      # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x63da9c15, pid=5036, tid=3816
      #
      # JRE version: 6.0_24-b07
      # Java VM: Java HotSpot(TM) Client VM (19.1-b02 mixed mode, sharing windows-x86 )
      # Problematic frame:
      # C [WebPaneJava.dll+0x259c15]
      #
      # An error report file with more information is saved as:
      # C:\Entw\Work\projects\javafx2\swing\WebView\hs_err_pid5036.log
      #
      # If you would like to submit a bug report, please visit:
      # http://java.sun.com/webapps/bugreport/crash.jsp
      # The crash happened outside the Java Virtual Machine in native code.
      # See problematic frame for where to report the bug.
      #
      Exception in thread "JavaFX Application Thread" Java Result: 1
      BUILD SUCCESSFUL (total time: 1 minute 14 seconds)

      br, josh.

            ant Anton Tarasov (Inactive)
            arittnerjfx Aljoscha Rittner (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: