On Fri, 9 Nov 2007 10:55:08 +1100
Norberto Meijome <[EMAIL PROTECTED]> wrote:

> Hi list,
> I have ffox 2, jdk1.5 and .16 installed and working ok for other programs.
> 
> I have the 1.5 plugin loaded and recognised OK in about:plugins:
> [EMAIL PROTECTED] [Fri Nov  9 10:41:19 2007]
> /usr/local/lib/browser_plugins
> $ sudo ln -s /usr/local/jdk1.5.0/jre/plugin/i386/ns7/libjavaplugin_oji.so 
> libjavaplugin_oji.so
> 
> When I try to load Sun's applet test ( 
> http://www.java.com/en/download/help/testvm.xml ) , but I get this in the 
> java console , and the applet doesn't load :
> 
> Java Plug-in 1.5.0_13
> Using JRE version 1.5.0_13-p7 Java HotSpot(TM) Client VM
> User home directory = /home/betom
> 
> 
> ----------------------------------------------------
> 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>
> ----------------------------------------------------
> 
> load: class testvmDynamicJavaCom.class not found.
> java.lang.ClassNotFoundException: testvmDynamicJavaCom.class
>       at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:168)
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>       at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:119)
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>       at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:599)
>       at sun.applet.AppletPanel.createApplet(AppletPanel.java:723)
>       at sun.plugin.AppletViewer.createApplet(AppletViewer.java:1815)
>       at sun.applet.AppletPanel.runLoader(AppletPanel.java:652)
>       at sun.applet.AppletPanel.run(AppletPanel.java:326)
>       at java.lang.Thread.run(Thread.java:595)
> Caused by: java.io.IOException: open HTTP connection failed.
>       at sun.applet.AppletClassLoader.getBytes(AppletClassLoader.java:271)
>       at sun.applet.AppletClassLoader.access$100(AppletClassLoader.java:44)
>       at sun.applet.AppletClassLoader$1.run(AppletClassLoader.java:158)
>       at java.security.AccessController.doPrivileged(Native Method)
>       at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:155)
>       ... 9 more
> 
> -----------------------------
> 
> I tested it with JAVA_HOME unset (my default) and with JAVA_HOME set to 
> /usr/local/jdk.1.5.0/, with JAVA_VERSION set and unset.
> 
> When I try another applet, randomly on the web ( 
> http://www.java.com/en/download/help/testvm.xml ) , i get  the following too
> 
> Java Plug-in 1.5.0_13
> Using JRE version 1.5.0_13-p7 Java HotSpot(TM) Client VM
> User home directory = /home/betom
> 
> 
> ----------------------------------------------------
> 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>
> ----------------------------------------------------
> 
> load: class testvmDynamicJavaCom.class not found.
> java.lang.ClassNotFoundException: testvmDynamicJavaCom.class
>       at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:168)
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>       at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:119)
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>       at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:599)
>       at sun.applet.AppletPanel.createApplet(AppletPanel.java:723)
>       at sun.plugin.AppletViewer.createApplet(AppletViewer.java:1815)
>       at sun.applet.AppletPanel.runLoader(AppletPanel.java:652)
>       at sun.applet.AppletPanel.run(AppletPanel.java:326)
>       at java.lang.Thread.run(Thread.java:595)
> Caused by: java.io.IOException: open HTTP connection failed.
>       at sun.applet.AppletClassLoader.getBytes(AppletClassLoader.java:271)
>       at sun.applet.AppletClassLoader.access$100(AppletClassLoader.java:44)
>       at sun.applet.AppletClassLoader$1.run(AppletClassLoader.java:158)
>       at java.security.AccessController.doPrivileged(Native Method)
>       at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:155)
>       ... 9 more
> load: class ping2.class not found.
> java.lang.ClassNotFoundException: ping2.class
>       at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:168)
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>       at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:119)
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>       at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:599)
>       at sun.applet.AppletPanel.createApplet(AppletPanel.java:723)
>       at sun.plugin.AppletViewer.createApplet(AppletViewer.java:1815)
>       at sun.applet.AppletPanel.runLoader(AppletPanel.java:652)
>       at sun.applet.AppletPanel.run(AppletPanel.java:326)
>       at java.lang.Thread.run(Thread.java:595)
> Caused by: java.io.IOException: open HTTP connection failed.
>       at sun.applet.AppletClassLoader.getBytes(AppletClassLoader.java:271)
>       at sun.applet.AppletClassLoader.access$100(AppletClassLoader.java:44)
>       at sun.applet.AppletClassLoader$1.run(AppletClassLoader.java:158)
>       at java.security.AccessController.doPrivileged(Native Method)
>       at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:155)
>       ... 9 more
> 
> --------------------------------
> 
> If i load the 1.6 plugin instead, i get the same result, BUT ffox locks up , 
> using over 60% CPU non stop. FFox stops refreshing its window , and I have to 
> kill it.
> 
> The environment is the same  on 6.2 (eg, no lib paths defined,etc), but never 
> had this problem...  Any pointers? 
> 
> ( I reiterate, Eclipse, freemind, yed, Lucene's Luke analyzer, and others 
> work just fine)
> 
> thanks,

Hi there,
well, i figured what the problem is. I decided, when I moved to 7.0 , to enable 
IPV6 in my kernel. I don't actually have it set up properly, but i hope i'll be 
able to play with it soon.

. Since then, all my java apps that relied on networking stopped working. I 
fixed most of them by adding to my environment:

JAVAVM_OPTS_javaws=-J-Djava.net.preferIPv4Stack=true
JAVAVM_OPTS_java=-Djava.net.preferIPv4Stack=true

Under Eclipse, I have to run/debug  applications passing 
-Djava.net.preferIPv4Stack=true to their environment.

The fix for applets is very similar : in the java control panel, Java tab, 
'Java applet Runtime Settings', set the Java Runtime parameters to 
"-Djava.net.preferIPv4Stack=true". and voila! everything working again.

Hope this helps someone.
best,
B


_________________________
{Beto|Norberto|Numard} Meijome

"At times, to be silent is to lie." 
  Miguel de Unamuno

I speak for myself, not my employer. Contents may be hot. Slippery when wet. 
Reading disclaimers makes you go blind. Writing them is worse. You have been 
Warned.
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to