﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
23100	IllegalArgumentException while trying to open custom WMTS imagery	anonymous	team	"==== What steps will reproduce the problem?
1. Create a custom WMTS image layer, such as [https://tucbs-public-api.csb.gov.tr/csb_cdp_im_wmts?request=GetCapabilities&service=WMTS here] or [https://kentrehberi.izmir.bel.tr/arcgis/rest/services/Rehber/CbsRehberGeo/MapServer/WMTS/1.0.0/WMTSCapabilities.xml here]
2. Open image layer

==== What is the expected result?
The image layer should open up perfectly with no errors, as I had used before.
==== What happens instead?
An java error pops up, with no useful end-user information whatsoever.
==== Please provide any additional information below. Attach a screenshot if possible.

{{{
Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2023-07-31 18:33:06 +0200 (Mon, 31 Jul 2023)
Revision:18789
Build-Date:2023-08-01 01:30:56
URL:https://josm.openstreetmap.de/svn/trunk

Identification: JOSM/1.5 (18789 en) Linux Arch Linux
Memory Usage: 592 MB / 1718 MB (160 MB allocated, but free)
Java version: 17.0.8+7, N/A, OpenJDK 64-Bit Server VM
Look and Feel: com.sun.java.swing.plaf.gtk.GTKLookAndFeel
Screen: :0.0 1920×1080 (scaling 1.00×1.00)
Maximum Screen Size: 1920×1080
Best cursor sizes: 16×16→16×16, 32×32→32×32
Environment variable LANG: tr_TR.UTF-8
System property file.encoding: UTF-8
System property sun.jnu.encoding: UTF-8
Locale info: en_TR
Numbers with default locale: 1234567890 -> 1234567890
Desktop environment: KDE
VM arguments: [--add-reads=java.base=ALL-UNNAMED,java.desktop, --add-reads=java.desktop=ALL-UNNAMED,java.naming, --add-reads=java.naming=ALL-UNNAMED,java.desktop, --add-exports=java.desktop/sun.awt=ALL-UNNAMED,java.desktop, --add-exports=java.desktop/javax.jnlp=ALL-UNNAMED,java.desktop, --add-exports=java.base/com.sun.net.ssl.internal.ssl=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.net.www.protocol.jar=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.security.action=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.security.provider=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.security.util=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.security.validator=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.security.x509=ALL-UNNAMED,java.desktop, --add-exports=java.base/jdk.internal.util.jar=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.net.www.protocol.http=ALL-UNNAMED,java.desktop, --add-exports=java.desktop/sun.awt.X11=ALL-UNNAMED,java.desktop, --add-exports=java.desktop/sun.applet=ALL-UNNAMED,java.desktop, --add-exports=java.desktop/sun.applet=ALL-UNNAMED,jdk.jsobject, --add-exports=java.naming/com.sun.jndi.toolkit.url=ALL-UNNAMED,java.desktop, --patch-module=jdk.jsobject=/usr/share/icedtea-web/jsobject.jar, -Dicedtea-web.bin.name=javaws, -Dicedtea-web.bin.location=/usr/share/icedtea-web/bin/javaws]

Plugins:
+ PicLayer (1.0.2)
+ reverter (36066)
+ utilsplugin2 (36097)

Tagging presets:
+ https://raw.githubusercontent.com/yopaseopor/traffic_signs_preset_JOSM/master/TR.zip
+ https://raw.githubusercontent.com/osmlab/name-suggestion-index/main/dist/presets/nsi-josm-presets.min.xml
+ https://josm.openstreetmap.de/josmfile?page=Presets/ParkingLanes&zip=1

Map paint styles:
+ https://josm.openstreetmap.de/josmfile?page=Styles/Lane_and_Road_Attributes&zip=1
+ https://raw.githubusercontent.com/yopaseopor/traffic_signs_style_JOSM/master/Styles_Traffic_signs_EUR_OR.zip

Last errors/warnings:
- 00059.340 E: org.openstreetmap.josm.tools.bugreport.ReportedException: java.lang.IllegalArgumentException: [TileMatrixSet [crs=EPSG:0, identifier=default028mm]]. Cause: java.lang.IllegalArgumentException: [TileMatrixSet [crs=EPSG:0, identifier=default028mm]]
- 00496.469 E: org.openstreetmap.josm.tools.bugreport.ReportedException: java.lang.IllegalArgumentException: [TileMatrixSet [crs=EPSG:3857, identifier=default028mm], TileMatrixSet [crs=EPSG:3857, identifier=GoogleMapsCompatible]]. Cause: java.lang.IllegalArgumentException: [TileMatrixSet [crs=EPSG:3857, identifier=default028mm], TileMatrixSet [crs=EPSG:3857, identifier=GoogleMapsCompatible]]
- 00538.815 E: org.openstreetmap.josm.tools.bugreport.ReportedException: java.lang.IllegalArgumentException: [TileMatrixSet [crs=EPSG:3857, identifier=default028mm], TileMatrixSet [crs=EPSG:3857, identifier=GoogleMapsCompatible]]. Cause: java.lang.IllegalArgumentException: [TileMatrixSet [crs=EPSG:3857, identifier=default028mm], TileMatrixSet [crs=EPSG:3857, identifier=GoogleMapsCompatible]]
}}}
"	defect	closed	normal		External imagery source	tested	invalid	template_report imagery	
