Modify

Opened 12 years ago

Closed 12 years ago

#8951 closed defect (fixed)

IllegalStateException merging nodes

Reported by: skyper Owned by: team
Priority: normal Milestone:
Component: Core Version: latest
Keywords: template_report merge undelete Cc:

Description (last modified by skyper)

What steps will reproduce the problem?

  1. load attached file
  2. unglue way 27019525 from node 296167882
  3. merge the new node with node 2374719155 by moving and holding Ctrl

What is the expected result?

Nodes are merged

What happens instead?

IllegalStateException

Please provide any additional information below. Attach a screenshot if possible.

I did quite a lot of reverting, purging and merging with this layer. Probably around 25 data layers.

Problem seems to be that I did undelete the node I unglue from and the new node also has the attribute "deleted on sever"


Repository Root: http://josm.openstreetmap.de/svn
Build-Date: 2013-08-08 01:35:22
Last Changed Author: Don-vip
Revision: 6117
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2013-08-07 22:11:35 +0200 (Wed, 07 Aug 2013)
Last Changed Rev: 6117

Identification: JOSM/1.5 (6117 en) Linux Debian GNU/Linux 7.1 (wheezy)
Memory Usage: 163 MB / 672 MB (50 MB allocated, but free)
Java version: 1.7.0_25, Oracle Corporation, OpenJDK 64-Bit Server VM
Java package: openjdk-7-jre:amd64-7u25-2.3.10-1~deb7u1
Program arguments: []
Dataset consistency test: No problems found

Plugin: OpeningHoursEditor (29778)
Plugin: conflation (0.1.6)
Plugin: jts (29613)
Plugin: mirrored_download (29753)
Plugin: notes (0.3)
Plugin: openstreetbugs (29435)
Plugin: reverter (29771)
Plugin: undelete (29555)
Plugin: utilsplugin2 (29771)
Plugin: wikipedia (29778)

java.lang.IllegalStateException: A primitive with ID = 0 cannot be invisible.
	at org.openstreetmap.josm.data.osm.AbstractPrimitive.setVisible(AbstractPrimitive.java:397)
	at org.openstreetmap.josm.data.osm.OsmPrimitive.saveCommonAttributes(OsmPrimitive.java:1161)
	at org.openstreetmap.josm.data.osm.Node.save(Node.java:254)
	at org.openstreetmap.josm.data.osm.Node.save(Node.java:16)
	at org.openstreetmap.josm.command.DeleteCommand.executeCommand(DeleteCommand.java:120)
	at org.openstreetmap.josm.command.SequenceCommand.executeCommand(SequenceCommand.java:52)
	at org.openstreetmap.josm.data.UndoRedoHandler.addNoRedraw(UndoRedoHandler.java:36)
	at org.openstreetmap.josm.data.UndoRedoHandler.add(UndoRedoHandler.java:58)
	at org.openstreetmap.josm.actions.MergeNodesAction.doMergeNodes(MergeNodesAction.java:261)
	at org.openstreetmap.josm.actions.mapmode.SelectAction.mergePrims(SelectAction.java:834)
	at org.openstreetmap.josm.actions.mapmode.SelectAction.confirmOrUndoMovement(SelectAction.java:813)
	at org.openstreetmap.josm.actions.mapmode.SelectAction.mouseReleased(SelectAction.java:617)
	at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:290)
	at java.awt.Component.processMouseEvent(Component.java:6505)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3312)
	at java.awt.Component.processEvent(Component.java:6270)
	at java.awt.Container.processEvent(Container.java:2229)
	at java.awt.Component.dispatchEventImpl(Component.java:4861)
	at java.awt.Container.dispatchEventImpl(Container.java:2287)
	at java.awt.Component.dispatchEvent(Component.java:4687)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
	at java.awt.Container.dispatchEventImpl(Container.java:2273)
	at java.awt.Window.dispatchEventImpl(Window.java:2719)
	at java.awt.Component.dispatchEvent(Component.java:4687)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)
	at java.awt.EventQueue.access$200(EventQueue.java:103)
	at java.awt.EventQueue$3.run(EventQueue.java:694)
	at java.awt.EventQueue$3.run(EventQueue.java:692)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
	at java.awt.EventQueue$4.run(EventQueue.java:708)
	at java.awt.EventQueue$4.run(EventQueue.java:706)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

Attachments (1)

8951_sample.osm (125.7 KB ) - added by skyper 12 years ago.
sample file

Download all attachments as: .zip

Change History (3)

by skyper, 12 years ago

Attachment: 8951_sample.osm added

sample file

comment:1 by skyper, 12 years ago

Description: modified (diff)

comment:2 by Don-vip, 12 years ago

Resolution: fixed
Status: newclosed

In 6140/josm:

fix #8951 - fix clearing of primitive metadata

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
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.