Modify

Opened 5 years ago

Closed 5 years ago

#10380 closed defect (fixed)

JOSM requested reporting of this exception during processing malformed validator file

Reported by: mkoniecz Owned by: team
Priority: normal Milestone: 14.08
Component: Core validator Version:
Keywords: Cc:

Description

validator file contained

node[natural=wood]{
  throwInformation: tr("{0} on a node", "{0.key}={0.value}");
}
Repository Root: http://josm.openstreetmap.de/svn
Build-Date: 2014-08-16 03:12:49
Last Changed Author: Don-vip
Revision: 7416
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2014-08-16 05:08:40 +0200 (Sat, 16 Aug 2014)
Last Changed Rev: 7416

Identification: JOSM/1.5 (7416 en) Windows 7 32-Bit
Memory Usage: 77 MB / 784 MB (18 MB allocated, but free)
Java version: 1.7.0_65, Oracle Corporation, Java HotSpot(TM) Client VM
VM arguments: [-Xmx812M]
Dataset consistency test: No problems found

Plugin: OpeningHoursEditor (30519)
Plugin: PicLayer (30436)
Plugin: RoadSigns (30495)
Plugin: buildings_tools (30485)
Plugin: continuosDownload (28565)
Plugin: measurement (30416)
Plugin: notes (v0.9.3)
Plugin: turnrestrictions (30454)
Plugin: wikipedia (30449)

java.lang.RuntimeException: No throwError/throwWarning/throwOther given! You should specify a validation error message for [node[natural=wood]]
	at org.openstreetmap.josm.data.validation.tests.MapCSSTagChecker$TagCheck.ofMapCSSRule(MapCSSTagChecker.java:251)
	at org.openstreetmap.josm.data.validation.tests.MapCSSTagChecker$TagCheck.readMapCSS(MapCSSTagChecker.java:283)
	at org.openstreetmap.josm.data.validation.tests.MapCSSTagChecker$TagCheck.readMapCSS(MapCSSTagChecker.java:260)
	at org.openstreetmap.josm.data.validation.tests.MapCSSTagChecker.addMapCSS(MapCSSTagChecker.java:561)
	at org.openstreetmap.josm.io.FileWatcher.processEvents(FileWatcher.java:143)
	at org.openstreetmap.josm.io.FileWatcher.access$000(FileWatcher.java:30)
	at org.openstreetmap.josm.io.FileWatcher$1.run(FileWatcher.java:46)
	at java.lang.Thread.run(Unknown Source)

Attachments (0)

Change History (2)

comment:1 Changed 5 years ago by Don-vip

Component: CoreCore validator
Milestone: 14.08

comment:2 Changed 5 years ago by Don-vip

Resolution: fixed
Status: newclosed

In 7417/josm:

fix #10380 - throw IllegalDataException instead of RuntimeException with invalid TagChecker rules

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.