Opened 8 years ago

Closed 8 years ago

Last modified 7 years ago

#11485 closed defect (fixed)

NPE: Failed to retrieve atom name

Reported by: naoliv Owned by: team
Priority: normal Milestone: 15.05
Component: Core Version:
Keywords: javabug npe linux x11 Cc:


I pressed Alt+A and got this:

Atom was 0
ERRO: java.lang.NullPointerException: Failed to retrieve atom name.
java.lang.NullPointerException: Failed to retrieve atom name.
	at sun.awt.X11.XlibWrapper.XGetAtomName(Native Method)
	at sun.awt.X11.XAtom.getName(
	at sun.awt.X11.XDataTransferer.getTargetNameForAtom(
	at sun.awt.X11.XDataTransferer.getNativeForFormat(
	at sun.awt.datatransfer.DataTransferer.getFlavorsForFormats(
	at sun.awt.datatransfer.ClipboardTransferable.<init>(
	at sun.awt.X11.XClipboard.getContents(
	at javax.swing.text.AbstractDocument.replace(
	at javax.swing.text.JTextComponent.setText(
	at javax.swing.plaf.metal.MetalComboBoxEditor$1.setText(
	at javax.swing.plaf.basic.BasicComboBoxEditor.setItem(
	at javax.swing.plaf.basic.BasicComboBoxUI$Handler.contentsChanged(
	at javax.swing.AbstractListModel.fireContentsChanged(
	at javax.swing.DefaultComboBoxModel.setSelectedItem(
	at javax.swing.JComboBox.setSelectedItem(
	at javax.swing.SwingUtilities.notifyAction(
	at javax.swing.JComponent.processKeyBinding(
	at javax.swing.KeyboardManager.fireBinding(
	at javax.swing.KeyboardManager.fireKeyboardAction(
	at javax.swing.JComponent.processKeyBindingsForAllComponents(
	at javax.swing.JComponent.processKeyBindings(
	at javax.swing.JComponent.processKeyEvent(
	at java.awt.Component.processEvent(
	at java.awt.Container.processEvent(
	at java.awt.Component.dispatchEventImpl(
	at java.awt.Container.dispatchEventImpl(
	at java.awt.Component.dispatchEvent(
	at java.awt.KeyboardFocusManager.redispatchEvent(
	at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(
	at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(
	at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(
	at java.awt.DefaultKeyboardFocusManager.dispatchEvent(
	at java.awt.Component.dispatchEventImpl(
	at java.awt.Container.dispatchEventImpl(
	at java.awt.Window.dispatchEventImpl(
	at java.awt.Component.dispatchEvent(
	at java.awt.EventQueue.dispatchEventImpl(
	at java.awt.EventQueue.access$300(
	at java.awt.EventQueue$
	at java.awt.EventQueue$
	at Method)
	at java.awt.EventQueue$
	at java.awt.EventQueue$
	at Method)
	at java.awt.EventQueue.dispatchEvent(
	at java.awt.EventDispatchThread.pumpOneEventForFilters(
	at java.awt.EventDispatchThread.pumpEventsForFilter(
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(
	at java.awt.EventDispatchThread.pumpEvents(
	at java.awt.EventDispatchThread.pumpEvents(


Repository Root:
Build-Date: 2015-05-26 01:31:54
Last Changed Author: Don-vip
Revision: 8426
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Relative URL: ^/trunk
Last Changed Date: 2015-05-26 01:37:50 +0200 (Tue, 26 May 2015)
Last Changed Rev: 8426

Identification: JOSM/1.5 (8426 pt_BR) Linux Debian GNU/Linux testing (stretch)
Memory Usage: 1525 MB / 10206 MB (603 MB allocated, but free)
Java version: 1.7.0_75, Oracle Corporation, OpenJDK 64-Bit Server VM
Java package: openjdk-7-jre:amd64-7u75-2.5.4-2
VM arguments: [-Dawt.useSystemAAFontSettings=on]
Dataset consistency test: No problems found

- Create_grid_of_ways (30892)
- OpeningHoursEditor (30962)
- PicLayer (31114)
- SimplifyArea (30962)
- buildings_tools (31120)
- conflation (0.1.7)
- contourmerge (1013)
- download_along (30892)
- editgpx (30892)
- geotools (31068)
- importvec (30892)
- jts (31002)
- log4j (30892)
- measurement (30892)
- merge-overlap (30988)
- opendata (31116)
- pbf (31010)
- pdfimport (30892)
- poly (31056)
- reverter (31120)
- scripting (30710)
- todo (29154)
- turnrestrictions (31034)
- undelete (30892)
- utilsplugin2 (31153)

I can't reproduce it again.

Attachments (0)

Change History (5)

comment:1 Changed 8 years ago by Don-vip

Keywords: javabug npe linux added
Milestone: 15.05

It's javabug:6322854 again. We probably need to implement the workaround of r5752 / r8038 for another widget.

comment:2 Changed 8 years ago by Don-vip

Am I right if assume the bug occurred right after you pasted a key/value?

comment:3 Changed 8 years ago by naoliv

I had a lot of data in JOSM, if this makes some difference.
With a node selected, pressed Alt+A and started typying p and l (to type place). Since it was a little slow (due to the amount of data) it seems that I pressed pl before the dialog was available (and then the error occurred)

comment:4 Changed 8 years ago by Don-vip

Resolution: fixed
Status: newclosed

In 8429/josm:

fix #11485 - robustness to JDK-6322854 when dealing with system selection

comment:5 Changed 7 years ago by Don-vip

Keywords: x11 added

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.