Webstart Msketch copy/paste

User 677b9c22ff

05-05-2010 19:18:57

Hi,


the new server and hosting of the JAVA Webstart examples now work really fast,


so here some error during copy/paste of a SMILES code within WINDOWs.


Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    at chemaxon.marvin.view.swing.ViewPanel.doPaste(Unknown Source)
    at chemaxon.marvin.swing.action.PasteAction.doAction(Unknown Source)
    at chemaxon.marvin.swing.MAction.actionPerformed(Unknown Source)
    at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at javax.swing.AbstractButton.doClick(Unknown Source)
    at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
    at javax.swing.plaf.basic.BasicMenuItemUI$Handler.menuDragMouseReleased(Unknown Source)
    at javax.swing.JMenuItem.fireMenuDragMouseReleased(Unknown Source)
    at javax.swing.JMenuItem.processMenuDragMouseEvent(Unknown Source)
    at javax.swing.JMenuItem.processMouseEvent(Unknown Source)
    at javax.swing.MenuSelectionManager.processMouseEvent(Unknown Source)
    at javax.swing.plaf.basic.BasicPopupMenuUI$MouseGrabber.eventDispatched(Unknown Source)
    at java.awt.Toolkit$SelectiveAWTEventListener.eventDispatched(Unknown Source)
    at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Unknown Source)
    at java.awt.Toolkit.notifyAWTEventListeners(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.Window.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)





Tobias


 

ChemAxon 990acf0dec

13-05-2010 07:13:47

Hi Tobias,


I apologize for not replying here earlier; we are still investigating this issue.


Best regards,


Akos

ChemAxon 5433b8e56b

14-05-2010 00:15:03

Hi Tobias,


please forgive me, i've forgotten to give you a response while i started to work on this issue, in paralel with many other issues.


I found the cause of the exception in the code, and fix that, but the original problem is that, Marvin grabs the clipboard content and instead of creating a molecule it returns a null. It can be because of some reason, wrong clipboard content, wrong code, or maybe data loss.


We worked a lot in the related code segments, and we fixed in fallback mechanisms, and in special cases. Currently i can not find any place where i can assume that null is given when a molecule is in the clipboard, and i weren't able to reproduce the issue.


So it may work in the upcoming release if not then i will investigate the issue deeper. At least 5.3.3 will not report the exception, but it may not paste the molecule. If this will be the case, then please send me some information about the environment, java version, operating system, and the steps that you make when the issue appears, the problematic molecule, and its format can also be useful.


Thank you for your patience and sorry for any inconvenience.


Best regards,
Istvan