license related exception

User d5d3760021

19-07-2016 20:58:03

In our software, we didn't used to need to explicitly set the license file. I'm testing out updating the version of marvin to 16.4.25, and now I get this exception when running the code:


 


java.lang.ClassCastException: chemaxon.marvin.sketch.swing.LicensePanel cannot be cast to chemaxon.marvin.view.swing.ViewPanel


at chemaxon.marvin.beans.MViewPane.setEditable(MViewPane.java:906) ~[com.chemaxon-marvin-gui.jar:master-4992]


 


 


This exception goes away if I set the license before this point using LicenseManager.setLicense(marvinLicense);


Is this a bug on your part or are we now required to call setLicense in all software packages which use marvin?


 



ChemAxon cbb451ac1e

22-07-2016 13:34:21

thank you for your post. we are looking into this. 

ChemAxon 775b29fd6e

02-08-2016 11:55:08

Hello Amos,


thank you for your finding. Since Marvin Beans 6.1 setting the license file is mandatory so your solution is correct. Apart from that, the exception what you mentioned above is undesirable. We are going to fix it soon.


Regards, Zoltan.

User d5d3760021

02-08-2016 11:59:23

Ok, thanks!