[Bug 271] New: JavaFX sample no longer runs with javaws, runs fine with java

bugzilla-daemon at icedtea.classpath.org bugzilla-daemon at icedtea.classpath.org
Thu Dec 4 21:37:40 PST 2008


http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=271

           Summary: JavaFX sample no longer runs with javaws, runs fine with
                    java
           Product: IcedTea
           Version: unspecified
          Platform: PC
               URL: http://javafx.com/samples/SwirlingSquares
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: IcedTea
        AssignedTo: unassigned at icedtea.classpath.org
        ReportedBy: naveed at cs.columbia.edu


Swirling Squares, a Sun provided JavaFX sample with a Web Start launcher used
to work fine with the IcedTea javaws implementation. With the JavaFX 1.0
release, the same example fails to launch via Web Start but works fine with the
same set of jars using the plain command line IcedTea java.


$ java -version
java version "1.6.0_0"
IcedTea6 1.4 (6b12-Fedora-10) Runtime Environment (build 1.6.0_0-b12)
OpenJDK 64-Bit Server VM (build 10.0-b19, mixed mode)


$ javaws
http://javafx.com/samples/SwirlingSquares/webstart/SwirlingSquares.jnlp
java.io.IOException: /tmp/cache/http/dl.javafx.com/Decora.jnlp (No such file or
directory)
        at net.sourceforge.jnlp.JNLPFile.openURL(JNLPFile.java:193)
        at net.sourceforge.jnlp.JNLPFile.<init>(JNLPFile.java:148)
        at
net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:236)
        at
net.sourceforge.jnlp.runtime.JNLPClassLoader.initializeExtensions(JNLPClassLoader.java:254)
        at
net.sourceforge.jnlp.runtime.JNLPClassLoader.<init>(JNLPClassLoader.java:152)
        at
net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:214)
        at
net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:236)
        at
net.sourceforge.jnlp.runtime.JNLPClassLoader.initializeExtensions(JNLPClassLoader.java:254)
        at
net.sourceforge.jnlp.runtime.JNLPClassLoader.<init>(JNLPClassLoader.java:152)
        at
net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:214)
        at net.sourceforge.jnlp.Launcher.createApplication(Launcher.java:509)
        at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:334)
        at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:600)
java.io.IOException: /tmp/cache/http/dl.javafx.com/jmc.jnlp (No such file or
directory)
        at net.sourceforge.jnlp.JNLPFile.openURL(JNLPFile.java:193)
        at net.sourceforge.jnlp.JNLPFile.<init>(JNLPFile.java:148)
        at
net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:236)
        at
net.sourceforge.jnlp.runtime.JNLPClassLoader.initializeExtensions(JNLPClassLoader.java:254)
        at
net.sourceforge.jnlp.runtime.JNLPClassLoader.<init>(JNLPClassLoader.java:152)
        at
net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:214)
        at
net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:236)
        at
net.sourceforge.jnlp.runtime.JNLPClassLoader.initializeExtensions(JNLPClassLoader.java:254)
        at
net.sourceforge.jnlp.runtime.JNLPClassLoader.<init>(JNLPClassLoader.java:152)
        at
net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:214)
        at net.sourceforge.jnlp.Launcher.createApplication(Launcher.java:509)
        at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:334)
        at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:600)
java.lang.ExceptionInInitializerError
        at com.sun.embeddedswing.SwingGlueLayer.<init>(Unknown Source)
        at com.sun.embeddedswing.SwingGlueLayer.getSwingGlueLayer(Unknown
Source)
        at com.sun.embeddedswing.SwingGlueLayer.getContextMap(Unknown Source)
        at com.sun.scenario.Settings.getInstance(Unknown Source)
        at com.sun.scenario.Settings.getBoolean(Unknown Source)
        at com.sun.scenario.animation.AbstractMasterTimer.<clinit>(Unknown
Source)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:186)
        at com.sun.scenario.Settings.<clinit>(Unknown Source)
        at com.sun.scenario.scenegraph.SGLeaf.<clinit>(Unknown Source)
        at javafx.scene.shape.Rectangle.impl_createSGNode$impl(Unknown Source)
        at javafx.scene.shape.Rectangle.impl_createSGNode(Unknown Source)
        at javafx.scene.Node.impl_getFXNode$impl(Unknown Source)
        at javafx.scene.Node.impl_getFXNode(Unknown Source)
        at javafx.scene.Node.impl_getSGNode$impl(Unknown Source)
        at javafx.scene.Node.impl_getSGNode(Unknown Source)
        at javafx.scene.Node$3.onChange(Unknown Source)
        at javafx.scene.Node$3.onChange(Unknown Source)
        at com.sun.javafx.runtime.location.ObjectVariable$2.action(Unknown
Source)
        at com.sun.javafx.runtime.location.ObjectVariable$2.action(Unknown
Source)
        at com.sun.javafx.runtime.util.AbstractLinkable.iterate(Unknown Source)
        at
com.sun.javafx.runtime.location.ObjectVariable.notifyListeners(Unknown Source)
        at com.sun.javafx.runtime.location.ObjectVariable.replaceValue(Unknown
Source)
        at com.sun.javafx.runtime.location.ObjectVariable.set(Unknown Source)
        at javafx.scene.Node.applyDefaults$id(Unknown Source)
        at javafx.scene.shape.Rectangle.initialize$(Unknown Source)
        at swirlingsquares.Main.javafx$run$(Main.fx:25)
Caused by: java.lang.NullPointerException
        at
net.sourceforge.jnlp.runtime.JNLPClassLoader.loadClass(JNLPClassLoader.java:695)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:186)
        at
com.sun.embeddedswing.SwingGlueLayer$RepaintManagerRegister.<clinit>(Unknown
Source)
        at com.sun.embeddedswing.SwingGlueLayer.<init>(Unknown Source)
        at com.sun.embeddedswing.SwingGlueLayer.getSwingGlueLayer(Unknown
Source)
        at com.sun.embeddedswing.SwingGlueLayer.getContextMap(Unknown Source)
        at com.sun.scenario.Settings.getInstance(Unknown Source)
        at com.sun.scenario.Settings.getBoolean(Unknown Source)
        at com.sun.scenario.animation.AbstractMasterTimer.<clinit>(Unknown
Source)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:186)
        at com.sun.scenario.Settings.<clinit>(Unknown Source)
        at com.sun.scenario.scenegraph.SGLeaf.<clinit>(Unknown Source)
        at javafx.scene.shape.Rectangle.impl_createSGNode$impl(Unknown Source)
        at javafx.scene.shape.Rectangle.impl_createSGNode(Unknown Source)
        at javafx.scene.Node.impl_getFXNode$impl(Unknown Source)
        at javafx.scene.Node.impl_getFXNode(Unknown Source)
        at javafx.scene.Node.impl_getSGNode$impl(Unknown Source)
        at javafx.scene.Node.impl_getSGNode(Unknown Source)
        at javafx.scene.Node$3.onChange(Unknown Source)
        at javafx.scene.Node$3.onChange(Unknown Source)
        at com.sun.javafx.runtime.location.ObjectVariable$2.action(Unknown
Source)
        at com.sun.javafx.runtime.location.ObjectVariable$2.action(Unknown
Source)
        at com.sun.javafx.runtime.util.AbstractLinkable.iterate(Unknown Source)
        at
com.sun.javafx.runtime.location.ObjectVariable.notifyListeners(Unknown Source)
        at com.sun.javafx.runtime.location.ObjectVariable.replaceValue(Unknown
Source)
        at com.sun.javafx.runtime.location.ObjectVariable.set(Unknown Source)
        at javafx.scene.Node.applyDefaults$id(Unknown Source)
        at javafx.scene.shape.Rectangle.initialize$(Unknown Source)
        at swirlingsquares.Main.javafx$run$(Main.fx:25)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at
com.sun.javafx.runtime.provider.AWT_EDT_RuntimeProvider$1.run(Unknown Source)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:226)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:602)
        at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
        at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
        at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
        at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
        at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)
[hangs with nothing more happening]


$ java -cp
/tmp/cache/http/dl.javafx.com/javafx-rt__V1.0.0.jar:/tmp/cache/http/www.javafx.com/samples/SwirlingSquares/webstart/SwirlingSquares.jar
swirlingsquares.Main
[window appears with "swirling squares"]


There are clearly some missing resources on the Sun site that should be
downloaded by javaws with javafx-rt__V1.0.0.jar, but that does not appear to be
preventing the program launch, as far as I can tell. It just hangs with the
current IcedTea javaws whereas when run directly, the demo works as it did in
the JavaFX preview SDK sample days.

None of the demos at http://javafx.com/samples appear to be launching correctly
with IcedTea Web Start, even the ones that almost certainly don't need platform
specific support from JavaFX. Another one that I tried and failed to launch
with the jnlp method was Brick Breaker - again successfully playing a game when
run directly with java.


-- 
Configure bugmail: http://icedtea.classpath.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the distro-pkg-dev mailing list