User 5143c8f14d
10-06-2009 02:09:32
Hi,
I have found that marvin will sometimes load a new Java VM when a webpage is reloaded rather than use the existing JVM which contains the applet. Running under windows on reloading a page containing the applet I can see a new java.exe process start, load and then the existing java.exe process will stop. This adds the overhead of starting java to the applet load time. This does not happen everytime the page is loaded, sometimes the existing JVM is used and the load time is quick.
The environment I am experiencing the error is:
Product Version: MarvinSketch 5.2.2
Build Date: 2009-05-26
Operating System: x86 Windows XP 5.1
Java: Sun Microsystems Inc. Java 1.6.0_12
Browser: Firefox 3.0.10 (also IE7)
The following output is captured in the java console in the case where reloading the webpage causes the JVM to be reloaded. It covers from when the browser reload button is pressed to the point the first JVM is discarded. The log for the new JVM contains the ouput from a new applet being loaded (I haven't included that here).
basic: Starting applet teardown
network: Cache entry not found [url: http://www.surechem.org/chemical/marvin/META-INF/services/com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager, version: null]
network: Connecting http://www.surechem.org/chemical/marvin/META-INF/services/com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager with proxy=DIRECT
network: Connecting http://www.surechem.org:80/ with proxy=DIRECT
network: Connecting http://www.surechem.org/chemical/marvin/META-INF/services/com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager with cookie "__utma=192279976.1778062271.1216007475.1244495473.1244583236.331; __utmz=192279976.1240789253.308.10.utmccn=(referral)|utmcsr=localhost|utmcct=/scws/demo/search.php|utmcmd=referral; PHPSESSID=b0j0jah51cnk57431ma5k62jm7; __utmc=192279976; __utmb=192279976"
network: Cache entry not found [url: http://www.surechem.org/chemical/marvin/META-INF/services/com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager, version: null]
java.lang.InterruptedException
at java.lang.Object.wait(Native Method)
at sun.plugin2.message.Queue.waitForMessage(Unknown Source)
at sun.plugin2.message.Pipe.receive(Unknown Source)
at sun.plugin2.main.client.MessagePassingExecutionContext.getProxyList(Unknown Source)
at sun.plugin2.main.client.PluginProxySelector.select(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.URL.openStream(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader.getResourceAsStream(Unknown Source)
at com.sun.org.apache.xalan.internal.xsltc.dom.SecuritySupport12$6.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.org.apache.xalan.internal.xsltc.dom.SecuritySupport12.getResourceAsStream(Unknown Source)
at com.sun.org.apache.xalan.internal.xsltc.dom.ObjectFactory.findJarServiceProviderName(Unknown Source)
at com.sun.org.apache.xalan.internal.xsltc.dom.ObjectFactory.lookUpFactoryClassName(Unknown Source)
at com.sun.org.apache.xalan.internal.xsltc.dom.ObjectFactory.lookUpFactoryClass(Unknown Source)
at com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager.getDTMManagerClass(Unknown Source)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.<init>(Unknown Source)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at javax.xml.transform.FactoryFinder.newInstance(Unknown Source)
at javax.xml.transform.FactoryFinder.find(Unknown Source)
at javax.xml.transform.TransformerFactory.newInstance(Unknown Source)
at chemaxon.marvin.uif.builder.parser.ObjectReader.b(Unknown Source)
at chemaxon.marvin.uif.builder.parser.ObjectReader.a(Unknown Source)
at chemaxon.marvin.uif.builder.parser.ObjectReader.a(Unknown Source)
at chemaxon.marvin.uif.builder.parser.ObjectReader.write(Unknown Source)
at chemaxon.marvin.uif.builder.DefaultModuleConfiguration.saveShortcutConfiguration(Unknown Source)
at chemaxon.marvin.uif.module.GUIModule.saveShortcutConfiguration(Unknown Source)
at chemaxon.marvin.sketch.swing.SketchGUIModule.d(Unknown Source)
at chemaxon.marvin.sketch.swing.SketchPanel.G(Unknown Source)
at chemaxon.marvin.sketch.swing.SketchPanel.destroy(Unknown Source)
at JMSketch.destroy(Unknown Source)
at AppletLaunch.destroy(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
network: Connecting http://www.surechem.org/chemical/marvin/META-INF/services/com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager with proxy=DIRECT
sun.plugin2.main.client.PluginMain: unrecognized message ID 42
network: Connecting http://www.surechem.org:80/ with proxy=DIRECT
network: Connecting http://www.surechem.org/chemical/marvin/META-INF/services/com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager with cookie "__utma=192279976.1778062271.1216007475.1244495473.1244583236.331; __utmz=192279976.1240789253.308.10.utmccn=(referral)|utmcsr=localhost|utmcct=/scws/demo/search.php|utmcmd=referral; PHPSESSID=b0j0jah51cnk57431ma5k62jm7; __utmc=192279976; __utmb=192279976"
java.lang.ThreadDeath
at java.lang.Thread.stop(Unknown Source)
at java.lang.ThreadGroup.stopOrSuspend(Unknown Source)
at java.lang.ThreadGroup.stop(Unknown Source)
at sun.awt.AppContext.dispose(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppContextDisposer.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
java.lang.InterruptedException
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:485)
at com.sun.deploy.util.DeployAWTUtil.invokeAndWait(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.runOnEDT(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
basic: Finished applet teardown
Thanks for your help,
Richard Koks