deanriverson/griffon-javafx-archetype — Issue #1: Text node's font property causes an exception in webstart mode
Author: Ilean
Created: 2012-01-17 17:22:40+00:00
State: open

Windows XP SP3
Java 1.6.0_29-b11
Griffon 0.9.4
JavaFX 2.0.2

The following exception results from using the font property of the text node when the application is run in webstart mode:

java.lang.IllegalArgumentException: URL argument to Stylesheet constructor may not be null
(full trace below)

You can work around this error by specifying a new instance of javafx.scene.text.Font instead of the shortcut String version ('bold 30pt').

Full trace:

java.lang.IllegalArgumentException: URL argument to Stylesheet constructor may not be null
at com.sun.javafx.css.Stylesheet.(Unknown Source)
at com.sun.javafx.css.parser.CSSParser.parse(Unknown Source)
at com.sun.javafx.css.parser.CSSParser.parse(Unknown Source)
at com.sun.javafx.css.parser.CSSParser$parse.call(Unknown Source)
at groovyx.javafx.factory.FontFactory.getFont(FontFactory.groovy:85)
at groovyx.javafx.factory.FontFactory$getFont.callStatic(Unknown Source)
at groovyx.javafx.factory.FontFactory.get(FontFactory.groovy:34)
at groovyx.javafx.factory.FontFactory$get.call(Unknown Source)
at groovyx.javafx.factory.FXHelper$__clinit__closure6.doCall(FXHelper.groovy:125)
at groovyx.javafx.factory.FXHelper$__clinit__closure6.call(FXHelper.groovy)
at groovyx.javafx.factory.FXHelper.fxAttribute(FXHelper.groovy:390)
at groovyx.javafx.factory.FXHelper$fxAttribute.callStatic(Unknown Source)
at groovyx.javafx.factory.FXHelper.fxAttributes(FXHelper.groovy:438)
at groovyx.javafx.factory.FXHelper$fxAttributes.call(Unknown Source)
at groovyx.javafx.factory.FXHelper$fxAttributes.call(Unknown Source)
at groovyx.javafx.factory.NodeFactory$__clinit__closure1.doCall(NodeFactory.groovy:123)
at org.codehaus.griffon.runtime.builder.UberInterceptorMetaClass.invokeFactoryMethod(UberInterceptorMetaClass.groovy:96)
at org.codehaus.griffon.runtime.builder.UberInterceptorMetaClass.this$3$invokeFactoryMethod(UberInterceptorMetaClass.groovy)
at org.codehaus.griffon.runtime.builder.UberInterceptorMetaClass$this$3$invokeFactoryMethod.callCurrent(Unknown Source)
at org.codehaus.griffon.runtime.builder.UberInterceptorMetaClass.invokeMethod(UberInterceptorMetaClass.groovy:140)
at jfxtestnb.JfxtestnbView$_run_closure1_closure2.doCall(JfxtestnbView.groovy:25)
at jfxtestnb.JfxtestnbView$_run_closure1_closure2.doCall(JfxtestnbView.groovy)
at org.codehaus.griffon.runtime.builder.UberInterceptorMetaClass.invokeFactoryMethod(UberInterceptorMetaClass.groovy:96)
at org.codehaus.griffon.runtime.builder.UberInterceptorMetaClass.this$3$invokeFactoryMethod(UberInterceptorMetaClass.groovy)
at org.codehaus.griffon.runtime.builder.UberInterceptorMetaClass$this$3$invokeFactoryMethod.callCurrent(Unknown Source)
at org.codehaus.griffon.runtime.builder.UberInterceptorMetaClass.invokeMethod(UberInterceptorMetaClass.groovy:140)
at jfxtestnb.JfxtestnbView$_run_closure1.doCall(JfxtestnbView.groovy:24)
at jfxtestnb.JfxtestnbView$_run_closure1.doCall(JfxtestnbView.groovy)
at org.codehaus.griffon.runtime.builder.UberInterceptorMetaClass.invokeFactoryMethod(UberInterceptorMetaClass.groovy:96)
at org.codehaus.griffon.runtime.builder.UberInterceptorMetaClass.this$3$invokeFactoryMethod(UberInterceptorMetaClass.groovy)
at org.codehaus.griffon.runtime.builder.UberInterceptorMetaClass$this$3$invokeFactoryMethod.callCurrent(Unknown Source)
at org.codehaus.griffon.runtime.builder.UberInterceptorMetaClass.invokeMethod(UberInterceptorMetaClass.groovy:167)
at jfxtestnb.JfxtestnbView.run(JfxtestnbView.groovy:23)
at org.codehaus.griffon.runtime.builder.UberInterceptorMetaClass.invokeMethod(UberInterceptorMetaClass.groovy:151)
at org.codehaus.griffon.runtime.builder.UberBuilder.build(UberBuilder.groovy:155)
at org.codehaus.griffon.runtime.builder.UberBuilder$build.call(Unknown Source)
at org.codehaus.griffon.runtime.core.DefaultMVCGroupManager$_buildMVCGroup_closure6_closure8.doCall(DefaultMVCGroupManager.groovy:154)
at org.codehaus.griffon.runtime.core.DefaultMVCGroupManager$_buildMVCGroup_closure6_closure8.doCall(DefaultMVCGroupManager.groovy)
at java_lang_Runnable$run.call(Unknown Source)
at griffon.javafx.JavaFXUIThreadHandler.executeSync(JavaFXUIThreadHandler.groovy:51)
at griffon.core.UIThreadManager.executeSync(UIThreadManager.java:140)
at griffon.core.UIThreadManager$executeSync$0.call(Unknown Source)
at org.codehaus.griffon.runtime.core.DefaultMVCGroupManager$_buildMVCGroup_closure6.doCall(DefaultMVCGroupManager.groovy:154)
at org.codehaus.griffon.runtime.core.DefaultMVCGroupManager.buildMVCGroup(DefaultMVCGroupManager.groovy:150)
at org.codehaus.griffon.runtime.core.AbstractMVCGroupManager.createMVCGroup(AbstractMVCGroupManager.java:212)
at org.codehaus.griffon.runtime.core.AbstractMVCGroupManager.createMVCGroup(AbstractMVCGroupManager.java:160)
at org.codehaus.griffon.runtime.core.AbstractGriffonApplication.createMVCGroup(AbstractGriffonApplication.java:452)
at org.codehaus.griffon.runtime.core.AbstractGriffonApplication.startup(AbstractGriffonApplication.java:308)
at griffon.core.GriffonApplication$startup.call(Unknown Source)
at griffon.javafx.JavaFXApplication.start(JavaFXApplication.groovy:62)
at com.sun.javafx.application.LauncherImpl$5.run(Unknown Source)
at com.sun.javafx.application.PlatformImpl$4.run(Unknown Source)
at com.sun.javafx.application.PlatformImpl$3.run(Unknown Source)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.access$100(Unknown Source)
at com.sun.glass.ui.win.WinApplication$2$1.run(Unknown Source)