marvin 4.1.0 a 20 signing

User fa1369adab

28-07-2006 19:02:00

I am having problems with preload MolExport in MarvinSketch, getting this error:


Code:



java.lang.SecurityException: class "chemaxon.marvin.modules.MrvImport"'s signer


information does not match signer information of other classes in the same


package


    at java.lang.ClassLoader.checkCerts(ClassLoader.java:775)


    at java.lang.ClassLoader.preDefineClass(ClassLoader.java:487)


    at java.lang.ClassLoader.defineClass(ClassLoader.java:614)


    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)


    at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)


    at java.net.URLClassLoader.access$100(URLClassLoader.java:56)


    at java.net.URLClassLoader$1.run(URLClassLoader.java:195)


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


    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)


    at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:147)


    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 java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)


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


    at java.lang.Class.forName(Class.java:164)


    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)


...








Refoyl

User fa1369adab

28-07-2006 19:13:39

Perhaps this was my error. I don't see the problem after I clear the browser cache and the Java classloader cache a few times.





Refoyl

ChemAxon 7c2d26e5cf

28-07-2006 23:08:19

Exactly. Mixing new classes/jars with cached ones can cause such kind of problems. Because of it, clearing cache is useful when you try the updated applet.

User 870ab5b546

30-07-2006 19:19:04

In order to take advantage of the new features of Marvin 4.1 (in fact, in order to be able to use Marvin 4.1 at all), we need a jchem.jar file that contains the marvin.jar from 4.1. Can you provide?

ChemAxon 7c2d26e5cf

31-07-2006 09:55:17

Szilard can build JChem package but he is on holiday. We will build a new jchem.zip as soon as possible.

User 870ab5b546

31-07-2006 10:52:50

How long will that be?

ChemAxon 7c2d26e5cf

31-07-2006 10:59:50

Szilard is on holiday whole week.

User 870ab5b546

31-07-2006 15:40:12

I didn't know Csizi let y'all take vacations.... Especially for a whole week....





OK, we are trying to back up to Marvin 4.0.6, but we have encountered a serious problem: MarvinSketch fails to completely initialize. The Java console says:





network: Connecting http://epoch.chem.uky.edu:9080/nosession/marvin/img/loading.gif with proxy=DIRECT


network: Connecting http://epoch.chem.uky.edu:9080/nosession/marvin/img/loading.gif with cookie " "


basic: Loading http://epoch.chem.uky.edu:9080/nosession/marvin/img/loading.gif from cache


basic: Loading applet ...


basic: Initializing applet ...


basic: Starting applet ...


network: Connecting http://epoch.chem.uky.edu:9080/nosession/marvin/xjars/plugins.properties with proxy=DIRECT


network: Connecting http://epoch.chem.uky.edu:9080/nosession/marvin/xjars/plugins.properties with cookie " "


network: Connecting http://epoch.chem.uky.edu:9080/nosession/marvin/chemaxon/marvin/templates/custom.t with proxy=DIRECT


network: Connecting http://epoch.chem.uky.edu:9080/nosession/marvin/chemaxon/marvin/templates/custom.t with cookie " "


network: Connecting http://epoch.chem.uky.edu:9080/nosession/marvin/ACE.abbrevgroups with proxy=DIRECT


network: Connecting http://epoch.chem.uky.edu:9080/nosession/marvin/ACE.abbrevgroups with cookie " "


liveconnect: JavaScript: UniversalBrowserRead enabled


liveconnect: JavaScript: UniversalJavaPermission enabled


liveconnect: JavaScript: UniversalBrowserRead enabled


liveconnect: JavaScript: UniversalJavaPermission enabled





MarvinSketch says:





java.lang.NullPointerException


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


at chemaxon.marvin.common.swing.SketchPanel.r(Unknown Source)


at chemaxon.marvin.common.swing.SketchPanel.s(Unknown Source)


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


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


at JMSketch.init(Unknown Source)


at sun.applet.AppletPanel.run(AppletPanel.java:378)


at java.lang.Thread.run(Thread.java:595)

ChemAxon 7c2d26e5cf

31-07-2006 17:36:26

Can you show me the example where you have got this nullpointerexception?

User 870ab5b546

31-07-2006 18:22:46

http://epoch.chem.uky.edu:9080/epoch-plugin/public/hybrids.jsp

ChemAxon 7c2d26e5cf

01-08-2006 12:43:26

Your example works for me.


Probably, different Marvin versions are mixing in your cache. By checking your example on epoch site, your Marvin says that its version is 4.0.5. Since you said that your Marvin was downgraded to 4.0.6 from 4.1.0alpha20, probably the code of 4.0.5 and 4.0.6 are mixing somewhere on your site or in your cache.


By the way, the certification key of signed jars in 4.0.5 have been expired. It worth to update 4.0.6 which was built with the updated certifications.

User 870ab5b546

01-08-2006 13:16:10

Really? It doesn't work for me at all. I am using Safari 2.0.4 on MacOS 10.4.7, and I'm pretty sure Rafi is using Firefox on Linux. I emptied my cache and cleared my classloader cache. What browser are you using?





I'll pass your suggestion on to Rafi.

ChemAxon 7c2d26e5cf

01-08-2006 13:37:38

I also use the same platform: Safari 2.0.4, OS X 10.4.7.


It also works on my Linux (Fedora 3, FireFox 1.5.0.5, Java 1.4.2_04).

User 870ab5b546

01-08-2006 14:06:42

Thanks, that info told me that the problem was probably related to caching. So I cleaned out all my Java caches, and now I can load the page just fine.

User fa1369adab

01-08-2006 18:49:19

I was able to solve the problem, finally, by clearing out my
Code:
~/.java/deployment/cache
directory and restarting the browser. It may be that MarvinSketch 4.1 upgraded some swing or awt libraries that are inconsistent with MarvinSketch 4.0, and those upgrades prevented old things from working.