Modify

Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

#12006 closed defect (othersoftware)

Pasting text gives an error

Reported by: maarten Owned by: maarten
Priority: major Milestone:
Component: Core Version: tested
Keywords: javabug timsort Cc: Atalanttore, baditaflorin, Pepilepioux, protoxenus@…

Description

When I try to paste text in the key or value field in the Add Value dialog box (Alt-A) I get an Unexpected Exception. This seems to occur when there is formatting in the copy buffer. It occurs when copying from Firefox, MS Word, MS Excel but does not occur when copying text from a text editor. OS is Windows 7.

The exception I get is this one:

Revision: 8800
Repository Root: http://josm.openstreetmap.de/svn
Relative URL: ^/trunk
Last Changed Author: simon04
Last Changed Date: 2015-09-27 22:11:06 +0200 (Sun, 27 Sep 2015)
Build-Date: 2015-09-28 01:32:03
URL: http://josm.openstreetmap.de/svn/trunk
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last Changed Rev: 8800

Identification: JOSM/1.5 (8800 en) Windows 7 64-Bit
Memory Usage: 344 MB / 1160 MB (174 MB allocated, but free)
Java version: 1.8.0_40, Oracle Corporation, Java HotSpot(TM) Client VM
Dataset consistency test: No problems found

Plugins:
- HouseNumberTaggingTool (31241)
- commons-imaging (31241)
- download_along (31241)
- ext_tools (31241)
- geotools (31126)
- jts (31126)
- log4j (31231)
- measurement (31289)
- photo_geotagging (31241)
- public_transport (31241)
- reverter (31241)
- routing (31241)
- terracer (31241)
- undelete (31241)
- utilsplugin2 (31463)
- wms-turbo-challenge2 (31308)

Last errors/warnings:
- E: java.lang.IllegalArgumentException: Comparison method violates its general contract!
- E: java.lang.IllegalArgumentException: Comparison method violates its general contract!
- E: java.lang.IllegalArgumentException: Comparison method violates its general contract!
- E: java.lang.IllegalArgumentException: Comparison method violates its general contract!
- E: java.lang.IllegalArgumentException: Comparison method violates its general contract!

java.lang.IllegalArgumentException: Comparison method violates its general contract!
	at java.util.TimSort.mergeHi(Unknown Source)
	at java.util.TimSort.mergeAt(Unknown Source)
	at java.util.TimSort.mergeCollapse(Unknown Source)
	at java.util.TimSort.sort(Unknown Source)
	at java.util.Arrays.sort(Unknown Source)
	at sun.awt.datatransfer.DataTransferer.setToSortedDataFlavorArray(Unknown Source)
	at sun.awt.datatransfer.ClipboardTransferable.<init>(Unknown Source)
	at sun.awt.datatransfer.SunClipboard.getContents(Unknown Source)
	at javax.swing.TransferHandler$TransferAction.actionPerformedImpl(Unknown Source)
	at javax.swing.TransferHandler$TransferAction.access$800(Unknown Source)
	at javax.swing.TransferHandler$TransferAction$1.run(Unknown Source)
	at javax.swing.TransferHandler$TransferAction$1.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
	at javax.swing.TransferHandler$TransferAction$2.run(Unknown Source)
	at javax.swing.TransferHandler$TransferAction$2.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
	at javax.swing.TransferHandler$TransferAction.actionPerformed(Unknown Source)
	at javax.swing.text.JTextComponent.invokeAction(Unknown Source)
	at javax.swing.text.JTextComponent.paste(Unknown Source)
	at javax.swing.text.DefaultEditorKit$PasteAction.actionPerformed(Unknown Source)
	at javax.swing.SwingUtilities.notifyAction(Unknown Source)
	at javax.swing.JComponent.processKeyBinding(Unknown Source)
	at javax.swing.JComponent.processKeyBindings(Unknown Source)
	at javax.swing.JComponent.processKeyEvent(Unknown Source)
	at java.awt.Component.processEvent(Unknown Source)
	at java.awt.Container.processEvent(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.KeyboardFocusManager.redispatchEvent(Unknown Source)
	at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
	at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)
	at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)
	at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
	at java.awt.Component.dispatchEventImpl(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.dispatchEventImpl(Unknown Source)
	at java.awt.EventQueue.access$500(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue$4.run(Unknown Source)
	at java.awt.EventQueue$4.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(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.pumpEventsForFilter(Unknown Source)
	at java.awt.WaitDispatchSupport$2.run(Unknown Source)
	at java.awt.WaitDispatchSupport$4.run(Unknown Source)
	at java.awt.WaitDispatchSupport$4.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.awt.WaitDispatchSupport.enter(Unknown Source)
	at java.awt.Dialog.show(Unknown Source)
	at java.awt.Component.show(Unknown Source)
	at java.awt.Component.setVisible(Unknown Source)
	at java.awt.Window.setVisible(Unknown Source)
	at java.awt.Dialog.setVisible(Unknown Source)
	at org.openstreetmap.josm.gui.ExtendedDialog.setVisible(ExtendedDialog.java:502)
	at org.openstreetmap.josm.gui.dialogs.properties.TagEditHelper$AbstractTagsDialog.setVisible(TagEditHelper.java:465)
	at org.openstreetmap.josm.gui.ExtendedDialog.showDialog(ExtendedDialog.java:290)
	at org.openstreetmap.josm.gui.dialogs.properties.TagEditHelper.addTag(TagEditHelper.java:134)
	at org.openstreetmap.josm.gui.dialogs.properties.PropertiesDialog$AddAction.actionPerformed(PropertiesDialog.java:1012)
	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.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
	at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
	at java.awt.Component.processMouseEvent(Unknown Source)
	at javax.swing.JComponent.processMouseEvent(Unknown Source)
	at java.awt.Component.processEvent(Unknown Source)
	at java.awt.Container.processEvent(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.dispatchEventImpl(Unknown Source)
	at java.awt.EventQueue.access$500(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue$4.run(Unknown Source)
	at java.awt.EventQueue$4.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(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)

Attachments (0)

Change History (35)

comment:1 by Don-vip, 9 years ago

Keywords: javabug timsort added
Owner: changed from team to maarten
Status: newneedinfo

Can you please test with latest version of Java (8u66)? Thanks.

comment:2 by Don-vip, 9 years ago

It's javabug:8078376. I'll add it to the list of JavaBugs.

comment:3 by Don-vip, 9 years ago

Resolution: othersoftware
Status: needinfoclosed

comment:4 by simon04, 9 years ago

Ticket #12167 has been marked as a duplicate of this ticket.

comment:5 by Don-vip, 9 years ago

Ticket #13216 has been marked as a duplicate of this ticket.

comment:6 by Don-vip, 9 years ago

Cc: Atalanttore added

comment:7 by Don-vip, 9 years ago

This bug has been fixed through javabug:8130242 in Java 8u102.

comment:8 by Don-vip, 8 years ago

Ticket #13486 has been marked as a duplicate of this ticket.

comment:9 by Don-vip, 8 years ago

Ticket #13601 has been marked as a duplicate of this ticket.

comment:10 by Don-vip, 8 years ago

Ticket #13611 has been marked as a duplicate of this ticket.

comment:11 by Don-vip, 8 years ago

Ticket #13617 has been marked as a duplicate of this ticket.

comment:12 by Klumbumbus, 8 years ago

Ticket #13618 has been marked as a duplicate of this ticket.

comment:13 by Klumbumbus, 8 years ago

Ticket #13622 has been marked as a duplicate of this ticket.

comment:14 by Klumbumbus, 8 years ago

Cc: baditaflorin added

comment:15 by Klumbumbus, 8 years ago

Ticket #13642 has been marked as a duplicate of this ticket.

comment:16 by Klumbumbus, 8 years ago

Ticket #13649 has been marked as a duplicate of this ticket.

comment:17 by Klumbumbus, 8 years ago

Cc: Pepilepioux added

comment:18 by Klumbumbus, 8 years ago

Ticket #13669 has been marked as a duplicate of this ticket.

comment:19 by Klumbumbus, 8 years ago

Priority: normalmajor

comment:20 by Klumbumbus, 8 years ago

Ticket #13670 has been marked as a duplicate of this ticket.

comment:21 by simon04, 8 years ago

Ticket #13675 has been marked as a duplicate of this ticket.

comment:22 by simon04, 8 years ago

Cc: protoxenus@… added

comment:23 by simon04, 8 years ago

Ticket #12648 has been marked as a duplicate of this ticket.

comment:24 by Klumbumbus, 8 years ago

Ticket #13719 has been marked as a duplicate of this ticket.

comment:25 by Klumbumbus, 8 years ago

Ticket #13757 has been marked as a duplicate of this ticket.

comment:26 by Klumbumbus, 8 years ago

Ticket #13769 has been marked as a duplicate of this ticket.

comment:27 by simon04, 8 years ago

Ticket #13790 has been marked as a duplicate of this ticket.

comment:28 by Klumbumbus, 8 years ago

Ticket #13833 has been marked as a duplicate of this ticket.

comment:29 by bastiK, 8 years ago

Ticket #13848 has been marked as a duplicate of this ticket.

comment:30 by bastiK, 8 years ago

Ticket #13849 has been marked as a duplicate of this ticket.

comment:31 by Klumbumbus, 8 years ago

Ticket #13979 has been marked as a duplicate of this ticket.

comment:32 by skyper, 8 years ago

Ticket #14084 has been marked as a duplicate of this ticket.

comment:33 by Klumbumbus, 8 years ago

Ticket #14149 has been marked as a duplicate of this ticket.

comment:34 by Klumbumbus, 8 years ago

Ticket #14172 has been marked as a duplicate of this ticket.

comment:35 by Klumbumbus, 8 years ago

Ticket #15045 has been marked as a duplicate of this ticket.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain maarten.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.