Marvin error on double click

User e34a92cce5

14-07-2010 11:34:19

I am using Marvin 5.3.5 on my web server and am unable to load up the applet in a seperate window when double clicking the structure. However the right click seems to work. The error in the Java console (using version 1.6) is:


Exception in thread "AWT-EventQueue-3" java.lang.NullPointerException
    at chemaxon.marvin.plugin.PluginFactory.getCount(Unknown Source)
    at chemaxon.marvin.plugin.PluginManager.callback(Unknown Source)
    at chemaxon.marvin.common.swing.MolPanel.g(Unknown Source)
    at chemaxon.marvin.common.swing.MolPanel.addToolsMenu(Unknown Source)
    at chemaxon.marvin.view.swing.modules.MViewFrame.init(Unknown Source)
    at chemaxon.marvin.view.swing.modules.MViewFrame.callback(Unknown Source)
    at chemaxon.marvin.view.swing.modules.GridBagView.setWinmode(Unknown Source)
    at chemaxon.marvin.view.swing.ViewPanel.setWinmode(Unknown Source)
    at chemaxon.marvin.view.swing.ViewPanel.openViewer(Unknown Source)
    at chemaxon.marvin.view.swing.ViewPanel.doubleClick(Unknown Source)
    at chemaxon.marvin.view.swing.ViewCanvas.mouseClicked(Unknown Source)
    at java.awt.AWTEventMulticaster.mouseClicked(Unknown Source)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at javax.swing.JComponent.processMouseEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)



ChemAxon 7c2d26e5cf

14-07-2010 19:01:51

Are you sure that all resources that required for the applet is available on your site?


Do MarvinView examples work for you from our site?


https://www.chemaxon.com/marvin/examples/applets/view/


If not, the problem is in your client machine configuration, in this case please give more info about your software environment (browser type/version, Java version, operating system).


If applets run for you from ChemAxon site, the problem is in your web server.


Which files are required for run Marvin applets

User e34a92cce5

14-07-2010 20:37:13

Hi,


I am able to run the applets from the Chemaxon site. So, obviously it has to do with my install of Marvin. I copied the marvin directory that comes with the standard platform non-specific JChem installation to my web server. It used to run fine until I updated to 5.3.5.  Here is the output from 'About" Marvin:


OS: x86 Windows XP


Java: 1.6.0_20


Environment: Trusted Applet


Browser: sun.plugin 1.1 (using Mozilla Firefox 3.6)

ChemAxon 7c2d26e5cf

15-07-2010 10:40:53

Remove the old marvin directory and unzip the new one. Do not merge the content of old and new versions.

User e34a92cce5

15-07-2010 12:14:38

Generally, I just replace the old directory with the new one. This time I deleted and copied as you suggested, cleared the Java classloader cache; still not opening. Gives me this error :


Exception in thread "AWT-EventQueue-2" java.lang.NullPointerException
    at chemaxon.marvin.plugin.PluginFactory.getCount(Unknown Source)
    at chemaxon.marvin.plugin.PluginManager.callback(Unknown Source)
    at chemaxon.marvin.common.swing.MolPanel.g(Unknown Source)
    at chemaxon.marvin.common.swing.MolPanel.addToolsMenu(Unknown Source)
    at chemaxon.marvin.view.swing.modules.MViewFrame.init(Unknown Source)
    at chemaxon.marvin.view.swing.modules.MViewFrame.callback(Unknown Source)
    at chemaxon.marvin.view.swing.modules.GridBagView.setWinmode(Unknown Source)
    at chemaxon.marvin.view.swing.ViewPanel.setWinmode(Unknown Source)
    at chemaxon.marvin.view.swing.ViewPanel.openViewer(Unknown Source)
    at chemaxon.marvin.view.swing.ViewPanel.doubleClick(Unknown Source)
    at chemaxon.marvin.view.swing.ViewCanvas.mouseClicked(Unknown Source)
    at java.awt.AWTEventMulticaster.mouseClicked(Unknown Source)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at javax.swing.JComponent.processMouseEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)




 


 

ChemAxon 7c2d26e5cf

16-07-2010 11:50:36

Do you have calculator license in your home folder (C:\Documents and Settings\<username>\chemaxon\license.cxl in Windows, /home/<username>/.chemaxon/license.cxl in other systems)?

User e34a92cce5

16-07-2010 12:34:17

Yes, I do. It's a Linux machine; so it is there at /home/<username>/.chemaxon/license.cxl (attached)

ChemAxon 7c2d26e5cf

16-07-2010 13:41:40

I have deleted your attachment.


Uploading your license file to the forum was a bad idea. Sharing your license with all users is not a good action.


Anyway, have you got any other message on the Java Console when this error occurs? Are there any warning by startup (before attach viewer)?

User e34a92cce5

16-07-2010 18:26:53

Sorry abt that. There are no warnings in the Java console at start up. I only get the warnings the moment I do a double click.

ChemAxon 7c2d26e5cf

22-07-2010 10:23:39

I assume that certain properties files could not be loaded in. Probably these files are missing or your Java reject to load-in because of security reason (depend on your Java settings).


Firstly, check whether "xjars/plugins.properties" and/or plugins/plugins.properties exist.


After that, do the following:


- Open Java Control Panel (Start menu / Control Panel / Java ).


- Select Advanced tab on in Java Control Panel.


- Open Security / Mixed code node in the tree and check your settings.


- Select "Disable verification" from the options.


- Restart your browser and test the Marvin applet again.


Do you see any differences?


 

User e34a92cce5

07-08-2010 01:23:35

I verified that xjars/plugins.properties exists and disabled verification from the Java control panel. Still no difference

ChemAxon e08c317633

09-08-2010 10:45:32

We cannot reproduce the error, but we made an attempt to fix it.  We are still testing if the fix makes any difference. The fix will be released in Marvin 5.3.7.


Zsolt