IcedTea-web icedtea-7-plugin java.io.EOFException while loading applet

207 views
Skip to first unread message

Xerxes Rånby

unread,
Oct 7, 2012, 4:23:13 PM10/7/12
to av...@googlegroups.com
Tested using a i386 Ubuntu 12.04 system with
java version "1.7.0_07"
OpenJDK Runtime Environment (IcedTea7 2.3.2) (7u7-2.3.2a-0ubuntu0.12.04.1)
Avian (build 0.6, git)
and
IcedTea-Web Plugin (using IcedTea-Web 1.2 (1.2-2ubuntu1.2))


#first install the icedtea-7-plugin
apt-get install icedtea-7-plugin

# next configure firefox to use the icedtea-7-plugin
sudo update-alternatives --config mozilla-javaplugin.so
There are 2 choices for the alternative mozilla-javaplugin.so (providing /usr/lib/mozilla/plugins/libjavaplugin.so).

  Selection    Path                                                            Priority   Status
------------------------------------------------------------
  0            /usr/lib/jvm/java-6-openjdk-i386/jre/lib/i386/IcedTeaPlugin.so   1061      auto mode
  1            /usr/lib/jvm/java-6-openjdk-i386/jre/lib/i386/IcedTeaPlugin.so   1061      manual mode
* 2            /usr/lib/jvm/java-7-openjdk-i386/jre/lib/i386/IcedTeaPlugin.so   1060      manual mode

Press enter to keep the current choice[*], or type selection number: 2

#inside firefox check the about:plugins
about:plugins
IcedTea-Web Plugin (using IcedTea-Web 1.2 (1.2-2ubuntu1.2))

#from console firefox and experience an java.io.EOFException exception when using avian + icedtea-web to launch java applets
familjen@familjen:~/avian$ firefox http://oneslime.net
java version "1.7.0_07"
OpenJDK Runtime Environment (IcedTea7 2.3.2) (7u7-2.3.2a-0ubuntu0.12.04.1)
Avian (build 0.6, )
    at java.io.DataInputStream.readUnsignedShort(DataInputStream.java:340)
    at java.io.DataInputStream.readUTF(DataInputStream.java:589)
    at java.io.DataInputStream.readUTF(DataInputStream.java:564)
    at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:733)
    at sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:55)
    at java.security.KeyStore.load(KeyStore.java:1214)
    at net.sourceforge.jnlp.security.KeyStores.createKeyStoreFromFile(KeyStores.java:369)
    at net.sourceforge.jnlp.security.KeyStores.getKeyStore(KeyStores.java:135)
    at net.sourceforge.jnlp.security.KeyStores.getKeyStore(KeyStores.java:114)
    at net.sourceforge.jnlp.security.KeyStores.getCertKeyStores(KeyStores.java:168)
    at net.sourceforge.jnlp.security.VariableX509TrustManager.<init>(VariableX509TrustManager.java:94)
    at net.sourceforge.jnlp.security.VariableX509TrustManager.getInstance(VariableX509TrustManager.java:411)
    at net.sourceforge.jnlp.runtime.JNLPRuntime.initialize(JNLPRuntime.java:232)
    at sun.applet.PluginAppletSecurityContext.<init>(PluginAppletSecurityContext.java:245)
    at sun.applet.PluginMain.main(PluginMain.java:109)


firefox http://www.falstad.com/ripple/
java version "1.7.0_07"
OpenJDK Runtime Environment (IcedTea7 2.3.2) (7u7-2.3.2a-0ubuntu0.12.04.1)
Avian (build 0.6, )
java.io.EOFException
    at java.io.DataInputStream.readUnsignedShort(DataInputStream.java:340)
    at java.io.DataInputStream.readUTF(DataInputStream.java:589)
    at java.io.DataInputStream.readUTF(DataInputStream.java:564)
    at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:733)
    at sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:55)
    at java.security.KeyStore.load(KeyStore.java:1214)
    at net.sourceforge.jnlp.security.KeyStores.createKeyStoreFromFile(KeyStores.java:369)
    at net.sourceforge.jnlp.security.KeyStores.getKeyStore(KeyStores.java:135)
    at net.sourceforge.jnlp.security.KeyStores.getKeyStore(KeyStores.java:114)
    at net.sourceforge.jnlp.security.KeyStores.getCertKeyStores(KeyStores.java:168)
    at net.sourceforge.jnlp.security.VariableX509TrustManager.<init>(VariableX509TrustManager.java:94)
    at net.sourceforge.jnlp.security.VariableX509TrustManager.getInstance(VariableX509TrustManager.java:411)
    at net.sourceforge.jnlp.runtime.JNLPRuntime.initialize(JNLPRuntime.java:232)
    at sun.applet.PluginAppletSecurityContext.<init>(PluginAppletSecurityContext.java:245)
    at sun.applet.PluginMain.main(PluginMain.java:109)

The applets loads fine using JamVM and Hotspot.

Joel Dice

unread,
Oct 13, 2012, 3:30:08 PM10/13/12
to av...@googlegroups.com
On Sun, 7 Oct 2012, Xerxes R�nby wrote:

> #from console firefox and experience an java.io.EOFException exception when
> using avian + icedtea-web to launch java applets
> familjen@familjen:~/avian$ firefox http://oneslime.net
> java version "1.7.0_07"
> OpenJDK Runtime Environment (IcedTea7 2.3.2) (7u7-2.3.2a-0ubuntu0.12.04.1)
> Avian (build 0.6, )
> ��� at java.io.DataInputStream.readUnsignedShort(DataInputStream.java:340)

Thanks for the report, but I'm not able to reproduce this one. Have you
tried removing your ~/.icedtea directory in case there's something
corrupted in your cache?

Here's the output I get:

jdubuntu120432: DISPLAY=:0 firefox http://oneslime.net
java version "1.7.0_07"
OpenJDK Runtime Environment (IcedTea7 2.3.2) (7u7-2.3.2a-0ubuntu0.12.04.1)
Avian (build 0.6, )
One Slime: http://oneslime.net/
http://oneslime.net/one/

The applet seems to load fine, and I only get further output when I close
the browser:

java/security/AccessControlException: Applets may not call System.exit()
at net/sourceforge/jnlp/runtime/JNLPSecurityManager.checkExit (line 385)
at java/lang/Runtime.exit (line 105)
at java/lang/System.exit (line 960)
at sun/applet/PluginStreamHandler.read (line 338)
at sun/applet/PluginStreamHandler.access$000 (line 52)
at sun/applet/PluginStreamHandler$1.run (line 92)

Xerxes Rånby

unread,
Oct 15, 2012, 8:47:18 AM10/15/12
to av...@googlegroups.com


Den lördagen den 13:e oktober 2012 kl. 21:29:06 UTC+2 skrev Joel Dice:
On Sun, 7 Oct 2012, Xerxes R�nby wrote:

> #from console firefox and experience an java.io.EOFException exception when
> using avian + icedtea-web to launch java applets
> familjen@familjen:~/avian$ firefox http://oneslime.net
> java version "1.7.0_07"
> OpenJDK Runtime Environment (IcedTea7 2.3.2) (7u7-2.3.2a-0ubuntu0.12.04.1)
> Avian (build 0.6, )
> ��� at java.io.DataInputStream.readUnsignedShort(DataInputStream.java:340)

Thanks for the report, but I'm not able to reproduce this one.  Have you
tried removing your ~/.icedtea directory in case there's something
corrupted in your cache?

Here's the output I get:

  jdubuntu120432: DISPLAY=:0 firefox http://oneslime.net
java version "1.7.0_07"
OpenJDK Runtime Environment (IcedTea7 2.3.2) (7u7-2.3.2a-0ubuntu0.12.04.1)
Avian (build 0.6, )
One Slime: http://oneslime.net/
http://oneslime.net/one/


Avian from the latest Ubuntu deb runs the applets fine now after removing .icedtea folder.
I think you are spot on about something corrupt in the icedtea cache:
New output:
ubuntu@panda:~$ firefox http://oneslime.net
(firefox:9598): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",
java version "1.7.0_07"
OpenJDK Runtime Environment (IcedTea7 2.3.2) (7u7-2.3.2a-1ubuntu1)
Avian (build 0.6, package 0.6+20121011-1)
Running global cleanup code from study base classes.
The applet seems to load fine, and I only get further output when I close
the browser:

java/security/AccessControlException: Applets may not call System.exit()
   at net/sourceforge/jnlp/runtime/JNLPSecurityManager.checkExit (line 385)
   at java/lang/Runtime.exit (line 105)
   at java/lang/System.exit (line 960)
   at sun/applet/PluginStreamHandler.read (line 338)
   at sun/applet/PluginStreamHandler.access$000 (line 52)
   at sun/applet/PluginStreamHandler$1.run (line 92)

This exception sounds OK. And a reasonable exception to see if the applet tries to use System.exit();
All fine.
Reply all
Reply to author
Forward
0 new messages