Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Dec 2007 03:58:14 -0500
From:      "Aryeh M. Friedman" <aryeh.friedman@gmail.com>
To:        freebsd-java@freebsd.org, "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Java Plugin not working on Firefox
Message-ID:  <4768DD26.2090004@gmail.com>

next in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I have jdk1.6 (bootstrapped from diablo 1.5) installed and it works
fine for command line/swing apps but dies on applets in firefox
2.0.0.11 (both from ports).   I installed the plugin by doing:

flosoft# ln -s
/usr/local/jdk1.6.0/jre/plugin/amd64/ns7/libjavaplugin_oji.so
/usr/local/lib/browser_plugins/
flosoft# nspluginwrapper -v -a -i

when I attempt to load an applet (for example
http://users.utu.fi/tuiisa/Java/LCSapplet/index.html) I get the
following output on the java console:

Java Plug-in 1.6.0_03-p3
Using JRE version 1.6.0_03-p3 Java HotSpot(TM) 64-Bit Server VM
User home directory = /home/aryeh
network: Loading user-defined proxy configuration ...
network: Done.
network: Loading proxy configuration from Netscape Navigator ...
network: Error reading registry file: /home/aryeh/.mozilla/appreg
network: Done.
network: Loading browser proxy configuration ...
network: Done.
network: Proxy Configuration: Browser Proxy Configuration


- ----------------------------------------------------
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: 1a00e2d
basic: Value of xembed: 1
basic: setWindow: call before applet exists:1a00e2d
basic: Referencing classloader: sun.plugin.ClassLoaderInfo@5421e554,
refcount=1
basic: Added progress listener: sun.plugin.util.GrayBoxPainter@6cd24e3f
basic: Loading applet ...
basic: Initializing applet ...
basic: Starting applet ...
basic: completed perf rollup
network: Cache entry not found [url:
http://users.utu.fi/tuiisa/Java/LCSapplet/LCS.class, version: null]
network: Connecting
http://users.utu.fi/tuiisa/Java/LCSapplet/LCS.class with proxy=DIRECT
network: Cache entry not found [url:
http://users.utu.fi/tuiisa/Java/LCSapplet/LCS/class.class, version: null]
network: Connecting
http://users.utu.fi/tuiisa/Java/LCSapplet/LCS/class.class with
proxy=DIRECT
load: class LCS.class not found.
java.lang.ClassNotFoundException: LCS.class
    at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:183)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:127)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:626)
    at sun.applet.AppletPanel.createApplet(AppletPanel.java:780)
    at sun.plugin.AppletViewer.createApplet(AppletViewer.java:2074)
    at sun.applet.AppletPanel.runLoader(AppletPanel.java:709)
    at sun.applet.AppletPanel.run(AppletPanel.java:363)
    at java.lang.Thread.run(Thread.java:619)
Caused by: java.net.ConnectException: Invalid argument
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
    at java.net.Socket.connect(Socket.java:519)
    at sun.net.NetworkClient.doConnect(NetworkClient.java:155)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
    at sun.net.www.http.HttpClient.New(HttpClient.java:306)
    at sun.net.www.http.HttpClient.New(HttpClient.java:323)
    at
sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:788)
    at
sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:729)
    at
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:654)
    at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:977)
    at
java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:373)
    at sun.applet.AppletClassLoader.getBytes(AppletClassLoader.java:284)
    at sun.applet.AppletClassLoader.access$100(AppletClassLoader.java:44)
    at sun.applet.AppletClassLoader$1.run(AppletClassLoader.java:173)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:170)
    ... 9 more
basic: Exception: java.lang.ClassNotFoundException: LCS.class
java.lang.ClassNotFoundException: LCS.class
    at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:183)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:127)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:626)
    at sun.applet.AppletPanel.createApplet(AppletPanel.java:780)
    at sun.plugin.AppletViewer.createApplet(AppletViewer.java:2074)
    at sun.applet.AppletPanel.runLoader(AppletPanel.java:709)
    at sun.applet.AppletPanel.run(AppletPanel.java:363)
    at java.lang.Thread.run(Thread.java:619)
Caused by: java.net.ConnectException: Invalid argument
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
    at java.net.Socket.connect(Socket.java:519)
    at sun.net.NetworkClient.doConnect(NetworkClient.java:155)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
    at sun.net.www.http.HttpClient.New(HttpClient.java:306)
    at sun.net.www.http.HttpClient.New(HttpClient.java:323)
    at
sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:788)
    at
sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:729)
    at
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:654)
    at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:977)
    at
java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:373)
    at sun.applet.AppletClassLoader.getBytes(AppletClassLoader.java:284)
    at sun.applet.AppletClassLoader.access$100(AppletClassLoader.java:44)
    at sun.applet.AppletClassLoader$1.run(AppletClassLoader.java:173)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:170)
    ... 9 more
basic: Stopping applet ...
basic: New window ID: 0
basic: Removed progress listener: sun.plugin.util.GrayBoxPainter@6cd24e3f
basic: Finding information ...
basic: Releasing classloader: sun.plugin.ClassLoaderInfo@5421e554,
refcount=0
basic: Caching classloader: sun.plugin.ClassLoaderInfo@5421e554
basic: Current classloader cache size: 1
basic: Done ...
basic: Joining applet thread ...
basic: Destroying applet ...
basic: Disposing applet ...
basic: Quiting applet ...
basic: Joined applet thread ...

- --
Aryeh M. Friedman
FloSoft Systems
http://www.flosoft-systems.com
Developer, not business, friendly
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHaN0mzIOMjAek4JIRAjgNAJ45DbsUO981Wo4IAh3VHNIDMLJMYgCdFOfq
Td5q0d/ROkfokfOR+ceAnA8=
=71Ug
-----END PGP SIGNATURE-----




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4768DD26.2090004>