-
Bug
-
Resolution: Fixed
-
P4
-
8
-
None
-
Windows 8, 64-bit
Before installing Java Fx 1.8 and scenebuilder 2.0, I was able to open my fxml as in the following. But after I started to use scenebuilder 2.0, I got the load error. I found some bugs reported about this. It seems to be resolved. However the details of scenebuilder is up to date, I am suffering from the problem.
Product Version
JavaFX Scene Builder 2.0
Build Information
Version: 2.0-b20, Changeset: 5cac093e5c1f
Date: 2014-03-21 09:29
===>>> Here is the message from SB
at com.oracle.javafx.scenebuilder.kit.fxom.FXOMLoader.load(FXOMLoader.java:92)
at com.oracle.javafx.scenebuilder.kit.fxom.FXOMDocument.<init>(FXOMDocument.java:80)
at com.oracle.javafx.scenebuilder.kit.fxom.FXOMDocument.<init>(FXOMDocument.java:95)
at com.oracle.javafx.scenebuilder.kit.editor.EditorController.updateFxomDocument(EditorController.java:2370)
at com.oracle.javafx.scenebuilder.kit.editor.EditorController.setFxmlTextAndLocation(EditorController.java:655)
at com.oracle.javafx.scenebuilder.app.DocumentWindowController.loadFromFile(DocumentWindowController.java:386)
at com.oracle.javafx.scenebuilder.app.SceneBuilderApp.performOpenFiles(SceneBuilderApp.java:579)
at com.oracle.javafx.scenebuilder.app.SceneBuilderApp.handleOpenFilesAction(SceneBuilderApp.java:447)
at com.oracle.javafx.scenebuilder.app.SceneBuilderApp.handleLaunch(SceneBuilderApp.java:427)
at com.oracle.javafx.scenebuilder.app.AppPlatform.requestStartGeneric(AppPlatform.java:139)
at com.oracle.javafx.scenebuilder.app.AppPlatform.requestStart(AppPlatform.java:106)
at com.oracle.javafx.scenebuilder.app.SceneBuilderApp.start(SceneBuilderApp.java:371)
at com.sun.javafx.application.LauncherImpl$8.run(LauncherImpl.java:837)
at com.sun.javafx.application.PlatformImpl$7.run(PlatformImpl.java:335)
at com.sun.javafx.application.PlatformImpl$6$1.run(PlatformImpl.java:301)
at com.sun.javafx.application.PlatformImpl$6$1.run(PlatformImpl.java:298)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl$6.run(PlatformImpl.java:298)
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$4$1.run(WinApplication.java:112)
at java.lang.Thread.run(Thread.java:744)
Caused by: javafx.fxml.LoadException:
/
===>>> My FXML FILE
<fx:root type="BorderPane" minHeight="200.0" minWidth="300.0" xmlns:fx="http://javafx.com/fxml">
<fx:define>
<Insets bottom="10.0" left="10.0" right="10.0" top="10.0" fx:id="generalInset" />
<Lighting fx:id="lightingEffect" />
<Color blue="0.196" green="0.196" opacity="0.500" red="0.196" fx:id="shadowColor" />
<DropShadow color="$shadowColor" offsetX="5.0" offsetY="5.0" fx:id="dropShadow" />
<Color blue="1.000" green="1.000" opacity="0.900" red="1.000" fx:id="almostWhite" />
<Color blue="0.500" green="0.500" opacity="0.900" red="0.500" fx:id="almostGray" />
<Arc fx:id="backIcon" centerX="12.0" centerY="16.0" effect="$lightingEffect" fill="$almostWhite" length="60.0" radiusX="15.0" radiusY="15.0" startAngle="150.0" stroke="$almostGray" strokeWidth="0.5" type="ROUND" />
<Arc fx:id="maintLogIcon" centerX="12.0" centerY="16.0" effect="$lightingEffect" fill="$almostWhite" length="60.0" radiusX="15.0" radiusY="15.0" startAngle="150.0" stroke="$almostGray" strokeWidth="0.5" type="ROUND" />
<Arc fx:id="firingLogIcon" centerX="12.0" centerY="16.0" effect="$lightingEffect" fill="$almostWhite" length="60.0" radiusX="15.0" radiusY="15.0" startAngle="150.0" stroke="$almostGray" strokeWidth="0.5" type="ROUND" />
<Arc fx:id="simulationIcon" centerX="12.0" centerY="16.0" effect="$lightingEffect" fill="$almostWhite" length="60.0" radiusX="15.0" radiusY="15.0" startAngle="150.0" stroke="$almostGray" strokeWidth="0.5" type="ROUND" />
<ToggleGroup fx:id="logToggleGroup" />
</fx:define>
<bottom>
<HBox alignment="BOTTOM_RIGHT" padding="$generalInset">
<children>
<Button styleClass="control-button, backbutton" contentDisplay="RIGHT" effect="$dropShadow" graphic="$backIcon" graphicTextGap="9.0" minHeight="40.0" minWidth="120.0" mnemonicParsing="false" onAction="#onActionBack" text="BACK" />
</children>
</HBox>
</bottom>
<stylesheets>
<URL value="@main-maintenance-view.css" />
</stylesheets>
<top>
<HBox styleClass="title-hbox" alignment="CENTER" padding="$generalInset">
<children>
<ToggleButton contentDisplay="RIGHT" effect="$dropShadow" graphicTextGap="10.0" minHeight="40.0" minWidth="120.0" mnemonicParsing="false" onAction="#onActionSimulation" styleClass="pill-button, pill-button-left" text="SIMULATION" toggleGroup="$logToggleGroup" />
<ToggleButton contentDisplay="RIGHT" effect="$dropShadow" graphicTextGap="10.0" minHeight="40.0" minWidth="120.0" mnemonicParsing="false" onAction="#onActionFiringLog" styleClass="pill-button, pill-button-center" text="FIRING LOG" toggleGroup="$logToggleGroup" />
<ToggleButton contentDisplay="RIGHT" effect="$dropShadow" graphicTextGap="10.0" minHeight="40.0" minWidth="120.0" mnemonicParsing="false" onAction="#onActionMaintLog" styleClass="pill-button, pill-button-right" text="MAINT LOG" toggleGroup="$logToggleGroup" />
</children>
</HBox>
</top>
</fx:root>
Product Version
JavaFX Scene Builder 2.0
Build Information
Version: 2.0-b20, Changeset: 5cac093e5c1f
Date: 2014-03-21 09:29
===>>> Here is the message from SB
at com.oracle.javafx.scenebuilder.kit.fxom.FXOMLoader.load(FXOMLoader.java:92)
at com.oracle.javafx.scenebuilder.kit.fxom.FXOMDocument.<init>(FXOMDocument.java:80)
at com.oracle.javafx.scenebuilder.kit.fxom.FXOMDocument.<init>(FXOMDocument.java:95)
at com.oracle.javafx.scenebuilder.kit.editor.EditorController.updateFxomDocument(EditorController.java:2370)
at com.oracle.javafx.scenebuilder.kit.editor.EditorController.setFxmlTextAndLocation(EditorController.java:655)
at com.oracle.javafx.scenebuilder.app.DocumentWindowController.loadFromFile(DocumentWindowController.java:386)
at com.oracle.javafx.scenebuilder.app.SceneBuilderApp.performOpenFiles(SceneBuilderApp.java:579)
at com.oracle.javafx.scenebuilder.app.SceneBuilderApp.handleOpenFilesAction(SceneBuilderApp.java:447)
at com.oracle.javafx.scenebuilder.app.SceneBuilderApp.handleLaunch(SceneBuilderApp.java:427)
at com.oracle.javafx.scenebuilder.app.AppPlatform.requestStartGeneric(AppPlatform.java:139)
at com.oracle.javafx.scenebuilder.app.AppPlatform.requestStart(AppPlatform.java:106)
at com.oracle.javafx.scenebuilder.app.SceneBuilderApp.start(SceneBuilderApp.java:371)
at com.sun.javafx.application.LauncherImpl$8.run(LauncherImpl.java:837)
at com.sun.javafx.application.PlatformImpl$7.run(PlatformImpl.java:335)
at com.sun.javafx.application.PlatformImpl$6$1.run(PlatformImpl.java:301)
at com.sun.javafx.application.PlatformImpl$6$1.run(PlatformImpl.java:298)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl$6.run(PlatformImpl.java:298)
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$4$1.run(WinApplication.java:112)
at java.lang.Thread.run(Thread.java:744)
Caused by: javafx.fxml.LoadException:
/
===>>> My FXML FILE
<fx:root type="BorderPane" minHeight="200.0" minWidth="300.0" xmlns:fx="http://javafx.com/fxml">
<fx:define>
<Insets bottom="10.0" left="10.0" right="10.0" top="10.0" fx:id="generalInset" />
<Lighting fx:id="lightingEffect" />
<Color blue="0.196" green="0.196" opacity="0.500" red="0.196" fx:id="shadowColor" />
<DropShadow color="$shadowColor" offsetX="5.0" offsetY="5.0" fx:id="dropShadow" />
<Color blue="1.000" green="1.000" opacity="0.900" red="1.000" fx:id="almostWhite" />
<Color blue="0.500" green="0.500" opacity="0.900" red="0.500" fx:id="almostGray" />
<Arc fx:id="backIcon" centerX="12.0" centerY="16.0" effect="$lightingEffect" fill="$almostWhite" length="60.0" radiusX="15.0" radiusY="15.0" startAngle="150.0" stroke="$almostGray" strokeWidth="0.5" type="ROUND" />
<Arc fx:id="maintLogIcon" centerX="12.0" centerY="16.0" effect="$lightingEffect" fill="$almostWhite" length="60.0" radiusX="15.0" radiusY="15.0" startAngle="150.0" stroke="$almostGray" strokeWidth="0.5" type="ROUND" />
<Arc fx:id="firingLogIcon" centerX="12.0" centerY="16.0" effect="$lightingEffect" fill="$almostWhite" length="60.0" radiusX="15.0" radiusY="15.0" startAngle="150.0" stroke="$almostGray" strokeWidth="0.5" type="ROUND" />
<Arc fx:id="simulationIcon" centerX="12.0" centerY="16.0" effect="$lightingEffect" fill="$almostWhite" length="60.0" radiusX="15.0" radiusY="15.0" startAngle="150.0" stroke="$almostGray" strokeWidth="0.5" type="ROUND" />
<ToggleGroup fx:id="logToggleGroup" />
</fx:define>
<bottom>
<HBox alignment="BOTTOM_RIGHT" padding="$generalInset">
<children>
<Button styleClass="control-button, backbutton" contentDisplay="RIGHT" effect="$dropShadow" graphic="$backIcon" graphicTextGap="9.0" minHeight="40.0" minWidth="120.0" mnemonicParsing="false" onAction="#onActionBack" text="BACK" />
</children>
</HBox>
</bottom>
<stylesheets>
<URL value="@main-maintenance-view.css" />
</stylesheets>
<top>
<HBox styleClass="title-hbox" alignment="CENTER" padding="$generalInset">
<children>
<ToggleButton contentDisplay="RIGHT" effect="$dropShadow" graphicTextGap="10.0" minHeight="40.0" minWidth="120.0" mnemonicParsing="false" onAction="#onActionSimulation" styleClass="pill-button, pill-button-left" text="SIMULATION" toggleGroup="$logToggleGroup" />
<ToggleButton contentDisplay="RIGHT" effect="$dropShadow" graphicTextGap="10.0" minHeight="40.0" minWidth="120.0" mnemonicParsing="false" onAction="#onActionFiringLog" styleClass="pill-button, pill-button-center" text="FIRING LOG" toggleGroup="$logToggleGroup" />
<ToggleButton contentDisplay="RIGHT" effect="$dropShadow" graphicTextGap="10.0" minHeight="40.0" minWidth="120.0" mnemonicParsing="false" onAction="#onActionMaintLog" styleClass="pill-button, pill-button-right" text="MAINT LOG" toggleGroup="$logToggleGroup" />
</children>
</HBox>
</top>
</fx:root>
- relates to
-
JDK-8096752 SceneBuilder does not open FXML with fx:script
- Resolved