Marvin display errors

User e34a92cce5

24-01-2007 12:48:52

Hello,


I am trying to use a few smarts strings to display structures on the web applet. I am using Marvin v4.0.6 One of the strimngs that I tried loading is


C(=O)N(C(=O))OC(=O)





The applet fails to load and gives me this error





java.lang.SecurityException: class "chemaxon.marvin.modules.CxsmilesImport"'s signer information does not match signer information of other classes in the same package


at java.lang.ClassLoader.checkCerts(Unknown Source)


at java.lang.ClassLoader.preDefineClass(Unknown Source)


at java.lang.ClassLoader.defineClass(Unknown Source)


at java.security.SecureClassLoader.defineClass(Unknown Source)


at java.net.URLClassLoader.defineClass(Unknown Source)


at java.net.URLClassLoader.access$100(Unknown Source)


at java.net.URLClassLoader$1.run(Unknown Source)


at java.security.AccessController.doPrivileged(Native Method)


at java.net.URLClassLoader.findClass(Unknown Source)


at sun.applet.AppletClassLoader.findClass(Unknown Source)


at java.lang.ClassLoader.loadClass(Unknown Source)


at sun.applet.AppletClassLoader.loadClass(Unknown Source)


at java.lang.ClassLoader.loadClass(Unknown Source)


at java.lang.ClassLoader.loadClassInternal(Unknown Source)


at java.lang.Class.forName0(Native Method)


at java.lang.Class.forName(Unknown Source)


at chemaxon.marvin.util.MolLoader.a(Unknown Source)


at chemaxon.marvin.util.MolLoader.n(Unknown Source)


at chemaxon.marvin.util.MolLoader.run(Unknown Source)


at chemaxon.marvin.common.swing.MolPanel.startLoader(Unknown Source)


at chemaxon.marvin.view.swing.ViewPanel.startstop(Unknown Source)


at JMView.start(Unknown Source)


at sun.applet.AppletPanel.run(Unknown Source)


at java.lang.Thread.run(Unknown Source)

User f359e526a1

24-01-2007 13:07:59

Hello, could you please try the latest Marvin 4.1.5 , since that contains a lot of bugfixes and new features.

User e34a92cce5

24-01-2007 14:03:49

I tried with the new v4.1.5 and it does the same. Interestingly, it displays the smarts fine when using MarvinSpace on a client PC station. However, it seems to be having trouble with the web display in converting the smarts to a readable format

ChemAxon 7c2d26e5cf

24-01-2007 14:42:27

It does not seem to be a Marvin bug. It can be a configuration error on your machine.


The marvin directory on you server can contains damaged or modified files.


The jar files can be corrupted if


- signed jars are modified and it is not resigned.


- jar files from different Marvin versions are mixed in the same directory.


When you update Marvin, take care to update the whole marvin directory, not only jmarvin.jar.


Please see the following topics:


- required files to run Marvin applets


- marvin 4.1.0 a 20 signing


- create an unsigned jar file from a signed jar


If applets examples from you site loads fine in other browsers (or other PC-s), the problem (browser caching) can be on the local machine.


In this case, clearing the JRE and browser cache can help.


How I can clear JRE cache?

User e34a92cce5

19-02-2007 15:41:42

Even after clearing the JRE cache and updating the entire marvin directory, I am getting the following error when I try to view the applets online. I am trying to update from Marvin 3.2 to Mavin 4.1
Quote:
cannot read an applet parameter: "For input string: "@[email protected]"" is not a number

ChemAxon 7c2d26e5cf

19-02-2007 16:49:17

Probably the code of the two versions of Marvin are mixed.


Instead of overwriting Marvin directory, delete the old one an copy the new one to the same place. The error message indicates that wrong version of marvin.js is used for Marvin applets.

User e34a92cce5

19-02-2007 17:47:27

Tried deleting the old directory and copied the new directory. It still gives the same message. I deleted the JRE cache as well as the temp browser files as well. Am I missing something obvious?

ChemAxon 7c2d26e5cf

19-02-2007 18:01:48

It can be a configuration problem on your side:


1. Check that in your applet example, your "marvin.js" and marvin codebase ( msketch_begin or mview_begin) refer to the same Marvin directory.


2. Clear both browser and JRE caches (marvin.js is cached by the browser till jmarvin.jar is cached by JRE). See this topic: How I can clear JRE cache?


3. Check your applet examples, probably the applet parameter is specified by wrong way.


Please follow the following syntax:


Code:
msketch_param("atomsize",0.8);