IcedTea Plugin Dont work APPLET

Bug #440841 reported by Marcos Roriz
42
This bug affects 7 people
Affects Status Importance Assigned to Milestone
OpenJDK
Won't Fix
Medium
openjdk-6 (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Installed icedtea6-plugin and openjdk6 with firefox 3.0.14 on ubuntu jaunty. All main pkgs (supported).

Icedtea dont load/runs/works with applets. One example are geogebra applet.
Trying to load any applets from this page would fail. http://www.slu.edu/classes/maymk/GeoGebra/

One applet that fail:
http://www.slu.edu/classes/maymk/GeoGebra/SecantToTangent.html

Tried on other pc with sun-java6-jdk/plugin and worked perfectly.

Revision history for this message
Matthias Klose (doko) wrote :
Download full text (3.4 KiB)

rechecked in lucid. fails to download the jars

$ firefox
Looking for 0xa64783cc 0xa65407f0 0xb75fdbcc (document)
java version "1.6.0_18"
OpenJDK Runtime Environment (IcedTea6 1.8pre) (6b18~pre3-0ubuntu1)
OpenJDK Server VM (build 16.0-b13, mixed mode)
java.lang.InterruptedException: sleep interrupted
 at java.lang.Thread.sleep(Native Method)
 at sun.applet.PluginAppletViewer.handleMessage(PluginAppletViewer.java:629)
 at sun.applet.PluginStreamHandler.handleMessage(PluginStreamHandler.java:270)
 at sun.applet.PluginMessageHandlerWorker.run(PluginMessageHandlerWorker.java:82)
java.lang.InterruptedException: sleep interrupted
 at java.lang.Thread.sleep(Native Method)
 at sun.applet.PluginAppletViewer.handleMessage(PluginAppletViewer.java:674)
 at sun.applet.PluginAppletViewer.handleMessage(PluginAppletViewer.java:649)
 at sun.applet.PluginStreamHandler.handleMessage(PluginStreamHandler.java:270)
 at sun.applet.PluginMessageHandlerWorker.run(PluginMessageHandlerWorker.java:82)
java.lang.InterruptedException: sleep interrupted
 at java.lang.Thread.sleep(Native Method)
 at sun.applet.PluginAppletViewer.handleMessage(PluginAppletViewer.java:747)
 at sun.applet.PluginAppletViewer.handleMessage(PluginAppletViewer.java:649)
 at sun.applet.PluginStreamHandler.handleMessage(PluginStreamHandler.java:270)
 at sun.applet.PluginMessageHandlerWorker.run(PluginMessageHandlerWorker.java:82)
java.lang.ArrayIndexOutOfBoundsException: 5
 at sun.applet.PluginProxyInfoRequest.parseReturn(PluginProxyInfoRequest.java:65)
 at sun.applet.PluginStreamHandler.finishCallRequest(PluginStreamHandler.java:338)
 at sun.applet.PluginStreamHandler.handlePluginMessage(PluginStreamHandler.java:287)
 at sun.applet.PluginStreamHandler.handleMessage(PluginStreamHandler.java:208)
 at sun.applet.PluginMessageHandlerWorker.run(PluginMessageHandlerWorker.java:82)
java.lang.NullPointerException
 at sun.applet.AppletPanel.showAppletStatus(AppletPanel.java:943)
 at sun.applet.AppletPanel.run(AppletPanel.java:466)
 at java.lang.Thread.run(Thread.java:636)
Download error: /home/doko/.icedteaplugin/cache/http/www.slu.edu/classes/maymk/GeoGebra/geogebra_main.jar (No such file or directory)
Download error: jarFile not found: 1
/home/doko/.icedteaplugin/cache/http/www.slu.edu/classes/maymk/GeoGebra/geogebra_gui.jar (No such file or directory)
/home/doko/.icedteaplugin/cache/http/www.slu.edu/classes/maymk/GeoGebra/geogebra_cas.jar (No such file or directory)
/home/doko/.icedteaplugin/cache/http/www.slu.edu/classes/maymk/GeoGebra/geogebra_export.jar (No such file or directory)
/home/doko/.icedteaplugin/cache/http/www.slu.edu/classes/maymk/GeoGebra/geogebra_properties.jar (No such file or directory)
java.lang.ArrayIndexOutOfBoundsException: 5
 at sun.applet.PluginProxyInfoRequest.parseReturn(PluginProxyInfoRequest.java:65)
 at sun.applet.PluginStreamHandler.finishCallRequest(PluginStreamHandler.java:338)
 at sun.applet.PluginStreamHandler.handlePluginMessage(PluginStreamHandler.java:287)
 at sun.applet.PluginStreamHandler.handleMessage(PluginStreamHandler.java:208)
 at sun.applet.PluginMessageHandlerWorker.run(PluginMessageHandlerWorker.java:82)
Excepti...

Read more...

Revision history for this message
In , Matthias Klose (doko) wrote :

Icedtea dont load/runs/works with applets. One example are geogebra applet.
Trying to load any applets from this page would fail. http://www.slu.edu/classes/maymk/GeoGebra/

One applet that fail:
http://www.slu.edu/classes/maymk/GeoGebra/SecantToTangent.html

Revision history for this message
In , Matthias Klose (doko) wrote :

Created attachment 317
error log

Revision history for this message
In , Matthias Klose (doko) wrote :

Created attachment 318
plugin debug log

Changed in openjdk-6 (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
Changed in openjdk:
status: Unknown → Confirmed
Revision history for this message
In , Matthias Klose (doko) wrote :
Download full text (5.6 KiB)

with a build from 20100411 head/1.8-branch I only see these hangs if security.provider.9 in java.security is uncommented.

a simpler applet showing the same behaviour:
http://www.gurusheaven.de/security/anonymitaets_test.shtml

visiting the page with security.provider.9 commented:

Looking for 0xb5f9a90c 0xb3f3cfb0 0xb5fb6bdc (document)
java version "1.6.0_18"
OpenJDK Runtime Environment (IcedTea6 1.8) (6b18~pre4-1ubuntu4~ppa1)
OpenJDK Server VM (build 16.0-b13, mixed mode)
java.lang.InterruptedException: sleep interrupted
        at java.lang.Thread.sleep(Native Method)
        at sun.applet.PluginAppletViewer.handleMessage(PluginAppletViewer.java:674)
        at sun.applet.PluginAppletViewer.handleMessage(PluginAppletViewer.java:649)
        at sun.applet.PluginStreamHandler.handleMessage(PluginStreamHandler.java:270)
        at sun.applet.PluginMessageHandlerWorker.run(PluginMessageHandlerWorker.java:82)
java.lang.InterruptedException: sleep interrupted
        at java.lang.Thread.sleep(Native Method)
        at sun.applet.PluginAppletViewer.handleMessage(PluginAppletViewer.java:629)
        at sun.applet.PluginStreamHandler.handleMessage(PluginStreamHandler.java:270)
        at sun.applet.PluginMessageHandlerWorker.run(PluginMessageHandlerWorker.java:82)
java.lang.InterruptedException: sleep interrupted
        at java.lang.Thread.sleep(Native Method)
        at sun.applet.PluginAppletViewer.handleMessage(PluginAppletViewer.java:735)
        at sun.applet.PluginAppletViewer.handleMessage(PluginAppletViewer.java:649)
        at sun.applet.PluginStreamHandler.handleMessage(PluginStreamHandler.java:270)
        at sun.applet.PluginMessageHandlerWorker.run(PluginMessageHandlerWorker.java:82)

visiting the page with security.provider.9 uncommented:
Looking for 0xb4178f4c 0xb3a58b20 0xb59fdbcc (document)
java version "1.6.0_18"
OpenJDK Runtime Environment (IcedTea6 1.8) (6b18~pre4-1ubuntu4~ppa1)
OpenJDK Server VM (build 16.0-b13, mixed mode)
java.security.ProviderException: Could not initialize NSS
        at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:201)
        at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:103)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
        at sun.security.jca.ProviderConfig$3.run(ProviderConfig.java:262)
        at sun.security.jca.ProviderConfig$3.run(ProviderConfig.java:244)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.security.jca.ProviderConfig.doLoadProvider(ProviderConfig.java:244)
        at sun.security.jca.ProviderConfig.getProvider(ProviderConfig.java:224)
        at sun.security.jca.ProviderList.getProvider(ProviderList.java:232)
        at sun.security.jca.ProviderList.getService(ProviderList.java:330)
        at sun.security.jca.GetInstance.getInstance(GetInstance.java:157)
        at java.security.Security.getImpl(Security.jav...

Read more...

Revision history for this message
In , Matthias Klose (doko) wrote :
Revision history for this message
In , Matthias Klose (doko) wrote :

The firefox start script in MOZILLA_FIVE_HOME sets LD_LIBRARY_PATH to include
MOZILLA_FIVE_HOME and a number of subdirectories of MOZILLA_FIVE_HOME. The
current NSS provider does open libnss3.so in the path which is configured in nss.cfg, but the dlopen call doesn't the depending libraries of libnss3.so in the same directory.

$ LD_LIBRARY_PATH=/usr/lib/firefox-3.6.3 ldd /usr/lib/libnss3.so
 linux-gate.so.1 => (0x0068d000)
 libnssutil3.so => /usr/lib/firefox-3.6.3/libnssutil3.so (0x006a8000)
 libplc4.so => /usr/lib/firefox-3.6.3/libplc4.so (0x00f93000)
 libplds4.so => /usr/lib/firefox-3.6.3/libplds4.so (0x003bb000)
 libnspr4.so => /usr/lib/firefox-3.6.3/libnspr4.so (0x00f40000)
 libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0x00252000)
 libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0x0062d000)
 libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0x0090b000)
 /lib/ld-linux.so.2 (0x002af000)

This happens as well with the firefox binaries which are downloadable from mozilla.org.

The security provider should prepend nssLibraryDirectory to the LD_LIBRARY_PATH before dlopening libnss3, and after that restore the path.

The workaround looks ok, just ignoring the libs provided by firefox, and using the libs detected at build time.

Revision history for this message
In , Matthias Klose (doko) wrote :

fixed in 1.8

Changed in openjdk:
status: Confirmed → Fix Released
Revision history for this message
Mikkel Kamstrup Erlandsen (kamstrup) wrote :

Can anyone elaborate on why the normal Java6 plugin is not available anymore since Lucid? IcedTea is a "replacement" that works on *zero* of the applets I've tried so far. The plugin from Sun available in Karmic and back has always just worked flawlessly.

This means that I can not use any of my online banking or other public services here in Denmark. If I where not a depending on Lucid for my development work I'd downgrade to Karmic right away since this is just a showstopper for me. Not to mention that my wife is about to strangle me! ;-)

Revision history for this message
Kiri (kiri) wrote :

Attempting to load an applet crashes Firefox. Is this the same bug?

OpenJDK and IcedTea worked in Karmic Koala.

Revision history for this message
Kiri (kiri) wrote :

sun-java6-plugin 6.20dlj-1ubuntu3 also crashes.

Revision history for this message
Richard Griswold (richgriswold) wrote :
Download full text (3.5 KiB)

I am running into the same problem trying to access an online learning site (http://www2.sunpoweruniversity.com/SunPowerContent/VAR/site/index.html). When I go to that page, it fails to finish loading and prints the following error messages to the console:

OpenJDK Runtime Environment (IcedTea6 1.8) (6b18-1.8-0ubuntu1)
OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)
java.lang.InterruptedException: sleep interrupted
        at java.lang.Thread.sleep(Native Method)
        at sun.applet.PluginAppletViewer.handleMessage(PluginAppletViewer.java:735)
        at sun.applet.PluginAppletViewer.handleMessage(PluginAppletViewer.java:649)
        at sun.applet.PluginStreamHandler.handleMessage(PluginStreamHandler.java:270)
        at sun.applet.PluginMessageHandlerWorker.run(PluginMessageHandlerWorker.java:82)
java.lang.Exception: Applet initialization timeout
        at sun.applet.PluginAppletViewer.handleMessage(PluginAppletViewer.java:637)
        at sun.applet.PluginStreamHandler.handleMessage(PluginStreamHandler.java:270)
        at sun.applet.PluginMessageHandlerWorker.run(PluginMessageHandlerWorker.java:82)
java.lang.RuntimeException: Failed to handle message: handle 27270028 for instance 1
        at sun.applet.PluginAppletViewer.handleMessage(PluginAppletViewer.java:660)
        at sun.applet.PluginStreamHandler.handleMessage(PluginStreamHandler.java:270)
        at sun.applet.PluginMessageHandlerWorker.run(PluginMessageHandlerWorker.java:82)
Caused by: java.lang.Exception: Applet initialization timeout
        at sun.applet.PluginAppletViewer.handleMessage(PluginAppletViewer.java:637)
        ... 2 more
net.sourceforge.jnlp.LaunchException: Fatal: Initialization Error: Could not initialize applet.
        at net.sourceforge.jnlp.Launcher.createApplet(Launcher.java:603)
        at net.sourceforge.jnlp.Launcher.getApplet(Launcher.java:547)
        at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:728)
Caused by: java.lang.NullPointerException
        at net.sourceforge.jnlp.Launcher.createApplet(Launcher.java:587)
        ... 2 more
Caused by:
java.lang.NullPointerException
        at net.sourceforge.jnlp.Launcher.createApplet(Launcher.java:587)
        at net.sourceforge.jnlp.Launcher.getApplet(Launcher.java:547)
        at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:728)
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)
Error: Unable to fetch applet instance id from Java side.

I can close the tab, but shortly afterwards the CPU usage for the Java process goes to 100%. I can manually kill the Java process and Firefox will still continue running. I am running Ubuntu 10.04 x86-64, and I have the following Java packages installed:

icedtea6-plugin 6b18-1.8-0ubuntu1
openjdk-6-jre 6b18-1.8-0ubuntu1
openjdk-6-jre-headless 6b18-1.8-0ubuntu1
openjdk-6-jre-lib 6b18-1.8-0ubuntu1
...

Read more...

Revision history for this message
Matthias Klose (doko) wrote :

fixed in maverick and lucid-proposed.
note that the applet takes ages to load due to a slow server connection.

Changed in openjdk-6 (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Arie Skliarouk (skliarie) wrote :

Using maverick (10.10) with icedtea6-plugin (6b20-1.9.2-0ubuntu1).

When I try to connect to remote console of IPMI of Supermicro Daughter Card I get following error:

java version "1.6.0_20"
OpenJDK Runtime Environment (IcedTea6 1.9.2) (6b20-1.9.2-0ubuntu1)
OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode)
Exception in thread "Thread-2" java.lang.ArrayIndexOutOfBoundsException: 2
        at sun.applet.PluginMessageConsumer.okayToProcess(PluginMessageConsumer.java:155)
        at sun.applet.PluginMessageConsumer.access$000(PluginMessageConsumer.java:46)
        at sun.applet.PluginMessageConsumer$ConsumerThread.run(PluginMessageConsumer.java:229)
Error: Unable to fetch applet instance id from Java side.

Revision history for this message
Chinmay Rajhans (rajhanschinmay) wrote :

I am getting very similar error when I tried running any website containing/requiring JAVA using firefox or seamonkey browser on Ubuntu 10.04 32 bit OS.

It says this:

java version "1.6.0_18"
OpenJDK Runtime Environment (IcedTea6 1.8.1) (6b18-1.8.1-0ubuntu1)
OpenJDK Client VM (build 16.0-b13, mixed mode, sharing)
File cannot be launched because offline-allowed tag not specified and system currently offline.
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)
java.lang.Exception: Applet initialization timeout
        at sun.applet.PluginAppletViewer.handleMessage(PluginAppletViewer.java:637)
        at sun.applet.PluginStreamHandler.handleMessage(PluginStreamHandler.java:270)
        at sun.applet.PluginMessageHandlerWorker.run(PluginMessageHandlerWorker.java:82)
java.lang.RuntimeException: Failed to handle message: handle 8394350 for instance 1
        at sun.applet.PluginAppletViewer.handleMessage(PluginAppletViewer.java:660)
        at sun.applet.PluginStreamHandler.handleMessage(PluginStreamHandler.java:270)
        at sun.applet.PluginMessageHandlerWorker.run(PluginMessageHandlerWorker.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.

I removed Java, downloaded jre again and then reinstalled it.
But error is still there.kindly let me know possible solutions.

Revision history for this message
Arie Skliarouk (skliarie) wrote :

For me (maverick 10.10 amd64) the solution was to remove icedtea6-plugin, download sun-java6-bin, sun-java6-jre and sun-java6-plugin packages from hardy (8.04) (!) and install them:
http://packages.ubuntu.com/hardy-updates/sun-java6-bin

That worked and I now am am able to see the IPMI remote console.

Revision history for this message
Damien Lecan (dlecan) wrote :

Much better if you want to install Sun Java6 :

 - enable partner repository : https://help.ubuntu.com/community/Repositories/Ubuntu#Adding%20Canonical%20Partner%20Repositories

 - install sun-java6-bin, sun-java6-jre and sun-java6-plugin

Theses packages are built for Maverick.

Changed in openjdk:
importance: Unknown → Medium
Revision history for this message
In , Puntogil (puntogil) wrote :
Download full text (4.6 KiB)

hello
I have this problem with the openjdk plugin (icedtea-web 1.0.2).
thanks

$ firefox --version
Mozilla Firefox 4.0.1
$ firefox
java version "1.6.0_22"
OpenJDK Runtime Environment (IcedTea6 1.10) (mageia-14.b22.5.mga1-i386)
OpenJDK Server VM (build 20.0-b10, mixed mode)
OFS Webchat Applet Running bld 2096 - (C) Icona spa http://www.icona.it
Java version 1.6.0_22
Trying connecting to 195.210.93.109:4800
**OFSCmdLogon :: encodeItems() :: getCli() = NULL !!
Exception in thread "AWT-EventQueue-2" java.lang.NullPointerException
        at javax.swing.text.PlainView.updateMetrics(PlainView.java:205)
        at javax.swing.text.PlainView.getPreferredSpan(PlainView.java:228)
        at javax.swing.text.FieldView.getPreferredSpan(FieldView.java:235)
        at javax.swing.text.PasswordView.getPreferredSpan(PasswordView.java:232)
        at javax.swing.text.FieldView.adjustAllocation(FieldView.java:82)
        at javax.swing.text.FieldView.adjustPaintRegion(FieldView.java:195)
        at javax.swing.text.PlainView.paint(PlainView.java:251)
        at javax.swing.text.FieldView.paint(FieldView.java:188)
        at javax.swing.plaf.basic.BasicTextUI$RootView.paint(BasicTextUI.java:1439)
        at javax.swing.plaf.basic.BasicTextUI.paintSafely(BasicTextUI.java:739)
        at javax.swing.plaf.basic.BasicTextUI.paint(BasicTextUI.java:886)
        at javax.swing.plaf.basic.BasicTextUI.update(BasicTextUI.java:865)
        at javax.swing.JComponent.paintComponent(JComponent.java:765)
        at javax.swing.JComponent.paint(JComponent.java:1029)
        at javax.swing.JComponent.paintToOffscreen(JComponent.java:5138)
        at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(RepaintManager.java:1454)
        at javax.swing.RepaintManager$PaintManager.paint(RepaintManager.java:1385)
        at javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:318)
        at javax.swing.RepaintManager.paint(RepaintManager.java:1188)
        at javax.swing.JComponent._paintImmediately(JComponent.java:5086)
        at javax.swing.JComponent.paintImmediately(JComponent.java:4896)
        at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:783)
        at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:735)
        at javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:677)
        at javax.swing.RepaintManager.access$700(RepaintManager.java:58)
        at javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1593)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:226)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:647)
        at java.awt.EventQueue.access$000(EventQueue.java:96)
        at java.awt.EventQueue$1.run(EventQueue.java:608)
        at java.awt.EventQueue$1.run(EventQueue.java:606)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:617)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
        at java...

Read more...

Changed in openjdk:
status: Fix Released → Won't Fix
Revision history for this message
brendan.r (b-enmark) wrote : The Nature gives opportunities to live confidently healthy and hot!

The Nat im ure gives oppor wh tunities to live confi xd dently hea axi lthy and h fmt ot!
New her ev bal form soe ula of pills what fixes ere gi ction!
Try someting bet tvi ter than usual arse bpc nals.
www.berettax-bige.ru

Revision history for this message
In , Mercurial (mercurial) wrote :

details: http://icedtea.classpath.org//people/andrew/icedtea8?cmd=changeset;node=23684054d4dc
author: Matthias Klose <email address hidden>
date: Mon Apr 12 22:37:35 2010 +0200

 Fix PR icedtea/461, plugin working for NSS enabled builds working together with firefox including a private NSS copy

 2010-04-12 Matthias Klose <email address hidden>

         PR icedtea/461
         * plugin/icedteanp/IcedTeaNPPlugin.cc (plugin_filter_ld_library_path):
         New, filter out paths in LD_LIBRARY_PATH which start with
         MOZILLA_FIVE_HOME.
         (plugin_filter_environment): New, build environment to pass to the
         appletviewer process.
         (plugin_test_appletviewer, plugin_start_appletviewer): Start the new
         process with the filtered environment.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.