Modify

Opened 14 years ago

Closed 14 years ago

#4539 closed defect (fixed)

Exception copying layer

Reported by: skyper Owned by: team
Priority: major Milestone:
Component: Core Version: latest
Keywords: copy exception Cc: skyper

Description

Hi to all.
Thanks for your work over the weekend.

I got a exception copying a layer.

Repository Root: http://josm.openstreetmap.de/svn
Build-Date: 2010-02-16 02:31:15
Last Changed Author: jttt
Revision: 2995
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2010-02-15 21:49:45 +0100 (Mon, 15 Feb 2010)
Last Changed Rev: 2995

Memory Usage: 302 MB / 881 MB (201 MB allocated, but free)
Java version: 1.6.0_15, Sun Microsystems Inc., Java HotSpot(TM) 64-Bit Server VM
Operating system: Linux

Dataset consistency test:
No problems found



org.openstreetmap.josm.data.osm.DataIntegrityProblemException: Nodes in way must be in the same dataset
	at org.openstreetmap.josm.data.osm.Way.checkNodes(Way.java:371)
	at org.openstreetmap.josm.data.osm.Way.setDataset(Way.java:386)
	at org.openstreetmap.josm.data.osm.DataSet.addPrimitive(DataSet.java:228)
	at org.openstreetmap.josm.data.osm.DataSet.clone(DataSet.java:565)
	at org.openstreetmap.josm.actions.DuplicateLayerAction.duplicate(DuplicateLayerAction.java:49)
	at org.openstreetmap.josm.gui.dialogs.LayerListDialog$DuplicateAction.actionPerformed(LayerListDialog.java:514)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
	at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
	at java.awt.Component.processMouseEvent(Component.java:6263)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
	at java.awt.Component.processEvent(Component.java:6028)
	at java.awt.Container.processEvent(Container.java:2041)
	at java.awt.Component.dispatchEventImpl(Component.java:4630)
	at java.awt.Container.dispatchEventImpl(Container.java:2099)
	at java.awt.Component.dispatchEvent(Component.java:4460)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
	at java.awt.Container.dispatchEventImpl(Container.java:2085)
	at java.awt.Window.dispatchEventImpl(Window.java:2475)
	at java.awt.Component.dispatchEvent(Component.java:4460)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

This is a fresh ubuntu 9.10 with sun-java 6 and no plugins. I also did just open this osm and did not commit any changes this session.

I attach osm and console.log.

cu skyper

Attachments (1)

josm_error_#4539.tar.bz2 (104.5 KB) - added by skyper 14 years ago.
osm + console.log

Download all attachments as: .zip

Change History (2)

Changed 14 years ago by skyper

Attachment: josm_error_#4539.tar.bz2 added

osm + console.log

comment:1 Changed 14 years ago by mjulius

Resolution: fixed
Status: newclosed

(In [2998]) fixes #4539 - Exception copying layer
in DataSet.clone() substitute way nodes and relation members before adding to the new dataset

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.

Add Comment


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

 
Note: See TracTickets for help on using tickets.