Modify

Opened 10 years ago

Closed 10 years ago

#11116 closed defect (duplicate)

JOSM crash on opening_times validator

Reported by: anonymous Owned by: team
Priority: normal Milestone:
Component: Core validator Version:
Keywords: template_report opening_hours javabug java8 Cc:

Description

What steps will reproduce the problem?

  1. JOSM seems to fail on opening times, so I narrowed it down to this one I'm trying to change
  2. opening_hours=Apr-Oct Tu-Sa,SH Mo 10:00-16:00; Apr-Oct Su,PH 11:00-16:00
  3. regular opening times, but also within the Apr-Oct period on Monday is School Holiday and any Public Holiday within that period

What is the expected result?

The validator may warn me on wrong syntax or accept it without crashing

What happens instead?

JOSM crash

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

Revision: 7995
Repository Root: http://josm.openstreetmap.de/svn
Relative URL: ^/trunk
Last Changed Author: Don-vip
Last Changed Date: 2015-01-31 15:17:59 +0100 (Sat, 31 Jan 2015)
Build-Date: 2015-02-01 02:33:54
URL: http://josm.openstreetmap.de/svn/trunk
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last Changed Rev: 7995

Identification: JOSM/1.5 (7995 en) Windows 7 64-Bit
Memory Usage: 788 MB / 1806 MB (326 MB allocated, but free)
Java version: 1.8.0_31, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
VM arguments: [-Djava.security.manager, -Djava.security.policy=file:C:\Program Files\Java\jre1.8.0_31\lib\security\javaws.policy, -DtrustProxy=true, -Djnlpx.home=<java.home>\bin, -Djnlpx.origFilenameArg=C:\Users\Sander\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\56\1ee8cfb8-5330e0dc, -Djnlpx.remove=false, -Djava.util.Arrays.useLegacyMergeSort=true, -Djnlpx.splashport=9565, -Djnlp.application.href=https://josm.openstreetmap.de/download/josm.jnlp, -Djnlpx.jvm=<java.home>\bin\javaw.exe, -Djnlpx.vmargs=LURqYXZhLnV0aWwuQXJyYXlzLnVzZUxlZ2FjeU1lcmdlU29ydD10cnVlAC1Eam5scC5hcHBsaWNhdGlvbi5ocmVmPWh0dHBzOi8vam9zbS5vcGVuc3RyZWV0bWFwLmRlL2Rvd25sb2FkL2pvc20uam5scAA=]
Dataset consistency test: No problems found

Plugins:
- DirectDownload (30892)
- FixAddresses (30892)
- PicLayer (30962)
- download_along (30892)
- geotools (30892)
- graphview (30892)
- jts (30892)
- measurement (30892)
- mirrored_download (30962)
- notes (v0.9.5)
- ods-bag (0.5.1)
- opendataservices (0.5.1)
- poly (30892)
- reverter (30953)
- scripting (30702)
- turnlanes (30892)
- undelete (30892)
- utilsplugin2 (30892)

Last errors/warnings:
- E: Failed to locate image 'images/wfs.png'
- E: Failed to locate image 'maxspeed_icon.svg'
- W: Mappaint style "standard" (Maxspeed) icon "maxspeed_icon.svg" not found.
- E: java.lang.ClassCastException: Cannot cast jdk.nashorn.internal.scripts.JO12 to jdk.nashorn.internal.scripts.JO16

java.lang.ClassCastException: Cannot cast jdk.nashorn.internal.scripts.JO12 to jdk.nashorn.internal.scripts.JO16
	at java.lang.invoke.MethodHandleImpl.newClassCastException(Unknown Source)
	at java.lang.invoke.MethodHandleImpl.castReference(Unknown Source)
	at jdk.nashorn.internal.scripts.Script$\^eval\_$5.L:1835$L:1836$parseHoliday$L:3790$L:3790(<eval>:3827)
	at jdk.nashorn.internal.scripts.Script$\^eval\_$7.L:1835$L:1836$L:4666(<eval>:4686)
	at jdk.nashorn.internal.scripts.Script$\^eval\_$6.L:1835$L:1836$L:4958$L:4959$L:5016(<eval>:5045)
	at jdk.nashorn.internal.scripts.Script$\^eval\_$3.L:1835$L:1836$getWarnings(<eval>:2516)
	at jdk.nashorn.internal.scripts.Script$\^eval\_$7.L:1835$L:1836$L:5083(<eval>:5085)
	at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:535)
	at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:209)
	at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:378)
	at jdk.nashorn.api.scripting.ScriptObjectMirror.callMember(ScriptObjectMirror.java:185)
	at jdk.nashorn.api.scripting.NashornScriptEngine.invokeImpl(NashornScriptEngine.java:505)
	at jdk.nashorn.api.scripting.NashornScriptEngine.invokeMethod(NashornScriptEngine.java:236)
	at org.openstreetmap.josm.data.validation.tests.OpeningHourTest.checkOpeningHourSyntax(OpeningHourTest.java:209)
	at org.openstreetmap.josm.data.validation.tests.OpeningHourTest.checkOpeningHourSyntax(OpeningHourTest.java:180)
	at org.openstreetmap.josm.data.validation.tests.OpeningHourTest.check(OpeningHourTest.java:250)
	at org.openstreetmap.josm.data.validation.tests.OpeningHourTest.check(OpeningHourTest.java:257)
	at org.openstreetmap.josm.data.validation.Test$TagTest.visit(Test.java:118)
	at org.openstreetmap.josm.data.osm.

Attachments (0)

Change History (2)

comment:1 by Don-vip, 10 years ago

Component: CoreCore validator
Keywords: opening_hours added

comment:2 by Don-vip, 10 years ago

Keywords: javabug java8 added
Resolution: duplicate
Status: newclosed

Closed as duplicate of #10423.

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.