Online JAVA applets error with JAVA 6 (build 1.6.0_07-b06)

User 677b9c22ff

01-10-2009 22:42:56

Hi,


I can load Marvon and MSketch online, without problems from webstart:


http://www.chemaxon.com/marvin/examples/webstart/msketch.jnlp


 


But using FireFox, Chrome and IE most of the embedded applets fail.


http://www.chemaxon.com/marvin/sketch/index.html


or


http://www.lipidmaps.org/tools/structuredrawing/StrDraw.pl?Mode=SetupGPStrDraw


 


Not sure if http://www.chemaxon.com/marvin/marvin.js is the reason or JAVA itself.




WIN32 XP
Java Plug-in 1.6.0_13
Using JRE version 1.6.0_07 Java HotSpot(TM) Client VM
User home directory = XXX

load: class JMSketchLaunch not found.
java.lang.ClassNotFoundException: JMSketchLaunch
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.<init>;(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at java.net.HttpURLConnection.getResponseCode(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 7 more
Exception: java.lang.ClassNotFoundException: JMSketchLaunch
load: class JMSketchLaunch not found.
java.lang.ClassNotFoundException: JMSketchLaunch
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.<init>;(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at java.net.HttpURLConnection.getResponseCode(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 7 more
Exception: java.lang.ClassNotFoundException: JMSketchLaunch


 


Tobias

ChemAxon 5433b8e56b

06-10-2009 17:42:03

Hi Tobias,


I have tested our applets with your configuration, also in FF3, IE8 and Chrome, but i was not able to reproduce this error neither on our sites nor on the lipidmaps site.


As it seems in the start of the console output - you have attached - you have a 1.6.0_13 version of java installed but disabled for applet runtime environment, so the applet runs in the old 1.6.0_07 java runtime environment with the new version of plugins. Since in 1.6.0_10 there were some incompatible change in the plugin, and the new plugin2 was introduced, it may cause the problem. There has to be some other important circumstance because on my environment with this set of java version the applets working fine after i accept the version problem which is shown before the applet started.


Would you please enable the 1.6.0_13 runtime environment, and try to run the applets? You can do so on the java tab of java control panel by clicking the upper "View" button, and tick the "enabled" checkbox to on for 1.6.0_13.  Please inform me if this solves the problem. Otherwise please send me more information about your environment.


Best regards,
Istvan

User 677b9c22ff

07-10-2009 00:59:12

Hi Istvan,


upgrading to JAVA 1.6.0_13 for Applets solves the problem.


However it seems weird that it requests additional user/access rights because


my firewall jumps in. And  it would not jump in when applets run, only when the


application is loaded via JNLP. Well.


 


Thanks for checking!


Tobias



ChemAxon 5433b8e56b

07-10-2009 08:50:51

Hi


I think, the firewall comes up because the jnlp is starting the java vm, wich downloads the necessary file for run the webstart application, and perhaps java not have the rights in the firewall to access the internet. When you are starting an applet, the browser downloads the jar files, and the browser has the rights to do that.


Regards,
Istvan