Cannot launch license manager

User 85efc514ba

08-06-2015 23:59:58

Test the latest 32-bit J4X 15.6.100.2677.


After installation, click Licenses button on the ribbon


Got an error "Unable to run license manager!" with exception


Exception: System.InvalidCastException


Message: Unable to cast object of type 'sun.awt.image.ToolkitImage' to type 'java.awt.image.BufferedImage'.


StackTrace:    at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)


   at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)


   at System.Windows.Forms.Control.Invoke(Delegate method)


   at ikvm.awt.NetToolkit.Invoke[TResult](Func`1 del)


   at ikvm.awt.NetToolkit.createFrame(Frame target)


   at java.awt.Frame.addNotify()


   at java.awt.Window.pack()


   at chemaxon.license.LicenseManagerGUI.createFrame(String arg)


   at chemaxon.license.LicenseManagerGUI.createFrame()


   at ChemAxon.NET.Windows.Forms.Licensing.MarvinLicenseManagerView.†††


†††ŒšŠ()


   at ChemAxon.NET.Windows.Forms.Licensing.MarvinLicenseManagerView..ctor()


   at ChemAxon.JChemExcel.Actions.LicenseAction.Execute(String tag)


User 85efc514ba

09-06-2015 00:02:12

I relaunch Excel without opening any existing J4X sheet.  Click on Licenses. Got the same error with a different exception message:


Exception: System.NullReferenceException


Message: Object reference not set to an instance of an object.


StackTrace:    at javax.swing.MultiUIDefaults.getUIError(String )


   at javax.swing.UIDefaults.getUI(JComponent target)


   at javax.swing.UIManager.getUI(JComponent target)


   at javax.swing.JPanel.updateUI()


   at javax.swing.JPanel..ctor(LayoutManager layout, Boolean isDoubleBuffered)


   at javax.swing.JPanel..ctor(Boolean isDoubleBuffered)


   at javax.swing.JPanel..ctor()


   at javax.swing.JRootPane.createGlassPane()


   at javax.swing.JRootPane..ctor()


   at javax.swing.JFrame.createRootPane()


   at javax.swing.JFrame.frameInit()


   at javax.swing.JFrame..ctor()


   at chemaxon.license.LicenseManagerGUI.createFrame(String arg)


   at chemaxon.license.LicenseManagerGUI.createFrame()


   at ChemAxon.NET.Windows.Forms.Licensing.MarvinLicenseManagerView.†††


†††ŒšŠ()


   at ChemAxon.NET.Windows.Forms.Licensing.MarvinLicenseManagerView..ctor()


   at ChemAxon.JChemExcel.Actions.LicenseAction.Execute(String tag)

ChemAxon a3dda216df

09-06-2015 08:15:06

Hi,


Does this happen after restart as well? Please, describe your environment: Windows, Office version.


As a workaround, please follow these steps:


1. check your C:\Users\current user\chemaxon folder, if it contains any license.cxl file.


2. If yes, please, rename it and copy your current license file into this folder.


3. Make sure, it is named as "license.cxl". JCXL should work now with your current licenses after restart.


4. You can also check our documentation on the website:


https://www.chemaxon.com/jchem4excel/adminguide/licensing.html


Hope this helps, but please let me know if you still experiencing the issue.


Regards,


Anna

ChemAxon a3dda216df

18-06-2015 09:22:24

Hi,


The fix is available in latest release (15.6.1500), which can be downloaded from here:


JChem for Excel installers:


https://www.chemaxon.com/download/jchem-for-office/#jc4xl


JChem for Office installers:


https://www.chemaxon.com/download/jchem-for-office/#jc4o


Please, let me know, if you had a chance to test it.


Regards,


Anna