Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#11664 closed defect (fixed)

unhandled exception after hitting ok in relation editor (2 re open)

Reported by: anonymous Owned by: team
Priority: blocker Milestone: 15.08
Component: Core Version:
Keywords: template_report regression Cc: Shinigami, malenki


What steps will reproduce the problem?

  1. download data (maybe not necessary)
  2. select a closed way
  3. make a multipolygon with tool "create multipolygon" (maybe not necessary)
  4. open the relation editor
  5. add a tag
  6. hit ok to save the relation --> Exception
Revision: 8574
Repository Root:
Relative URL: ^/trunk
Last Changed Author: bastiK
Last Changed Date: 2015-07-05 22:14:49 +0200 (Sun, 05 Jul 2015)
Build-Date: 2015-07-06 01:31:55
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last Changed Rev: 8574

Identification: JOSM/1.5 (8574 en) Mac OS X 10.10.4
Memory Usage: 791 MB / 1820 MB (141 MB allocated, but free)
Java version: 1.8.0_45, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
VM arguments: [-Dsun.java2d.opengl=true]
Dataset consistency test: No problems found

- TombPlugin (44)
- alignways (31241)
- buildings_tools (31241)
- geochat (31241)
- imagery_offset_db (31241)
- mirrored_download (31294)
- print (31329)
- proj4j (31241)
- reltoolbox (31241)
- reverter (31241)
- undelete (31241)
- utilsplugin2 (31241)

Last errors/warnings:
- E: java.lang.UnsupportedOperationException
- E: java.lang.UnsupportedOperationException

	at java.util.Collections$1.remove(
	at java.util.AbstractCollection.clear(
	at java.util.AbstractMap.clear(
	at org.openstreetmap.josm.gui.tagging.TagEditorModel.applyToTags(
	at org.openstreetmap.josm.gui.tagging.TagEditorModel.applyToPrimitive(
	at org.openstreetmap.josm.gui.dialogs.relation.GenericRelationEditor$SavingAction.applyExistingNonConflictingRelation(
	at org.openstreetmap.josm.gui.dialogs.relation.GenericRelationEditor$
	at org.openstreetmap.josm.gui.dialogs.relation.GenericRelationEditor$OKAction.actionPerformed(
	at javax.swing.AbstractButton.fireActionPerformed(
	at javax.swing.AbstractButton$Handler.actionPerformed(
	at javax.swing.DefaultButtonModel.fireActionPerformed(
	at javax.swing.DefaultButtonModel.setPressed(
	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(
	at java.awt.AWTEventMulticaster.mouseReleased(
	at java.awt.Component.processMouseEvent(
	at javax.swing.JComponent.processMouseEvent(
	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.LightweightDispatcher.retargetMouseEvent(
	at java.awt.LightweightDispatcher.processMouseEvent(
	at java.awt.LightweightDispatcher.dispatchEvent(
	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$500(
	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(

Attachments (0)

Change History (14)

comment:1 Changed 8 years ago by Don-vip

Cc: Shinigami added
Keywords: regression added
Milestone: 15.07

comment:2 Changed 8 years ago by Don-vip

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

comment:3 Changed 8 years ago by shinigami

Hi, it is caused by change in r8566 :/ Please comment out code paths with empty/singleton, and maybe in keySet() too, just to be sure.. I will make better copying between primitives later.

Last edited 8 years ago by Don-vip (previous) (diff)

comment:4 Changed 8 years ago by Don-vip

I think we can keep it and provide a new clearTags() method instead.

comment:5 Changed 8 years ago by shinigami

My idea was to create another method returning directly internal array of tags. Now, there is only one place, where this array is modified (one case of put), so if we change it, it will be possible to share array between primitives without xform to map and back.

Plus lot of usages of getKey() and keySet() do not need realy Map and Set, could be better to have extra wrapper or add something as forEachTag() to Primitive (and move to jdk8:).

comment:6 Changed 8 years ago by malenki

Cc: malenki added

comment:7 Changed 8 years ago by malenki

I stumbled over this exception by trying to add ways to a relation. IMHO this issue could be marked as blocker since it makes editing of relations nearly impossible.

comment:8 Changed 8 years ago by Don-vip

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

comment:9 Changed 8 years ago by Don-vip

Priority: criticalblocker

comment:10 Changed 8 years ago by Don-vip

Resolution: fixed
Status: newclosed

In 8581/josm:

fix #11664 - fix regression of r8566 for relation editor

comment:11 Changed 8 years ago by ViriatoLusitano

Thanks Don-vip!

comment:12 Changed 8 years ago by Don-vip

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

comment:13 Changed 8 years ago by Don-vip

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

comment:14 Changed 8 years ago by Don-vip

Milestone: 15.0715.08

Milestone renamed

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.