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

FXML: attempt to use "fx:copy" cause "javafx.fxml.LoadException: Can't copy value " message

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • None
    • fx2.0
    • javafx
    • None
    • build 41

      run application attached:
      there is attempt to use "fx:copy" feature of FXML.
      result: "Can't copy value" message, exception thrown:

      SEVERE: The following error occurred at line 16 in file /C:/Users/shubov/JavaClientTrunk2/FxmlTests/build/classes/test/fxmltests/resources/fxcopy.fxml[Ljava.lang.StackTraceElement;@15e83f9
      javafx.fxml.LoadException: Can't copy value Color[red=255,green=0,blue=0,opacity=1.0].
              at javafx.fxml.FXMLLoader$CopyElement.constructValue(FXMLLoader.java:798)
              at javafx.fxml.FXMLLoader$ValueElement.processStartElement(FXMLLoader.java:370)
              at javafx.fxml.FXMLLoader.processStartElement(FXMLLoader.java:1502)
              at javafx.fxml.FXMLLoader.load(FXMLLoader.java:1390)
              at javafx.fxml.FXMLLoader.load(FXMLLoader.java:1738)
              at javafx.fxml.FXMLLoader.load(FXMLLoader.java:1723)
              at javafx.fxml.FXMLLoader.load(FXMLLoader.java:1718)
              at test.fxmltests.app.ShortAppCopy.start(ShortAppCopy.java:37)
              at com.sun.javafx.application.LauncherImpl$5.run(LauncherImpl.java:298)
              at com.sun.javafx.application.PlatformImpl$4.run(PlatformImpl.java:136)
              at com.sun.javafx.application.PlatformImpl$3.run(PlatformImpl.java:108)
              at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
              at com.sun.glass.ui.win.WinApplication.access$100(WinApplication.java:29)
              at com.sun.glass.ui.win.WinApplication$1$1.run(WinApplication.java:49)
              at java.lang.Thread.run(Thread.java:619)

        1. fxcopy.fxml
          0.6 kB
          Victor Shubov
        2. ShortAppCopy.java
          2 kB
          Victor Shubov

            gkbrown Greg Brown (Inactive)
            vshubov Victor Shubov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: