openmolecules.org

 
Home » DataWarrior » Bug Reports » Copy-paste for structures throwing error in the master branch
Copy-paste for structures throwing error in the master branch [message #1952] Mon, 10 July 2023 13:38 Go to next message
helloWorld22 is currently offline  helloWorld22
Messages: 13
Registered: June 2022
Junior Member
Hi,
I'm getting following error when running the code from master branch when I try to copy paste a structure.
But the issue is not happening when I install DW5.5.0 from the msi windows installer.
I took the latest code from master branch.
The error I'm getting:

java.lang.UnsatisfiedLinkError: no actelionclip in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1860)
at java.lang.Runtime.loadLibrary0(Runtime.java:871)
at java.lang.System.loadLibrary(System.java:1124)
at com.actelion.research.gui.clipboard.NativeClipboardAccessor. (NativeClipboardAccessor.java:59)
at com.actelion.research.gui.clipboard.ClipboardHandler.pasteMo leculeWindowsNative(ClipboardHandler.java:242)
at com.actelion.research.gui.clipboard.ClipboardHandler.pasteMo lecules(ClipboardHandler.java:122)
at com.actelion.research.gui.clipboard.ClipboardHandler.pasteMo lecule(ClipboardHandler.java:102)
at com.actelion.research.gui.clipboard.ClipboardHandler.pasteMo lecule(ClipboardHandler.java:97)
at com.actelion.research.gui.editor.GenericEditorArea.pasteMole cule(GenericEditorArea.java:835)
at com.actelion.research.gui.editor.GenericEditorArea.paste(Gen ericEditorArea.java:811)
at com.actelion.research.gui.editor.GenericEditorArea.eventHapp ened(GenericEditorArea.java:1234)
at com.actelion.research.gui.editor.GenericEditorArea.eventHapp ened(GenericEditorArea.java:616)
at com.actelion.research.gui.generic.GenericEventHandler.fireEv ent(GenericEventHandler.java:28)
at com.actelion.research.gui.swing.SwingKeyHandler.keyPressed(S wingKeyHandler.java:23)
at java.awt.Component.processKeyEvent(Component.java:6497)
at javax.swing.JComponent.processKeyEvent(JComponent.java:2832)
at java.awt.Component.processEvent(Component.java:6316)
at java.awt.Container.processEvent(Container.java:2239)
at java.awt.Component.dispatchEventImpl(Component.java:4889)
at java.awt.Container.dispatchEventImpl(Container.java:2297)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusM anager.java:1954)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Defaul tKeyboardFocusManager.java:834)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Def aultKeyboardFocusManager.java:1102)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Def aultKeyboardFocusManager.java:973)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKe yboardFocusManager.java:799)
at java.awt.Component.dispatchEventImpl(Component.java:4760)
at java.awt.Container.dispatchEventImpl(Container.java:2297)
at java.awt.Window.dispatchEventImpl(Window.java:2746)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doInte rsectionPrivilege(ProtectionDomain.java:74)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doInte rsectionPrivilege(ProtectionDomain.java:84)
at java.awt.EventQueue$4.run(EventQueue.java:733)
at java.awt.EventQueue$4.run(EventQueue.java:731)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doInte rsectionPrivilege(ProtectionDomain.java:74)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:730)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDis patchThread.java:205)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispat chThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispat chThread.java:109)
at java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java: 190)
at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java: 235)
at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java: 233)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java: 233)
at java.awt.Dialog.show(Dialog.java:1084)
at java.awt.Component.show(Component.java:1671)
at java.awt.Component.setVisible(Component.java:1623)
at java.awt.Window.setVisible(Window.java:1014)
at java.awt.Dialog.setVisible(Dialog.java:1005)
at com.actelion.research.gui.JEditableStructureView.mouseClicke d(JEditableStructureView.java:100)
at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaste r.java:269)
at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaste r.java:269)
at java.awt.Component.processMouseEvent(Component.java:6542)
at javax.swing.JComponent.processMouseEvent(JComponent.java:332 4)
at java.awt.Component.processEvent(Component.java:6304)
at java.awt.Container.processEvent(Container.java:2239)
at java.awt.Component.dispatchEventImpl(Component.java:4889)
at java.awt.Container.dispatchEventImpl(Container.java:2297)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container. java:4904)
at java.awt.LightweightDispatcher.processMouseEvent(Container.j ava:4544)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java: 4476)
at java.awt.Container.dispatchEventImpl(Container.java:2283)
at java.awt.Window.dispatchEventImpl(Window.java:2746)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doInte rsectionPrivilege(ProtectionDomain.java:74)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doInte rsectionPrivilege(ProtectionDomain.java:84)
at java.awt.EventQueue$4.run(EventQueue.java:733)
at java.awt.EventQueue$4.run(EventQueue.java:731)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doInte rsectionPrivilege(ProtectionDomain.java:74)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:730)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDis patchThread.java:205)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispat chThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDis patchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread. java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread. java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82 )
java.lang.UnsatisfiedLinkError: com.actelion.research.gui.clipboard.NativeClipboardAccessor. getClipboardData(Ljava/lang/String;)[B
at com.actelion.research.gui.clipboard.NativeClipboardAccessor. getClipboardData(Native Method)
at com.actelion.research.gui.clipboard.ClipboardHandler.pasteMo leculeWindowsNative(ClipboardHandler.java:242)
at com.actelion.research.gui.clipboard.ClipboardHandler.pasteMo lecules(ClipboardHandler.java:122)
at com.actelion.research.gui.clipboard.ClipboardHandler.pasteMo lecule(ClipboardHandler.java:102)
at com.actelion.research.gui.clipboard.ClipboardHandler.pasteMo lecule(ClipboardHandler.java:97)
at com.actelion.research.gui.editor.GenericEditorArea.pasteMole cule(GenericEditorArea.java:835)
at com.actelion.research.gui.editor.GenericEditorArea.paste(Gen ericEditorArea.java:811)
at com.actelion.research.gui.editor.GenericEditorArea.eventHapp ened(GenericEditorArea.java:1234)
at com.actelion.research.gui.editor.GenericEditorArea.eventHapp ened(GenericEditorArea.java:616)
at com.actelion.research.gui.generic.GenericEventHandler.fireEv ent(GenericEventHandler.java:28)
at com.actelion.research.gui.swing.SwingKeyHandler.keyPressed(S wingKeyHandler.java:23)
at java.awt.Component.processKeyEvent(Component.java:6497)
at javax.swing.JComponent.processKeyEvent(JComponent.java:2832)
at java.awt.Component.processEvent(Component.java:6316)
at java.awt.Container.processEvent(Container.java:2239)
at java.awt.Component.dispatchEventImpl(Component.java:4889)
at java.awt.Container.dispatchEventImpl(Container.java:2297)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusM anager.java:1954)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Defaul tKeyboardFocusManager.java:834)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Def aultKeyboardFocusManager.java:1102)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Def aultKeyboardFocusManager.java:973)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKe yboardFocusManager.java:799)
at java.awt.Component.dispatchEventImpl(Component.java:4760)
at java.awt.Container.dispatchEventImpl(Container.java:2297)
at java.awt.Window.dispatchEventImpl(Window.java:2746)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doInte rsectionPrivilege(ProtectionDomain.java:74)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doInte rsectionPrivilege(ProtectionDomain.java:84)
at java.awt.EventQueue$4.run(EventQueue.java:733)
at java.awt.EventQueue$4.run(EventQueue.java:731)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doInte rsectionPrivilege(ProtectionDomain.java:74)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:730)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDis patchThread.java:205)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispat chThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispat chThread.java:109)
at java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java: 190)
at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java: 235)
at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java: 233)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java: 233)
at java.awt.Dialog.show(Dialog.java:1084)
at java.awt.Component.show(Component.java:1671)
at java.awt.Component.setVisible(Component.java:1623)
at java.awt.Window.setVisible(Window.java:1014)
at java.awt.Dialog.setVisible(Dialog.java:1005)
at com.actelion.research.gui.JEditableStructureView.mouseClicke d(JEditableStructureView.java:100)
at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaste r.java:269)
at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaste r.java:269)
at java.awt.Component.processMouseEvent(Component.java:6542)
at javax.swing.JComponent.processMouseEvent(JComponent.java:332 4)
at java.awt.Component.processEvent(Component.java:6304)
at java.awt.Container.processEvent(Container.java:2239)
at java.awt.Component.dispatchEventImpl(Component.java:4889)
at java.awt.Container.dispatchEventImpl(Container.java:2297)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container. java:4904)
at java.awt.LightweightDispatcher.processMouseEvent(Container.j ava:4544)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java: 4476)
at java.awt.Container.dispatchEventImpl(Container.java:2283)
at java.awt.Window.dispatchEventImpl(Window.java:2746)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doInte rsectionPrivilege(ProtectionDomain.java:74)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doInte rsectionPrivilege(ProtectionDomain.java:84)
at java.awt.EventQueue$4.run(EventQueue.java:733)
at java.awt.EventQueue$4.run(EventQueue.java:731)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doInte rsectionPrivilege(ProtectionDomain.java:74)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:730)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDis patchThread.java:205)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispat chThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDis patchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread. java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread. java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82 )
Re: Copy-paste for structures throwing error in the master branch [message #1953 is a reply to message #1952] Tue, 11 July 2023 22:39 Go to previous messageGo to next message
nbehrnd is currently offline  nbehrnd
Messages: 211
Registered: June 2019
Senior Member
Hi,

in case you want to use DW (contrasting to: modification of the underlying source code), then you should 1) fetch the basic installer suitable for the operational system in use from the download page,[1] 2) install DW on the computer, and 3) fetch the OS dependent archive of updated .jar (for Windows,[2] which again is a different one for Linux/Mac[3]). Copy then the content of this archive (at present [current update by Thursday 2023-06-08] four .jar files) into the folder where DW was installed and relaunch the program. Frequently, there are about two to four weeks between two updates to introduce new functionality to DW. It equally is the recommended approach to bypass building the program's executable by your own, a task typically needed only if you want to contribute to the program's development by change of the underlying source code. (Or is the later task you aim for?)

With regards,

Norwid


[1] https://openmolecules.org/datawarrior/download.html
[2] https://openmolecules.org/datawarrior/dw550win.zip
[3] https://openmolecules.org/datawarrior/dw550x.zip
Re: Copy-paste for structures throwing error in the master branch [message #1982 is a reply to message #1953] Wed, 09 August 2023 11:12 Go to previous message
helloWorld22 is currently offline  helloWorld22
Messages: 13
Registered: June 2022
Junior Member
Hi,
Thanks for replying.
We have our requirement where we dont want to keep the plugins and macros to all the system. Instead of keep the plugin in a shared path so that as an admin/developer we can manage the plugins. Also macros can be shared across.
In the current codebase it is not possible.
After modifying, I can successfully build DW codebase if I copy actelionclip.dll in the class path.
EXE can be created using launch4j and inno setup ( as we are only using windows).

The problem is - DW depends on JchemLIB which depends on actelionclip.dll.
The code for the dll is not exposed and I can find the dll in programfiles in datawarrior.
Not sure if the dll is opensourced.

It not, can jchemlib use any other clipboard copy-paste jar?



[Updated on: Wed, 09 August 2023 11:16]

Report message to a moderator

Previous Topic: Bug in how stereochemistry is reported
Next Topic: SMILES Code
Goto Forum:
  


Current Time: Thu May 23 04:36:54 CEST 2024

Total time taken to generate the page: 0.04378 seconds