Modify

Opened 6 years ago

Closed 6 years ago

#15733 closed defect (fixed)

TokenMgrError after starting validating

Reported by: frans S Owned by: frans S
Priority: normal Milestone: 18.01
Component: Core validator Version:
Keywords: template_report mapcss Cc:

Description

What steps will reproduce the problem?

  1. start validating

What is the expected result? run validation task

What happens instead? error comes up

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

URL:http://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2017-12-31 03:09:43 +0100 (Sun, 31 Dec 2017)
Build-Date:2017-12-31 02:33:46
Revision:13265
Relative:URL: ^/trunk

Identification: JOSM/1.5 (13265 en) Windows 10 64-Bit
OS Build number: Windows 10 Enterprise 1709 (16299)
Memory Usage: 196 MB / 989 MB (50 MB allocated, but free)
Java version: 1.8.0_151-b12, Oracle Corporation, Java HotSpot(TM) Client VM
Screen: \Display0 1366x768
Maximum Screen Size: 1366x768
Dataset consistency test: No problems found

Plugins:
+ buildings_tools (33735)
+ imagery_offset_db (33774)
+ scripting (30775)
+ terracer (33839)
+ touchscreenhelper (33832)
+ utilsplugin2 (33742)

Validator rules:
+ %UserProfile%\Downloads\Presets_HotNepal.zip
+ %UserProfile%\Desktop\JOSM\HDM-JOSM-style-master.zip
+ %UserProfile%\Desktop\JOSM\Styles_Fixme_and_Notes.zip
+ %UserProfile%\Desktop\JOSM\Styles_Highway_Nodes.zip

Last errors/warnings:
- W: Failed to add %UserProfile%\Downloads\Presets_HotNepal.zip to tag checker
- W: org.openstreetmap.josm.gui.mappaint.mapcss.parsergen.ParseException: Encountered " "}" "} "" at line 9, column 11.
- W: Failed to add %UserProfile%\Desktop\JOSM\HDM-JOSM-style-master.zip to tag checker
- W: org.openstreetmap.josm.gui.mappaint.mapcss.parsergen.ParseException: Encountered " "}" "} "" at line 5, column 20.
- E: Handled by bug report queue: org.openstreetmap.josm.gui.mappaint.mapcss.parsergen.TokenMgrError: Lexical error at line 19, column 145.  Encountered: <EOF> after : ""
- W: Failed to add %UserProfile%\Downloads\Presets_HotNepal.zip to tag checker
- W: org.openstreetmap.josm.gui.mappaint.mapcss.parsergen.ParseException: Encountered " "}" "} "" at line 9, column 11.
- W: Failed to add %UserProfile%\Desktop\JOSM\HDM-JOSM-style-master.zip to tag checker
- W: org.openstreetmap.josm.gui.mappaint.mapcss.parsergen.ParseException: Encountered " "}" "} "" at line 5, column 20.
- E: Handled by bug report queue: org.openstreetmap.josm.gui.mappaint.mapcss.parsergen.TokenMgrError: Lexical error at line 19, column 145.  Encountered: <EOF> after : ""


=== REPORTED CRASH DATA ===
BugReportExceptionHandler#handleException:
No data collected.

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: AWT-EventQueue-0 (17) of main
org.openstreetmap.josm.gui.mappaint.mapcss.parsergen.TokenMgrError: Lexical error at line 19, column 145.  Encountered: <EOF> after : ""
	at org.openstreetmap.josm.gui.mappaint.mapcss.parsergen.MapCSSParserTokenManager.getNextToken(MapCSSParserTokenManager.java:1354)
	at org.openstreetmap.josm.gui.mappaint.mapcss.parsergen.MapCSSParser.jj_consume_token(MapCSSParser.java:3486)
	at org.openstreetmap.josm.gui.mappaint.mapcss.parsergen.MapCSSParser.pp_w1(MapCSSParser.java:609)
	at org.openstreetmap.josm.gui.mappaint.mapcss.parsergen.MapCSSParser.pp_black_box(MapCSSParser.java:259)
	at org.openstreetmap.josm.gui.mappaint.mapcss.parsergen.MapCSSParser.pp_black_box(MapCSSParser.java:273)
	at org.openstreetmap.josm.gui.mappaint.mapcss.parsergen.MapCSSParser.pp_black_box(MapCSSParser.java:273)
	at org.openstreetmap.josm.gui.mappaint.mapcss.parsergen.MapCSSParser.pp_black_box(MapCSSParser.java:273)
	at org.openstreetmap.josm.gui.mappaint.mapcss.parsergen.MapCSSParser.pp_root(MapCSSParser.java:142)
	at org.openstreetmap.josm.data.validation.tests.MapCSSTagChecker$TagCheck.readMapCSS(MapCSSTagChecker.java:372)
	at org.openstreetmap.josm.data.validation.tests.MapCSSTagChecker.addMapCSS(MapCSSTagChecker.java:744)
	at org.openstreetmap.josm.data.validation.tests.MapCSSTagChecker.initialize(MapCSSTagChecker.java:771)
	at org.openstreetmap.josm.data.validation.OsmValidator.initializeTests(OsmValidator.java:384)
	at org.openstreetmap.josm.data.validation.OsmValidator.initializeTests(OsmValidator.java:367)
	at org.openstreetmap.josm.actions.ValidateAction.doValidate(ValidateAction.java:69)
	at org.openstreetmap.josm.actions.ValidateAction.actionPerformed(ValidateAction.java:53)
	at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
	at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
	at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
	at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
	at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
	at java.awt.Component.processMouseEvent(Unknown Source)
	at javax.swing.JComponent.processMouseEvent(Unknown Source)
	at java.awt.Component.processEvent(Unknown Source)
	at java.awt.Container.processEvent(Unknown Source)
	at java.awt.Component.dispatchEventImpl(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
	at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
	at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Window.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.awt.EventQueue.access$500(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue$4.run(Unknown Source)
	at java.awt.EventQueue$4.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.run(Unknown Source)

Attachments (0)

Change History (4)

comment:1 by stoecker, 6 years ago

Owner: changed from team to frans S
Status: newneedinfo

I looks much like all 4 of your rule files are corrupt. Please check them for correctness and report results.

comment:2 by Don-vip, 6 years ago

Component: CoreCore validator
Keywords: mapcss added

comment:3 by Don-vip, 6 years ago

Milestone: 18.01
Summary: error comes up after starting validating.TokenMgrError after starting validating

comment:4 by Don-vip, 6 years ago

Resolution: fixed
Status: needinfoclosed

In 13314/josm:

fix #15733 - catch TokenMgrError when parsing invalid validator mapcss files

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain frans S.
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.