﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
21589	Reverter plugin exception: IllegalArgumentException	richlv	Upliner	"==== What steps will reproduce the problem?
Unsure about exact steps, but attempted to revert two changesets in a row.

==== What is the expected result?
No exception.

==== What happens instead?
Exception.

==== Please provide any additional information below. Attach a screenshot if possible.

{{{
URL:https://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2021-11-01 23:05:46 +0100 (Mon, 01 Nov 2021)
Build-Date:2021-11-01 22:25:18
Revision:18303
Relative:URL: ^/trunk

Identification: JOSM/1.5 (18303 en_GB) Mac OS X 10.15.7
OS Build number: Mac OS X 10.15.7 (19H1419)
Memory Usage: 2119 MB / 3641 MB (694 MB allocated, but free)
Java version: 1.8.0_311-b11, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
Look and Feel: com.apple.laf.AquaLookAndFeel
Screen: Display 1127230987 1920×1080 (scaling 1.00×1.00) Display 69733382 1680×1050 (scaling 1.00×1.00)
Maximum Screen Size: 1920×1080
Best cursor sizes: 16×16→16×16, 32×32→32×32
System property file.encoding: UTF-8
System property sun.jnu.encoding: UTF-8
Locale info: en_GB
Numbers with default locale: 1234567890 -> 1234567890
VM arguments: [-Djnlp.application.href=https://josm.openstreetmap.de/download/josm.jnlp, -Djava.util.Arrays.useLegacyMergeSort=true, -Djnlp.tk=awt, -Djnlpx.jvm=<java.home>/bin/java, -Djnlpx.splashport=-1, -Djnlpx.home=<java.home>/bin, -Djnlpx.remove=false, -Djnlpx.offline=false, -Djnlpx.relaunch=true, -Djnlpx.session.data=/var/folders/nl/flqxqsmj5q963r7tcnfrdt3c0000gn/T/session7395666964577871995, -Djnlpx.heapsize=NULL,NULL, -Djava.security.policy=file:<java.home>/lib/security/javaws.policy, -DtrustProxy=true, -Djnlpx.origFilenameArg=/Users/richlv/Library/Application Support/Oracle/Java/Deployment/cache/6.0/56/1ee8cfb8-72e8e992, -Dsun.awt.warmup=true, -Djava.security.manager]
Dataset consistency test: No problems found

Plugins:
+ HouseNumberTaggingTool (35814)
+ InfoMode (35543)
+ Mapillary (2.0.0-alpha.41)
+ PicLayer (1.0.1)
+ apache-commons (35524)
+ apache-http (35589)
+ buildings_tools (35823)
+ dataimport (35640)
+ ejml (35458)
+ geotools (35458)
+ imagery_offset_db (35640)
+ jaxb (35543)
+ jna (35662)
+ jts (35458)
+ measurement (35640)
+ opendata (35803)
+ pbf (35825)
+ photo_geotagging (35783)
+ reverter (35846)
+ utilsplugin2 (35842)

Map paint styles:
- https://josm.openstreetmap.de/josmfile?page=Styles/Coloured_Streets&zip=1

Last errors/warnings:
- 31413.710 E: org.openstreetmap.josm.io.OsmApiException: ResponseCode=412, Error Header=<Precondition failed: Relation 3377631 requires the ways with id in 251754190, which either do not exist, or are not visible.>
- 31413.745 E: Object still in use - <html><strong>Failed</strong> to upload <strong>relation 3377631</strong>. It refers to deleted way 251754190.<br>Please load the way, remove the reference in the relation, and upload again.<br><br>Click <strong>Prepare conflict resolution</strong> to load them now.<br>If necessary JOSM will create conflicts which you can resolve in the Conflict Resolution dialogue.</html>
- 31427.620 W: Conflicts detected - <html>There was 1 conflict detected.</html>
- 32214.821 W: Conflicts detected - <html>There were 2 conflicts detected.</html>
- 32264.730 E: Error header: Precondition failed: Relation 3377653 requires the ways with id in 251754238,251754279,251754302,251754308,251754331,251754349,251754385,251754391,251754399,251754438,251754456,251754468,251754519,251754524,251754532,251754576,251754638,251754691,251
- 32264.864 E: org.openstreetmap.josm.io.OsmApiException: ResponseCode=412, Error Header=<Precondition failed: Relation 3377653 requires the ways with id in 251754238,251754279,251754302,251754308,251754331,251754349,251754385,251754391,251754399,251754438,251754456,251754468,251754519,251754524,251754532,251754576,251754638,251754691,251>, Error Body=<Precondition failed: Relation 3377653 requires the ways with id in 251754238,251754279,251754302,251754308,251754331,251754349,251754385,251754391,251754399,251754438,251754456,251754468,251754519,251754524,251754532,251754576,251754638,251754691,251755326,251755405,251755450,251755644,251755664,251755696,251755801,251755806,251755871,251756077,251756277,251756417, which either do not exist, or are not visible.>
- 32264.873 E: Object still in use - <html><strong>Failed</strong> to upload <strong>relation 3377653</strong>. It refers to deleted ways [251, 251754238, 251754279, 251754302, 251754308, 251754331, 251754349, 251754385, 251754391, 251754399, 251754438, 251754456, 251754468, 251754519, 251754524, 251754532, 251754576, 251754638, 251754691].<br>Please load the ways, remove the reference in the relation, and upload again.<br><br>Click <strong>Prepare conflict resolution</strong> to load them now.<br>If necessary JOSM will create conflicts which you can resolve in the Conflict Resolution dialogue.</html>
- 32281.717 W: Conflicts detected - <html>There were 18 conflicts detected.</html>
- 32312.128 W: Conflicts detected - <html>There were 6 conflicts detected.</html>
- 32313.890 E: Handled by bug report queue: java.lang.IllegalArgumentException: version > 0 expected. Got 0



=== REPORTED CRASH DATA ===
BugReportExceptionHandler#handleException:
No data collected.

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: AWT-EventQueue-2 (31) of javawsApplicationThreadGroup
java.lang.IllegalArgumentException: version > 0 expected. Got 0
	at org.openstreetmap.josm.data.osm.OsmPrimitive.setOsmId(OsmPrimitive.java:245)
	at reverter.DataSetCommandMerger.mergePrimitive(DataSetCommandMerger.java:84)
	at reverter.DataSetCommandMerger.mergeWay(DataSetCommandMerger.java:134)
	at reverter.DataSetCommandMerger.merge(DataSetCommandMerger.java:196)
	at reverter.DataSetCommandMerger.<init>(DataSetCommandMerger.java:51)
	at reverter.ChangesetReverter.getCommands(ChangesetReverter.java:393)
	at reverter.RevertChangesetTask.revertChangeset(RevertChangesetTask.java:169)
	at reverter.RevertChangesetTask.realRun(RevertChangesetTask.java:93)
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(PleaseWaitRunnable.java:94)
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:142)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
}}}
"	defect	closed	normal		Plugin reverter	tested	fixed	template_report	
