Modify

Opened 10 years ago

Closed 10 years ago

#11847 closed defect (duplicate)

exception when running Validator

Reported by: dobratzp Owned by: team
Priority: normal Milestone:
Component: Core Version:
Keywords: template_report Cc:

Description

What steps will reproduce the problem?

  1. Do some map editing
  2. Press Shift+V to run the Validator.

What is the expected result?

Application does not throw an exception

What happens instead?

Application threw an exception.

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

Revision: 8677
Repository Root: http://josm.openstreetmap.de/svn
Relative URL: ^/trunk
Last Changed Author: Don-vip
Last Changed Date: 2015-08-21 22:18:03 +0200 (Fri, 21 Aug 2015)
Build-Date: 2015-08-21 23:32:08
URL: http://josm.openstreetmap.de/svn/trunk
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last Changed Rev: 8677

Identification: JOSM/1.5 (8677 en) Mac OS X 10.10.5
Memory Usage: 819 MB / 1820 MB (177 MB allocated, but free)
Java version: 1.8.0_45, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
Dataset consistency test: No problems found

Plugins:
- FixAddresses (31241)
- OpeningHoursEditor (31241)
- reverter (31241)
- utilsplugin2 (31463)

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

java.lang.UnsupportedOperationException
	at java.util.Collections$1.remove(Collections.java:4684)
	at java.util.AbstractMap.remove(AbstractMap.java:254)
	at org.openstreetmap.josm.data.validation.tests.DuplicateWay.removeUninterestingKeys(DuplicateWay.java:164)
	at org.openstreetmap.josm.data.validation.tests.DuplicateWay.visit(DuplicateWay.java:190)
	at org.openstreetmap.josm.data.osm.Way.accept(Way.java:215)
	at org.openstreetmap.josm.data.validation.Test.visit(Test.java:201)
	at org.openstreetmap.josm.actions.ValidateAction$ValidationTask.realRun(ValidateAction.java:170)
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(PleaseWaitRunnable.java:93)
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:161)
	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:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)

Attachments (1)

data_that_lead_to_exception.osm (753.6 KB ) - added by dobratzp 10 years ago.
OSM data that I was editing when I got the exception

Download all attachments as: .zip

Change History (3)

by dobratzp, 10 years ago

OSM data that I was editing when I got the exception

comment:1 by dobratzp, 10 years ago

After trying things out, I've narrowed it down to the following Relation:

http://www.openstreetmap.org/relation/131161

The validator produces the warning "Multipolygon relation should be tagged with area tags and not the outer way"

So I highlight the outer way and do Edit -> Copy. Then I highlight the relation and do Edit -> Paste Tags. Then I select the tags on the outer way and delete them (the buidling=yes tag). Then I run Validation and get the exception.

Looking closely at the data using the Middle mouse button, I see that the outer way has a created_by=Potlatch 0.1f tag on it as well as the building=yes tag. I'm not sure how to remove this tag while editing using JOSM. I believe it is automatically removed on upload.

Even if I manually create the building=yes tag on the relation and remove the building=yes tag on the outer way, I still get the exception with the Validation.

comment:2 by simon04, 10 years ago

Resolution: duplicate
Status: newclosed

Closed as duplicate of #11827.

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.