﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
5067	Latest JOSM crashed while uploading	anonymous	anonymous	"What steps will reproduce the problem?
 1. Do some changes
 2. Upload the changes
 3. See the crash.
I uploaded a few changesets without a problem, so it does not crash every time.

What is the expected result?
Uploading the changes without problems.

What happens instead?
Crash

I started JOSM from commandline because I wanted to see what's going on, because the API is so damn slow at the moment. I'll attach the last lines. The numbers in the first line are from a download and are not relevant.

{{{
Repository Root: http://josm.openstreetmap.de/svn
Build-Date: 2010-05-18 01:31:23
Last Changed Author: bastiK
Revision: 3261
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2010-05-17 18:13:34 +0200 (Mon, 17 May 2010)
Last Changed Rev: 3261

Memory Usage: 311 MB / 824 MB (244 MB allocated, but free)
Java version: 1.6.0_18, Sun Microsystems Inc., OpenJDK 64-Bit Server VM
Operating system: Linux

Dataset consistency test:
No problems found


Plugins: DirectUpload,measurement,openstreetbugs,public_transport,remotecontrol,turnrestrictions,validator,wmsplugin
Plugin openstreetbugs (Version: 20696)
Plugin wmsplugin (Version: 21235)
Plugin public_transport (Version: 21185)
Plugin remotecontrol (Version: 19946)
Plugin DirectUpload (Version: 20881)
Plugin validator (Version: 21177)
Plugin turnrestrictions (Version: 21186)
Plugin measurement (Version: 21307)

org.openstreetmap.josm.io.OsmTransferException: java.util.ConcurrentModificationException
	at org.openstreetmap.josm.io.OsmServerWriter.uploadChangesIndividually(OsmServerWriter.java:107)
	at org.openstreetmap.josm.io.OsmServerWriter.uploadOsm(OsmServerWriter.java:202)
	at org.openstreetmap.josm.gui.io.UploadPrimitivesTask.realRun(UploadPrimitivesTask.java:236)
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(PleaseWaitRunnable.java:83)
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:129)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
	at java.lang.Thread.run(Thread.java:636)
Caused by: java.util.ConcurrentModificationException
	at org.openstreetmap.josm.data.osm.Storage$Iter.align(Storage.java:465)
	at org.openstreetmap.josm.data.osm.Storage$Iter.hasNext(Storage.java:445)
	at org.openstreetmap.josm.data.osm.Storage$Iter.next(Storage.java:450)
	at java.util.AbstractCollection.toArray(AbstractCollection.java:141)
	at java.util.ArrayList.addAll(ArrayList.java:497)
	at org.openstreetmap.josm.gui.dialogs.changeset.ChangesetListModel.updateModel(ChangesetListModel.java:91)
	at org.openstreetmap.josm.gui.dialogs.changeset.ChangesetListModel.addChangeset(ChangesetListModel.java:69)
	at org.openstreetmap.josm.gui.dialogs.changeset.ChangesetsInActiveDataLayerListModel.otherDatasetChange(ChangesetsInActiveDataLayerListModel.java:54)
	at org.openstreetmap.josm.data.osm.event.ChangesetIdChangedEvent.fire(ChangesetIdChangedEvent.java:24)
	at org.openstreetmap.josm.data.osm.DataSet.fireEvent(DataSet.java:818)
	at org.openstreetmap.josm.data.osm.DataSet.fireChangesetIdChanged(DataSet.java:855)
	at org.openstreetmap.josm.data.osm.OsmPrimitive.setChangesetId(OsmPrimitive.java:771)
	at org.openstreetmap.josm.io.OsmApi.modifyPrimitive(OsmApi.java:276)
	at org.openstreetmap.josm.io.OsmServerWriter.makeApiRequest(OsmServerWriter.java:222)
	at org.openstreetmap.josm.io.OsmServerWriter.uploadChangesIndividually(OsmServerWriter.java:100)
	... 7 more

}}}
"	defect	closed	blocker		Core	latest	fixed	template_report	
