IcedTea6 Mozilla plugin with OpenJDK6

Jung-uk Kim jkim at FreeBSD.org
Fri Sep 10 21:47:07 UTC 2010


On Friday 10 September 2010 04:46 pm, Ivan Voras wrote:
> On 10 September 2010 20:46, Jung-uk Kim <jkim at freebsd.org> wrote:
> > On Friday 10 September 2010 07:56 am, Ivan Voras wrote:
> >> On 09/10/10 00:04, Jung-uk Kim wrote:
> >> > On Thursday 09 September 2010 05:42 pm, Jung-uk Kim wrote:
> >> >> Finally, we have the hybrid and you can see some (updated)
> >> >> screenshots from here:
> >> >>
> >> >> http://people.freebsd.org/~jkim/icedtea/screenshots/
> >> >>
> >> >> The experimental ports tarball is available from here:
> >> >>
> >> >> http://people.freebsd.org/~jkim/icedtea/openjdk6-icedteanp.ta
> >> >>r.b z2
> >> >>
> >> >> Note the plugin is turned off by default because it is an
> >> >> experimental and unofficial software from
> >> >> icedtea.classpath.org. To enable it, run "make config" and
> >> >> select "WEB" option. Re-build, re-install, and enjoy!
> >> >
> >> > And, don't forget "ln -s
> >> > /usr/local/openjdk6/jre/lib/IcedTeaPlugin.so
> >> > ~/.mozilla/plugins/".  Just making sure. :-)
> >>
> >> Hmmm, it doesn't work for me.
> >>
> >> The port builds and installs, and it's even recognized
> >> (apparently correctly) in about:plugins, but attempts to view
> >> the page at http://www.java.com/en/download/help/testvm.xml
> >> result in the java and the browser hanging, eating CPU cycles as
> >> if looping:
> >>
> >>    PID USERNAME    THR PRI NICE   SIZE    RES STATE   C   TIME
> >> WCPU COMMAND
> >> 49282 ivoras       25  76    0  1018M   103M ucond   3   0:02
> >> 249.37% java 49275 ivoras       18  61    0   314M   180M piperd
> >>  1 0:26 184.13% firefox-bin
> >>
> >> This is 8-STABLE, amd64, Firefox 3.6.3
> >
> > --- >8 --- SNIP!!! --- >8 ---
> >
> > Can you please update all of your ports and re-test?  Especially,
> > libxul and Firefox versions are very important.
>
> It didn't work.
>
> I've updated nspr, firefox and libxul before reinstalling your
> openjdk port, and now it breaks a little differently:

All applets or some applets?  Can you test some trivial applets?
Something like the following:

file:///usr/local/openjdk6/demo/jfc/SwingApplet/SwingApplet.html

> (process:82994): Gtk-WARNING **: Locale not supported by C library.
> 	Using the fallback 'C' locale.
> *** NSPlugin Viewer  *** WARNING: unhandled variable 18 (<unknown
> variable>) in NPN_GetValue()

Although it is a different problem, I know what it is. :-)

Please try www/nspluginwrapper-devel instead of www/nspluginwrapper:

http://www.freebsd.org/cgi/cvsweb.cgi/ports/www/nspluginwrapper-devel/

> openjdk version "1.6.0"
> OpenJDK Runtime Environment (build 1.6.0-b20)
> OpenJDK 64-Bit Server VM (build 17.0-b16, mixed mode)
> net.sourceforge.jnlp.LaunchException: Fatal: Initialization Error:
> Could not initialize applet.
> 	at net.sourceforge.jnlp.Launcher.createApplet(Launcher.java:604)
> 	at net.sourceforge.jnlp.Launcher.getApplet(Launcher.java:548)
> 	at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:729)
> Caused by: java.lang.NullPointerException
> 	at net.sourceforge.jnlp.Launcher.createApplet(Launcher.java:588)
> 	... 2 more
> Caused by:
> java.lang.NullPointerException
> 	at net.sourceforge.jnlp.Launcher.createApplet(Launcher.java:588)
> 	at net.sourceforge.jnlp.Launcher.getApplet(Launcher.java:548)
> 	at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:729)
> java.lang.NullPointerException
> 	at net.sourceforge.jnlp.NetxPanel.runLoader(NetxPanel.java:99)
> 	at sun.applet.AppletPanel.run(AppletPanel.java:380)
> 	at java.lang.Thread.run(Thread.java:636)
> java.lang.NullPointerException
> 	at sun.applet.AppletPanel.run(AppletPanel.java:430)
> 	at java.lang.Thread.run(Thread.java:636)
> *** NSPlugin Viewer  *** WARNING: unhandled variable 18 (<unknown
> variable>) in NPN_GetValue()
> *** NSPlugin Viewer  *** WARNING: unhandled variable 18 (<unknown
> variable>) in NPN_GetValue()
> *** NSPlugin Viewer  *** WARNING: unhandled variable 18 (<unknown
> variable>) in NPN_GetValue()
> *** NSPlugin Viewer  *** WARNING: unhandled variable 18 (<unknown
> variable>) in NPN_GetValue()
> *** NSPlugin Viewer  *** WARNING: unhandled variable 18 (<unknown
> variable>) in NPN_GetValue()
> java.lang.Exception: Applet initialization timeout
> 	at
> sun.applet.PluginAppletViewer.handleMessage(PluginAppletViewer.java
>:637) at
> sun.applet.PluginStreamHandler.handleMessage(PluginStreamHandler.ja
>va:270) at
> sun.applet.PluginMessageHandlerWorker.run(PluginMessageHandlerWorke
>r.java:82) java.lang.RuntimeException: Failed to handle message:
> handle 29366253 for instance 1
> 	at
> sun.applet.PluginAppletViewer.handleMessage(PluginAppletViewer.java
>:660) at
> sun.applet.PluginStreamHandler.handleMessage(PluginStreamHandler.ja
>va:270) at
> sun.applet.PluginMessageHandlerWorker.run(PluginMessageHandlerWorke
>r.java:82) Caused by: java.lang.Exception: Applet initialization
> timeout at
> sun.applet.PluginAppletViewer.handleMessage(PluginAppletViewer.java
>:637) ... 2 more
> Error: Unable to fetch applet instance id from Java side.

Do you see /var/tmp/icedteaplugin-* directory, something like this?

%ls -dl /var/tmp/icedteaplugin-jkim/
drwx------  2 jkim  wheel  1536 Sep  9 18:32 /var/tmp/icedteaplugin-jkim/

Jung-uk Kim


More information about the freebsd-java mailing list