5.0.2 error MarvinView on startup

User 17ae043cc4

19-03-2008 19:04:48

Installed the new 5.0.2 over 5.0. Got the following error when I tried to start Marvin View. 5.0 worked without errors.


Window xP. Java 1.6








java.lang.ArrayIndexOutOfBoundsException: 4


at chemaxon.marvin.common.swing.action.ViewRecentFileActions.updateDelegates(Unknown Source)


at chemaxon.marvin.common.swing.action.ViewRecentFileActions.getActions(Unknown Source)


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


at chemaxon.marvin.beans.MViewPane.makeRecentFileListMenu(Unknown Source)


at chemaxon.marvin.View.<init>(Unknown Source)


at chemaxon.marvin.View.main(Unknown Source)


at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)


at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)


at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)


at java.lang.reflect.Method.invoke(Unknown Source)


at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)


at com.exe4j.runtime.WinLauncher.main(Unknown Source)





Darcy

ChemAxon 5433b8e56b

19-03-2008 21:54:36

Thank you for the bug report; we apologize for the inconveniences caused by MarvinView 5.0.2. We are going to fix this bug, and release a new Marvin version ASAP. Until that please do the following workaround:





1. Search for the "marvin.properties" file in your user's home directory (on linux: /home/username/.chemaxon/marvin.properties, on windows: c:\Documents and Settings\username\chemaxon\marvin.properties, on mac: /Users/username/chemaxon/marvin.properties).





2. There is a property in this file stored in the line starting with "viewRecentFileList", which is responsible for the exception. Please delete this line; the proper version of it will be created again after restarting MarvinView





3. Start MarvinView: the exception does not appear again.





The source of the bug: In the 5.0.1 release we introduced the recent file list feature in MarvinSketch. The functionality was not available in MarvinView, but the recent file history was already stored. This storage was not handled properly though, and unfortunately interacted with the storage feature in 5.0.2, which resulted in a mess in the corresponding row of the "marvin.properties" file. The deletion of this line solves the problem.