Modify

#23954 closed defect (wontfix)

IllegalArgumentException when loading task manager task with specific custom imagery

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

Description

What steps will reproduce the problem?

  1. load a task from https://tasks.openstreetmap.us/projects/495/map/?editor=JOSM

What is the expected result?

task loads

What happens instead?

exception

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

Revision:19230
Build-Date:2024-10-02 11:41:59

Identification: JOSM/1.5 (19230 en) Windows 10 64-Bit
OS Build number: Windows 10 Pro 22H2 (19045)
Memory Usage: 424 MB / 16384 MB (211 MB allocated, but free)
Java version: 21.0.4+7-LTS, Azul Systems, Inc., OpenJDK 64-Bit Server VM
Look and Feel: com.sun.java.swing.plaf.windows.WindowsLookAndFeel
Screen: \Display0 1440x2560x32bpp@59Hz (scaling 1.00×1.00) \Display1 3840x2160x32bpp@60Hz (scaling 1.50×1.50)
Maximum Screen Size: 3840×2560
Best cursor sizes: 16×16→48×48, 32×32→48×48
System property file.encoding: UTF-8
System property sun.jnu.encoding: Cp1252
Locale info: en_US
Numbers with default locale: 1234567890 -> 1234567890
Dataset consistency test: No problems found

Plugins:
+ FastDraw (36344)
+ FixAddresses (36344)
+ MapRoulette (40)
+ Mapillary (1778)
+ MicrosoftStreetside (36326)
+ PicLayer (1.0.3)
+ apache-commons (36282)
+ apache-http (36273)
+ buildings_tools (36344)
+ conflation (0.6.11)
+ continuosDownload (107)
+ contourmerge (v0.2.1)
+ damn (v0.14.1)
+ ejml (36176)
+ geotools (36273)
+ gridify (1718663815)
+ imagery_offset_db (36344)
+ jackson (36273)
+ javafx (36282)
+ jaxb (36118)
+ jna (36273)
+ josm_magic_wand (2.0.3)
+ jts (36004)
+ log4j (36273)
+ mapwithai (829)
+ opendata (36343)
+ pmtiles (36219)
+ reltoolbox (36344)
+ reverter (36343)
+ scripting (v0.3.1)
+ shrinkwrap (v1.1.3)
+ sidewalks (67)
+ tageditor (36344)
+ terracer (36344)
+ todo (139)
+ turnrestrictions (36344)
+ undelete (36298)
+ utilsplugin2 (36344)
+ wikipedia (418)

Tagging presets:
+ C:\OSM\JOSMPresets\watmildonCustom.xml

Map paint styles:
+ https://josm.openstreetmap.de/josmfile?page=Styles/TigerReviewedNo&zip=1
- %UserProfile%\Address Tags Validator - Highlight unaddressed
- https://josm.openstreetmap.de/josmfile?page=Styles/Modified&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/AddressValidator&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/MapWithAI&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Coloured_Streets&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Admin_Boundaries&zip=1
- C:\OSM\mapwiaipaintstyle
- https://josm.openstreetmap.de/josmfile?page=Styles/Waterways&zip=1
+ C:\OSM\josm-validator-rules\josm-validator-rules\paintstyles\TigerTagNoticer.mapcss

Validator rules:
- C:\OSM\Validator\GNISFixup.validator.mapcss
+ C:\OSM\josm-validator-rules\josm-validator-rules\rules\USStreetNameExpander-PrefixDirectional.validator.mapcss
+ C:\OSM\josm-validator-rules\josm-validator-rules\rules\USStreetNameExpander-PostfixDirectional.validator.mapcss
+ C:\OSM\josm-validator-rules\josm-validator-rules\rules\USStreetNameExpander.validator.mapcss
+ C:\OSM\josm-validator-rules\josm-validator-rules\rules\ALLCAPS-to-TitleCase.validator.mapcss
+ C:\OSM\josm-validator-rules\josm-validator-rules\rules\PhoneNumber-ITU-T-Formatter.validator.mapcss
- C:\OSM\josm-validator-rules\josm-validator-rules\rules\ImportCleanup-San-Luis-Obispo-County.validator.mapcss
+ C:\OSM\josm-validator-rules\josm-validator-rules\rules\PhoneNumber-ITU-T-Formatter-Aggressive.validator.mapcss
+ C:\OSM\josm-validator-rules\josm-validator-rules\rules\NameTagCapitalization.validator.mapcss
- C:\OSM\josm-validator-rules\josm-validator-rules\rules\LevelNotLayerIssues.validator.mapcss
- C:\OSM\josm-validator-rules\josm-validator-rules\rules\CuisineFixups.validator.mapcss
+ C:\OSM\josm-validator-rules\josm-validator-rules\rules\FullAddressInStreetTag.validator.mapcss
- C:\OSM\josm-validator-rules\josm-validator-rules\rules\RemoveCOVID19Tagging.validator.mapcss
- C:\OSM\josm-validator-rules\josm-validator-rules\rules\whammo-PhoneFixup.validator.mapcss
+ C:\OSM\josm-validator-rules\josm-validator-rules\rules\USStreetNameExpander-UncommonExpansions.validator.mapcss
- C:\OSM\josm-validator-rules\josm-validator-rules\rules\NHDToOSMTagRemap.validator.mapcss
- C:\OSM\josm-validator-rules\josm-validator-rules\rules\VictoriaAddressFixup.validator.mapcss
- C:\OSM\josm-validator-rules\josm-validator-rules\rules\CanVecTagging.validator.mapcss
- C:\OSM\josm-validator-rules\josm-validator-rules\rules\Waterways.validator.mapcss
- C:\OSM\josm-validator-rules\josm-validator-rules\rules\USCensusPopulationInvestigation.validator.mapcss
+ C:\OSM\josm-validator-rules\josm-validator-rules\rules\TigerRemovalNudge.validator.mapcss
+ C:\OSM\josm-validator-rules\josm-validator-rules\rules\FeetToMeterConverter.validator.mapcss
+ https://github.com/hdevine825/josm-validator-rules/blob/main/rules%2FsidewalkCrossingNoKerb.validator.mapcss
+ C:\OSM\josm-validator-rules\josm-validator-rules\rules\USStreetName-CountyRoadsToRefs.validator.mapcss
+ C:\OSM\josm-validator-rules\josm-validator-rules\rules\OrdinalNumberCapitalization.validator.mapcss

Last errors/warnings:
- 00028.519 W: Failed to add https://github.com/hdevine825/josm-validator-rules/blob/main/rules%2FsidewalkCrossingNoKerb.validator.mapcss to tag checker
- 00028.525 W: org.openstreetmap.josm.gui.mappaint.mapcss.parsergen.ParseException: Encountered "<EOF>" at line 2570, column 1.
- 00028.568 E: Cannot add MapCSS rule: java.lang.IllegalArgumentException: instance of Exception or String expected, but got Keyword{name_1}
- 00028.569 E: Cannot add MapCSS rule: java.lang.IllegalArgumentException: instance of Exception or String expected, but got Keyword{name_1}
- 00028.570 E: Cannot add MapCSS rule: java.lang.IllegalArgumentException: instance of Exception or String expected, but got Keyword{name_1}
- 00028.572 E: Cannot add MapCSS rule: java.lang.IllegalArgumentException: instance of Exception or String expected, but got Keyword{name_1}
- 00028.573 E: Cannot add MapCSS rule: java.lang.IllegalArgumentException: instance of Exception or String expected, but got Keyword{name_1}
- 00103.994 W: Unknown remote control parameter title, skipping it
- 00106.453 E: Failed to locate image 'mapmode/presets/transport/way/way_pedestrian.svg'
- 00111.654 E: Handled by bug report queue: java.lang.IllegalArgumentException: {bbox} is not a valid TMS argument. Please check this server URL:



=== REPORTED CRASH DATA ===
MapView#layerAdded:
 - layer: TMSLayer [info=https://services.nconemap.gov/secure/rest/services/Imagery/Orthoimagery_2021/ImageServer/exportImage?bbox={bbox}&bboxSR=102100&format=jpgpng&pixelType=U8&noDataInterpretation=esriNoDataMatchAny&interpolation=+RSP_BilinearInterpolation&adjustAspectRatio=true&validateExtent=false&lercVersion=1&f=image[] ('Worldwide) - https://services.nconemap.gov/secure/rest/services/Imagery/Orthoimagery_2021/ImageServer/exportImage?bbox={bbox}&bboxSR=102100&format=jpgpng&pixelType=U8&noDataInterpretation=esriNoDataMatchAny&interpolation=+RSP_BilinearInterpolation&adjustAspectRatio=true&validateExtent=false&lercVersion=1&f=image - TMS]

BugReportExceptionHandler#handleException:
No data collected.

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: AWT-EventQueue-0 (31) of main
java.lang.IllegalArgumentException: {bbox} is not a valid TMS argument. Please check this server URL:
https://services.nconemap.gov/secure/rest/services/Imagery/Orthoimagery_2021/ImageServer/exportImage?bbox={bbox}&bboxSR=102100&format=jpgpng&pixelType=U8&noDataInterpretation=esriNoDataMatchAny&interpolation=+RSP_BilinearInterpolation&adjustAspectRatio=true&validateExtent=false&lercVersion=1&f=image
	at org.openstreetmap.gui.jmapviewer.tilesources.TemplatedTMSTileSource.checkUrl(TemplatedTMSTileSource.java:189)
	at org.openstreetmap.josm.gui.layer.TMSLayer.getTileSourceStatic(TMSLayer.java:119)
	at org.openstreetmap.josm.gui.layer.TMSLayer.getTileSource(TMSLayer.java:77)
	at org.openstreetmap.josm.gui.layer.TMSLayer.getTileSource(TMSLayer.java:35)
	at org.openstreetmap.josm.gui.layer.AbstractTileSourceLayer.initializeIfRequired(AbstractTileSourceLayer.java:579)
	at org.openstreetmap.josm.gui.layer.AbstractTileSourceLayer.attachToMapView(AbstractTileSourceLayer.java:561)
	at org.openstreetmap.josm.gui.MapView.layerAdded(MapView.java:361)
	at org.openstreetmap.josm.gui.layer.LayerManager.fireLayerAdded(LayerManager.java:462)
	at org.openstreetmap.josm.gui.layer.LayerManager.realAddLayer(LayerManager.java:237)
	at org.openstreetmap.josm.gui.layer.MainLayerManager.realAddLayer(MainLayerManager.java:327)
	at org.openstreetmap.josm.gui.layer.LayerManager.lambda$addLayer$0(LayerManager.java:221)
	at org.openstreetmap.josm.gui.util.GuiHelper.runInEDTAndWaitWithException(GuiHelper.java:247)
	at org.openstreetmap.josm.gui.layer.LayerManager.addLayer(LayerManager.java:221)
	at org.openstreetmap.josm.gui.layer.LayerManager.addLayer(LayerManager.java:210)
	at org.openstreetmap.josm.io.remotecontrol.handler.ImageryHandler.lambda$handleRequest$4(ImageryHandler.java:90)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(Unknown Source)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
	at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
	at java.base/java.security.AccessController.doPrivileged(Unknown Source)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.desktop/java.awt.WaitDispatchSupport$2.run(Unknown Source)
	at java.desktop/java.awt.WaitDispatchSupport$4.run(Unknown Source)
	at java.desktop/java.awt.WaitDispatchSupport$4.run(Unknown Source)
	at java.base/java.security.AccessController.doPrivileged(Unknown Source)
	at java.desktop/java.awt.WaitDispatchSupport.enter(Unknown Source)
	at java.desktop/java.awt.Dialog.show(Unknown Source)
	at java.desktop/java.awt.Component.show(Unknown Source)
	at java.desktop/java.awt.Component.setVisible(Unknown Source)
	at java.desktop/java.awt.Window.setVisible(Unknown Source)
	at java.desktop/java.awt.Dialog.setVisible(Unknown Source)
	at org.openstreetmap.josm.gui.progress.swing.PleaseWaitProgressMonitor.lambda$doBeginTask$3(PleaseWaitProgressMonitor.java:255)
	at org.openstreetmap.josm.gui.progress.swing.PleaseWaitProgressMonitor.lambda$doInEDT$0(PleaseWaitProgressMonitor.java:113)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(Unknown Source)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
	at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
	at java.base/java.security.AccessController.doPrivileged(Unknown Source)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)

Attachments (0)

Change History (4)

comment:1 by taylor.smock, 15 months ago

I can't validate my email on the OSMUS tasking tasking manager, so I can't see what the TM is sending.

Anyway, the given URL in the exception looks like it is supposed to be a WMS image layer, not a TMS image layer.

So the TM is telling JOSM that the image layer is a TMS layer when it is a WMS layer.

If you created the project, please see wiki:Help/RemoteControlCommands#imagery .

comment:2 by taylor.smock, 15 months ago

Also, it looks like someone disabled JOSM for editors.

comment:3 by watmildon, 15 months ago

Gotcha. Thanks!

Also, it's a PublicDomainMap backed challenge which means it's not going to work in JOSM anyway. Now I get to chase down why the task manager sent it to JOSM when that's not allowed for these tasks.

comment:4 by taylor.smock, 15 months ago

Resolution: wontfix
Status: newclosed

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.