WordRider Home
java.lang.NullPointerException - XGetAtomName
November 13, 2015 10:54PM
Hi, I found this error:
11:43:35 PM SEVERE: Uncaught exception on EDT.
java.lang.NullPointerException: Failed to retrieve atom name.
at sun.awt.X11.XlibWrapper.XGetAtomName(Native Method)
at sun.awt.X11.XAtom.getName(XAtom.java:186)
at sun.awt.X11.XDataTransferer.getTargetNameForAtom(XDataTransferer.java:165)
at sun.awt.X11.XDataTransferer.getNativeForFormat(XDataTransferer.java:154)
at sun.awt.datatransfer.DataTransferer.getFlavorsForFormatsAsSet(DataTransferer.java:812)
at sun.awt.datatransfer.SunClipboard.formatArrayAsDataFlavorSet(SunClipboard.java:347)
at sun.awt.datatransfer.SunClipboard.isDataFlavorAvailable(SunClipboard.java:190)
at cz.vity.freerapid.gui.managers.ClipboardMonitorManager.copyClipboard(ClipboardMonitorManager.java:197)
at cz.vity.freerapid.gui.managers.ClipboardMonitorManager.access$100(ClipboardMonitorManager.java:26)
at cz.vity.freerapid.gui.managers.ClipboardMonitorManager$2.propertyChange(ClipboardMonitorManager.java:142)
at java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:335)
at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:328)
at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:263)
at java.awt.KeyboardFocusManager.firePropertyChange(KeyboardFocusManager.java:1493)
at java.awt.KeyboardFocusManager.setGlobalActiveWindow(KeyboardFocusManager.java:980)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:678)
Atom was 0


The reason of error is pretty tricky. I'm connected to linux desktop over xrdp from windows and there is some issue with clipboard. When I try to paste, or turn on clipboard monitor, in frd, it crashes. I think some try-catch-ignore feature will be great in this case.

Thanks.



Edited 1 time(s). Last edit at 11/13/2015 10:54PM by sedlacl.
Re: java.lang.NullPointerException - XGetAtomName
November 13, 2015 11:26PM
This seems to be some sort of a Java bug: [bugs.openjdk.java.net]

I guess we could add a try-catch workaround like Netbeans did: [netbeans.org]
Re: java.lang.NullPointerException - XGetAtomName
November 13, 2015 11:52PM
It would be great. I would like to notice I use oracle java implementation which has this bug too. Thanks
Sorry, only registered users may post in this forum.

Click here to login