LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (http://www.linuxquestions.org/questions/debian-26/)
-   -   Java plugin does not work with 64 bit debian Lenny, 32 bit Mozilla 3.6.8, java 1.6_20 (http://www.linuxquestions.org/questions/debian-26/java-plugin-does-not-work-with-64-bit-debian-lenny-32-bit-mozilla-3-6-8-java-1-6_20-a-861516/)

Drew Eckhardt 02-08-2011 08:47 PM

Java plugin does not work with 64 bit debian Lenny, 32 bit Mozilla 3.6.8, java 1.6_20
 
I'm using a 32 bit Mozilla 3.5.9 under 64 bit Debian Lenny (5) so I get working plugins and add-ons. Java from the Debian package (but I get the same result starting with the one from Sun/Oracle).

libjavaplugin_oji.so
lrwxrwxrwx 1 root root 69 2011-02-08 17:49 libjavaplugin_oji.so -> /usr/lib/jvm/ia32-java-6-sun/jre/plugin/i386/ns7/libjavaplugin_oji.so

net.ipv6.bindv6only = 0, java shows up in about:plugins

Attempting to run any java applet produces a class not found exception.

For example, going to http://www.javatester.org/enabled.html with trace set to 5 in the Java console produces the following.

Note the absence of socket or other causing exceptions deeper in the call stack.

Code:

Java Plug-in 1.6.0_20
Using JRE version 1.6.0_20-b02 Java HotSpot(TM) Client VM
User home directory = /home/drew
----------------------------------------------------
c:  clear console window
f:  finalize objects on finalization queue
g:  garbage collect
h:  display this help message
l:  dump classloader list
m:  print memory usage
o:  trigger logging
p:  reload proxy configuration
q:  hide console
r:  reload policy configuration
s:  dump system and deployment properties
t:  dump thread list
v:  dump thread stack
x:  clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------
basic: New window ID: 0
basic: New window ID: 38350bf
basic: Value of xembed: 1
basic: Referencing classloader: sun.plugin.ClassLoaderInfo@da1515, refcount=3
basic: setWindow: call before applet exists:38350bf
basic: Added progress listener: sun.plugin.util.GrayBoxPainter$GrayBoxProgressListener@e7eec9
basic: Loading applet ...
basic: Initializing applet ...
basic: Starting applet ...
basic: completed perf rollup
network: Cache entry not found [url: http://www.javatester.org/Tiny.class, version: null]
network: Connecting http://www.javatester.org/Tiny.class with proxy=DIRECT
network: Connecting socket://www.javatester.org:80 with proxy=DIRECT
network: Cache entry not found [url: http://www.javatester.org/Tiny.class, version: null]
network: Connecting http://www.javatester.org/Tiny.class with proxy=DIRECT
network: Connecting socket://www.javatester.org:80 with proxy=DIRECT
load: class Tiny not found.
java.lang.ClassNotFoundException: Tiny
        at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:211)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:144)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
        at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:662)
        at sun.applet.AppletPanel.createApplet(AppletPanel.java:785)
        at sun.plugin.AppletViewer.createApplet(AppletViewer.java:2298)
        at sun.applet.AppletPanel.runLoader(AppletPanel.java:714)
        at sun.applet.AppletPanel.run(AppletPanel.java:368)
        at java.lang.Thread.run(Thread.java:619)
basic: Exception: java.lang.ClassNotFoundException: Tiny
liveconnect: JavaScript: calling Java system code
liveconnect: JavaScript: default security policy = http://www.javatester.org
java.net.UnknownHostException: www.javatester.org
        at java.net.InetAddress.getAllByName0(InetAddress.java:1158)
        at java.net.InetAddress.getAllByName(InetAddress.java:1084)
        at java.net.InetAddress.getAllByName(InetAddress.java:1020)
        at java.net.InetAddress.getByName(InetAddress.java:970)
        at sun.plugin.liveconnect.SecureInvocation.getDefaultProtectionDomain(SecureInvocation.java:402)
        at sun.plugin.liveconnect.SecureInvocation.access$100(SecureInvocation.java:51)
        at sun.plugin.liveconnect.SecureInvocation$2.run(SecureInvocation.java:133)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.plugin.liveconnect.SecureInvocation.CallMethod(SecureInvocation.java:121)
        at sun.plugin.navig.motif.AThread.handleRequest(Native Method)
        at sun.plugin.navig.motif.AThread.JNIHandleLoop(AThread.java:40)
        at sun.plugin.navig.motif.AThread.run(AThread.java:32)
liveconnect: JavaScript: calling Java system code
liveconnect: JavaScript: default security policy = http://www.javatester.org
java.net.UnknownHostException: www.javatester.org
        at java.net.InetAddress.getAllByName0(InetAddress.java:1158)
        at java.net.InetAddress.getAllByName(InetAddress.java:1084)
        at java.net.InetAddress.getAllByName(InetAddress.java:1020)
        at java.net.InetAddress.getByName(InetAddress.java:970)
        at sun.plugin.liveconnect.SecureInvocation.getDefaultProtectionDomain(SecureInvocation.java:402)
        at sun.plugin.liveconnect.SecureInvocation.access$100(SecureInvocation.java:51)
        at sun.plugin.liveconnect.SecureInvocation$1.run(SecureInvocation.java:82)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.plugin.liveconnect.SecureInvocation.ConstructObject(SecureInvocation.java:70)
        at sun.plugin.navig.motif.AThread.handleRequest(Native Method)
        at sun.plugin.navig.motif.AThread.JNIHandleLoop(AThread.java:40)
        at sun.plugin.navig.motif.AThread.run(AThread.java:32)
liveconnect: JavaScript: calling Java system code
liveconnect: JavaScript: default security policy = http://www.javatester.org
java.net.UnknownHostException: www.javatester.org
        at java.net.InetAddress.getAllByName0(InetAddress.java:1158)
        at java.net.InetAddress.getAllByName(InetAddress.java:1084)
        at java.net.InetAddress.getAllByName(InetAddress.java:1020)
        at java.net.InetAddress.getByName(InetAddress.java:970)
        at sun.plugin.liveconnect.SecureInvocation.getDefaultProtectionDomain(SecureInvocation.java:402)
        at sun.plugin.liveconnect.SecureInvocation.access$100(SecureInvocation.java:51)
        at sun.plugin.liveconnect.SecureInvocation$2.run(SecureInvocation.java:133)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.plugin.liveconnect.SecureInvocation.CallMethod(SecureInvocation.java:121)
        at sun.plugin.navig.motif.AThread.handleRequest(Native Method)
        at sun.plugin.navig.motif.AThread.JNIHandleLoop(AThread.java:40)
        at sun.plugin.navig.motif.AThread.run(AThread.java:32)
basic: Stopping applet ...
basic: Removed progress listener: sun.plugin.util.GrayBoxPainter$GrayBoxProgressListener@1c501f7
basic: Destroying applet ...
basic: Disposing applet ...
basic: Joining applet thread ...
basic: Joined applet thread ...
basic: Finding information ...
basic: Releasing classloader: sun.plugin.ClassLoaderInfo@da1515, refcount=2
basic: Done ...


Drew Eckhardt 02-15-2011 12:24 PM

The interesting thing here is the second (java.net.UnknownHostException) exception:

Code:

basic: Exception: java.lang.ClassNotFoundException: Tiny
liveconnect: JavaScript: calling Java system code
liveconnect: JavaScript: default security policy = http://www.javatester.org
java.net.UnknownHostException: www.javatester.org

which is fixed by installing the lib32nss-mdns package thus making Java work for internet things, notably as a browser plugin.


All times are GMT -5. The time now is 03:04 AM.