JavaFX 1.0 released

Does anyone else get the following when navigating away from or refreshing this page?

JNLP JREDesc in Component ignored: http://dl.javafx.com/javafx-rt.jnlp
05-Dec-2008 03:03:00 javafx.io.http.impl.desktop.DesktopProfile$1 uncaughtException
SEVERE: Uncaught throwable in request io pool
java.lang.IllegalMonitorStateException
	at java.util.concurrent.locks.ReentrantLock$Sync.tryRelease(Unknown Source)
	at java.util.concurrent.locks.AbstractQueuedSynchronizer.release(Unknown Source)
	at java.util.concurrent.locks.ReentrantLock.unlock(Unknown Source)
	at java.util.concurrent.LinkedBlockingQueue.take(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Loading image metadata...

Doesn’t seem to cause any problems, but doesn’t seem to be very normal exit behaviour either :-\

The security warnings are required because:
a) all of the examples reference the javafx-runtime
b) the runtime by default includes Decora(?) which has an SSE dll
c) the runtime by default includes jogl (!)
d) the runtime uses jmc.dll, msvcp71.dll, msvcr71.dll, jawt.dll(?)

So do the following: CUT DOWN THE RUNTIME - no one needs that much dependencies for all fx applications.

by the way - 30 seconds for a refresh of page, until applet is running ?

I’ve downloaded the SDK too, while the examples look very nice, I too had the problem that it took up to 2 minutes(!) until they showed something, in the console it displayed loading & validating the resource jars… Now i noticed it happens only the very first time that you try to load an fx applet. It would be nice if it at least displayed something in the applet (what it is exactly doing / progress)

Not too of a good start it seems.
But I believe one these problems are fixed, then it should be nice to use.

Yes, this is known. Will be fixed for next release.

Dmitri

Decora is the effects framework. It actually was supposed to pull a D3D dll (a backend which works with the Java2D d3d pipeline) but something got botched during the production staging and it can’t find it so it uses SSE which is the backup.

The issues with c++ runtime will hopefully be resolved as well so that we won’t need to package it (at least, the C runtime - it’s already packaged with the jre). jawt.dll is part of the jre.

Yep. Some of this will be addressed. One of the issues was that on demand install wasn’t working well, so the whole shabang is downloaded for now.

I think some of this is because of known bugs - the jar and dll caching doesn’t work well, so it has to go check every time (and even download the dlls, I believe). Again, known and will be fixed.

Dmitri

This may be just remnants from the VM teardown.

Dmitri

When’re the patches coming? Extra super dead soon I hope! Like next week…?

Cas :slight_smile:

I had to press two trust buttons and one accept button. :-\

Then some geeky guy started talking to me and I lost interest.

Looks like the jmc lib (or the on decoder lib) didn’t get loaded properly. What’s the OS/browser?

Could you try clearing the cache and re-running it?

I know what you mean. It’ll be fixed for the next release.

Dmitri

"It’ll be fixed for the next release. " - lets hope that was the last release of it’s type.

I agree with you. If we want to beat Flash and Silverlight, we will need a more reliable product.

Yes but when’s the next release? You’ve got to fix this stuff before anyone notices and get it out there on Monday!

Cas :slight_smile:

And while your moving mountains please get u12 out the door. I’d hate for the “no 64bit plug-in” bug to turn six years old before it’s retired.

http://www.javafx.com/samples/DraggableMP3Player/

MSIE 7.0
Java 6.0u10

Longest nested Exception I’ve ever seen:


Exception in thread "AWT-EventQueue-5" java.lang.Error: Couldn't launch FX Stage draggablemp3player.Main
	at com.sun.javafx.runtime.adapter.Applet.launchStage(Unknown Source)
	at com.sun.javafx.runtime.adapter.Applet$1.lambda(Unknown Source)
	at com.sun.javafx.runtime.adapter.Applet$1.invoke(Unknown Source)
	at com.sun.javafx.runtime.adapter.Applet$1.invoke(Unknown Source)
	at com.sun.javafx.runtime.Entry$2.run(Unknown Source)
	at java.awt.event.InvocationEvent.dispatch(Unknown Source)
	at java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.NoClassDefFoundError: javafx/scene/media/MediaPlayer$_MediaStateListener$Intf
	at javafx.scene.media.MediaPlayer.addTriggers$(Unknown Source)
	at javafx.scene.media.MediaPlayer.initialize$(Unknown Source)
	at draggablemp3player.Main.javafx$run$(Main.fx:98)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	... 13 more
Caused by: java.lang.ClassNotFoundException: javafx.scene.media.MediaPlayer$_MediaStateListener$Intf
	at sun.plugin2.applet.Plugin2ClassLoader$3.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Unknown Source)
	at sun.plugin2.applet.JNLP2ClassLoader.findClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClassInternal(Unknown Source)
	... 20 more
Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
	at sun.plugin2.applet.Plugin2ClassLoader.defineClassHelper(Unknown Source)
	at sun.plugin2.applet.Plugin2ClassLoader.access$100(Unknown Source)
	... 27 more
Caused by: java.lang.reflect.InvocationTargetException
	at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	... 29 more
Caused by: java.lang.NoClassDefFoundError: com/sun/media/jmc/event/MediaStateListener
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(Unknown Source)
	at java.security.SecureClassLoader.defineClass(Unknown Source)
	at java.net.URLClassLoader.defineClass(Unknown Source)
	... 32 more
Caused by: java.lang.ClassNotFoundException: com.sun.media.jmc.event.MediaStateListener
	at sun.plugin2.applet.Plugin2ClassLoader$3.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Unknown Source)
	at sun.plugin2.applet.JNLP2ClassLoader.findClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClassInternal(Unknown Source)
	... 36 more


Seriously, after about 20 minutes the applet suddenly started playing a MP3 file.

Dragging the applet ‘out of the browser’ truely messed it up. It was rapidly moving all over the screen (even when I stopped dragging). The further I dragged it, the bigger the distance it jumped around. Then it crashed. It didn’t respond to any input, no exceptions, had to kill the process.

If anybody implements anything related to dragging a window across the screen, PLEASE use absolute mouse coordinates (screen coords). Using component coordinates will never ever work reliably.

If I were in charge here right now… I’d pull javafx1.0 and fix everything.

Cas :slight_smile:

You may just get your wish.

Dmitri

i hope no one of the silverlight/flex/flash camp does a side by side comparison to javafx like javafx does it with javascript in the prime numbers sample and features it on their own webside.

i think i found a usability bug in almost every demo i tried.

There is no JavaFX SDK for Linux and I cannot use the SDK for Mac under Linux (that was what I did with the preview version). When will a JavaFX SDK be available under Solaris and Linux?

Edit: there is a kind of solution like the previous one I used:
http://www.weiqigao.com/blog/2008/12/04/using_javafx_1_0_on_linux.html