-
Bug
-
Resolution: Duplicate
-
P3
-
8
-
None
Open attached Sample.fxml
Select the root container - bug - following exception is thrown. The missing Style sheet is not handled - we should show a warning in the message bar as we do in 1.1
—————————
Exception in thread "JavaFX Application Thread" java.lang.RuntimeException: Invalid Stylesheet file:/Users/mochich/Desktop/sample.css
at com.oracle.javafx.scenebuilder.kit.util.CssInternal.getStyleClasses(CssInternal.java:179)
at com.oracle.javafx.scenebuilder.kit.util.CssInternal.getSingleFxObjectClasses(CssInternal.java:164)
at com.oracle.javafx.scenebuilder.kit.util.CssInternal.getFxObjectClasses(CssInternal.java:137)
at com.oracle.javafx.scenebuilder.kit.util.CssInternal.getStyleClasses(CssInternal.java:124)
at com.oracle.javafx.scenebuilder.kit.editor.panel.inspector.editors.StyleClassEditor.getNewStyleClassItem(StyleClassEditor.java:80)
at com.oracle.javafx.scenebuilder.kit.editor.panel.inspector.editors.StyleClassEditor.<init>(StyleClassEditor.java:75)
at com.oracle.javafx.scenebuilder.kit.editor.panel.inspector.InspectorPanelController.makeOrResetPropertyEditor(InspectorPanelController.java:1635)
at com.oracle.javafx.scenebuilder.kit.editor.panel.inspector.InspectorPanelController.makePropertyEditor(InspectorPanelController.java:1553)
at com.oracle.javafx.scenebuilder.kit.editor.panel.inspector.InspectorPanelController.getPropertyEditor(InspectorPanelController.java:1286)
at com.oracle.javafx.scenebuilder.kit.editor.panel.inspector.InspectorPanelController.getInitializedPropertyEditor(InspectorPanelController.java:727)
at com.oracle.javafx.scenebuilder.kit.editor.panel.inspector.InspectorPanelController.buildSection(InspectorPanelController.java:707)
at com.oracle.javafx.scenebuilder.kit.editor.panel.inspector.InspectorPanelController.buildExpandedSection(InspectorPanelController.java:628)
at com.oracle.javafx.scenebuilder.kit.editor.panel.inspector.InspectorPanelController.rebuild(InspectorPanelController.java:591)
at com.oracle.javafx.scenebuilder.kit.editor.panel.inspector.InspectorPanelController.updateInspector(InspectorPanelController.java:545)
at com.oracle.javafx.scenebuilder.kit.editor.panel.inspector.InspectorPanelController.editorSelectionDidChange(InspectorPanelController.java:460)
at com.oracle.javafx.scenebuilder.kit.editor.panel.util.AbstractPanelController$4.changed(AbstractPanelController.java:195)
at com.oracle.javafx.scenebuilder.kit.editor.panel.util.AbstractPanelController$4.changed(AbstractPanelController.java:192)
at com.sun.javafx.binding.ExpressionHelper$Generic.fireValueChangedEvent(ExpressionHelper.java:347)
at com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:80)
at javafx.beans.property.IntegerPropertyBase.fireValueChangedEvent(IntegerPropertyBase.java:106)
at javafx.beans.property.IntegerPropertyBase.markInvalid(IntegerPropertyBase.java:113)
at javafx.beans.property.IntegerPropertyBase.set(IntegerPropertyBase.java:146)
at com.oracle.javafx.scenebuilder.kit.editor.selection.Selection.incrementRevision(Selection.java:487)
at com.oracle.javafx.scenebuilder.kit.editor.selection.Selection.endUpdate(Selection.java:455)
at com.oracle.javafx.scenebuilder.kit.editor.selection.Selection.select(Selection.java:371)
at com.oracle.javafx.scenebuilder.kit.editor.selection.Selection.select(Selection.java:104)
at com.oracle.javafx.scenebuilder.kit.editor.selection.Selection.select(Selection.java:90)
at com.oracle.javafx.scenebuilder.kit.editor.panel.content.gesture.mouse.SelectWithMarqueeGesture.mouseReleased(SelectWithMarqueeGesture.java:110)
at com.oracle.javafx.scenebuilder.kit.editor.panel.content.gesture.mouse.AbstractMouseGesture$2.handle(AbstractMouseGesture.java:128)
at com.oracle.javafx.scenebuilder.kit.editor.panel.content.gesture.mouse.AbstractMouseGesture$2.handle(AbstractMouseGesture.java:120)
at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86)
at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)
at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54)
at javafx.event.Event.fireEvent(Event.java:204)
at javafx.scene.Scene$MouseHandler.process(Scene.java:3689)
at javafx.scene.Scene$MouseHandler.access$1800(Scene.java:3414)
at javafx.scene.Scene.impl_processMouseEvent(Scene.java:1676)
at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2467)
at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:314)
at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:243)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:345)
at com.sun.glass.ui.View.handleMouseEvent(View.java:526)
at com.sun.glass.ui.View.notifyMouse(View.java:898)
Caused by: java.io.FileNotFoundException: /Users/mochich/Desktop/sample.css (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:131)
at java.io.FileInputStream.<init>(FileInputStream.java:87)
at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90)
at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188)
at java.net.URL.openStream(URL.java:1038)
at com.sun.javafx.css.parser.CSSParser.parse(CSSParser.java:245)
at com.oracle.javafx.scenebuilder.kit.util.CssInternal.getStyleClasses(CssInternal.java:177)
... 60 more
Select the root container - bug - following exception is thrown. The missing Style sheet is not handled - we should show a warning in the message bar as we do in 1.1
—————————
Exception in thread "JavaFX Application Thread" java.lang.RuntimeException: Invalid Stylesheet file:/Users/mochich/Desktop/sample.css
at com.oracle.javafx.scenebuilder.kit.util.CssInternal.getStyleClasses(CssInternal.java:179)
at com.oracle.javafx.scenebuilder.kit.util.CssInternal.getSingleFxObjectClasses(CssInternal.java:164)
at com.oracle.javafx.scenebuilder.kit.util.CssInternal.getFxObjectClasses(CssInternal.java:137)
at com.oracle.javafx.scenebuilder.kit.util.CssInternal.getStyleClasses(CssInternal.java:124)
at com.oracle.javafx.scenebuilder.kit.editor.panel.inspector.editors.StyleClassEditor.getNewStyleClassItem(StyleClassEditor.java:80)
at com.oracle.javafx.scenebuilder.kit.editor.panel.inspector.editors.StyleClassEditor.<init>(StyleClassEditor.java:75)
at com.oracle.javafx.scenebuilder.kit.editor.panel.inspector.InspectorPanelController.makeOrResetPropertyEditor(InspectorPanelController.java:1635)
at com.oracle.javafx.scenebuilder.kit.editor.panel.inspector.InspectorPanelController.makePropertyEditor(InspectorPanelController.java:1553)
at com.oracle.javafx.scenebuilder.kit.editor.panel.inspector.InspectorPanelController.getPropertyEditor(InspectorPanelController.java:1286)
at com.oracle.javafx.scenebuilder.kit.editor.panel.inspector.InspectorPanelController.getInitializedPropertyEditor(InspectorPanelController.java:727)
at com.oracle.javafx.scenebuilder.kit.editor.panel.inspector.InspectorPanelController.buildSection(InspectorPanelController.java:707)
at com.oracle.javafx.scenebuilder.kit.editor.panel.inspector.InspectorPanelController.buildExpandedSection(InspectorPanelController.java:628)
at com.oracle.javafx.scenebuilder.kit.editor.panel.inspector.InspectorPanelController.rebuild(InspectorPanelController.java:591)
at com.oracle.javafx.scenebuilder.kit.editor.panel.inspector.InspectorPanelController.updateInspector(InspectorPanelController.java:545)
at com.oracle.javafx.scenebuilder.kit.editor.panel.inspector.InspectorPanelController.editorSelectionDidChange(InspectorPanelController.java:460)
at com.oracle.javafx.scenebuilder.kit.editor.panel.util.AbstractPanelController$4.changed(AbstractPanelController.java:195)
at com.oracle.javafx.scenebuilder.kit.editor.panel.util.AbstractPanelController$4.changed(AbstractPanelController.java:192)
at com.sun.javafx.binding.ExpressionHelper$Generic.fireValueChangedEvent(ExpressionHelper.java:347)
at com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:80)
at javafx.beans.property.IntegerPropertyBase.fireValueChangedEvent(IntegerPropertyBase.java:106)
at javafx.beans.property.IntegerPropertyBase.markInvalid(IntegerPropertyBase.java:113)
at javafx.beans.property.IntegerPropertyBase.set(IntegerPropertyBase.java:146)
at com.oracle.javafx.scenebuilder.kit.editor.selection.Selection.incrementRevision(Selection.java:487)
at com.oracle.javafx.scenebuilder.kit.editor.selection.Selection.endUpdate(Selection.java:455)
at com.oracle.javafx.scenebuilder.kit.editor.selection.Selection.select(Selection.java:371)
at com.oracle.javafx.scenebuilder.kit.editor.selection.Selection.select(Selection.java:104)
at com.oracle.javafx.scenebuilder.kit.editor.selection.Selection.select(Selection.java:90)
at com.oracle.javafx.scenebuilder.kit.editor.panel.content.gesture.mouse.SelectWithMarqueeGesture.mouseReleased(SelectWithMarqueeGesture.java:110)
at com.oracle.javafx.scenebuilder.kit.editor.panel.content.gesture.mouse.AbstractMouseGesture$2.handle(AbstractMouseGesture.java:128)
at com.oracle.javafx.scenebuilder.kit.editor.panel.content.gesture.mouse.AbstractMouseGesture$2.handle(AbstractMouseGesture.java:120)
at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86)
at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)
at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54)
at javafx.event.Event.fireEvent(Event.java:204)
at javafx.scene.Scene$MouseHandler.process(Scene.java:3689)
at javafx.scene.Scene$MouseHandler.access$1800(Scene.java:3414)
at javafx.scene.Scene.impl_processMouseEvent(Scene.java:1676)
at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2467)
at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:314)
at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:243)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:345)
at com.sun.glass.ui.View.handleMouseEvent(View.java:526)
at com.sun.glass.ui.View.notifyMouse(View.java:898)
Caused by: java.io.FileNotFoundException: /Users/mochich/Desktop/sample.css (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:131)
at java.io.FileInputStream.<init>(FileInputStream.java:87)
at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90)
at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188)
at java.net.URL.openStream(URL.java:1038)
at com.sun.javafx.css.parser.CSSParser.parse(CSSParser.java:245)
at com.oracle.javafx.scenebuilder.kit.util.CssInternal.getStyleClasses(CssInternal.java:177)
... 60 more