Modify

Opened 14 months ago

Closed 13 months ago

Last modified 13 months ago

#23100 closed defect (invalid)

IllegalArgumentException while trying to open custom WMTS imagery

Reported by: anonymous Owned by: team
Priority: normal Milestone:
Component: External imagery source Version: tested
Keywords: template_report imagery Cc:

Description

What steps will reproduce the problem?

  1. Create a custom WMTS image layer, such as here or 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]]

Attachments (2)

Screenshot_20230804_194727.png (25.0 KB ) - added by anonymous 14 months ago.
image.png (10.5 KB ) - added by anonymous 14 months ago.

Download all attachments as: .zip

Change History (8)

by anonymous, 14 months ago

by anonymous, 14 months ago

Attachment: image.png added

comment:1 by taylor.smock, 13 months ago

Resolution: worksforme
Status: newclosed

The former "just worked" for me; the latter did not (as in, I got no data from that URL, which might be due to a country-level firewall or something).

I'm going to guess there was a problem on the servers, but I don't know, since I cannot reproduce.

in reply to:  1 comment:2 by anonymous, 13 months ago

Replying to taylor.smock:

The former "just worked" for me; the latter did not (as in, I got no data from that URL, which might be due to a country-level firewall or something).

I'm going to guess there was a problem on the servers, but I don't know, since I cannot reproduce.

The latter is firewalled, yes. And there are no obvious problems on the servers, hell the error doesn't even provide a backtrack. I also have tried to clear install JOSM and Java, also ran IcedTea version, but it didn't work either.

comment:3 by anonymous, 13 months ago

SEVERE: 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]]
ReportedException [thhttps://josm.openstreetmap.de/ticket/23100#read=Thread[#35,AWT-EventQueue-0,6,main], exception=java.lang.IllegalArgumentException: [TileMatrixSet [crs=EPSG:0, identifier=default028mm]], methodWarningFrom=null]
        at org.openstreetmap.josm.tools.bugreport.BugReport.intercept(BugReport.java:213)
        at org.openstreetmap.josm.gui.MapView.layerAdded(MapView.java:371)
        at org.openstreetmap.josm.gui.layer.LayerManager.fireLayerAdded(LayerManager.java:459)
        at org.openstreetmap.josm.gui.layer.LayerManager.realAddLayer(LayerManager.java:234)
        at org.openstreetmap.josm.gui.layer.MainLayerManager.realAddLayer(MainLayerManager.java:326)
        at org.openstreetmap.josm.gui.layer.LayerManager.lambda$addLayer$0(LayerManager.java:218)
        at org.openstreetmap.josm.gui.util.GuiHelper.runInEDTAndWaitWithException(GuiHelper.java:247)
        at org.openstreetmap.josm.gui.layer.LayerManager.addLayer(LayerManager.java:218)
        at org.openstreetmap.josm.gui.layer.LayerManager.addLayer(LayerManager.java:207)
        at org.openstreetmap.josm.actions.AddImageryLayerAction.actionPerformed(AddImageryLayerAction.java:170)
        at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1972)
        at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2314)
        at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:407)
        at java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262)
        at java.desktop/javax.swing.AbstractButton.doClick(AbstractButton.java:374)
        at java.desktop/javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1029)
        at java.desktop/javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1073)
        at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:297)
        at java.desktop/java.awt.Component.processMouseEvent(Component.java:6620)
        at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3398)
        at java.desktop/java.awt.Component.processEvent(Component.java:6385)
        at java.desktop/java.awt.Container.processEvent(Container.java:2266)
        at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:4995)
        at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2324)
        at java.desktop/java.awt.Component.dispatchEvent(Component.java:4827)
        at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4948)
        at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4575)
        at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4516)
        at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2310)
        at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2780)
        at java.desktop/java.awt.Component.dispatchEvent(Component.java:4827)
        at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:775)
        at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:720)
        at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:714)
        at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
        at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
        at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:98)
        at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:747)
        at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745)
        at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
        at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
        at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:744)
        at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
        at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
        at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
        at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
        at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
        at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Caused by: java.lang.IllegalArgumentException: [TileMatrixSet [crs=EPSG:0, identifier=default028mm]]
        at org.openstreetmap.josm.data.imagery.WMTSTileSource.initProjection(WMTSTileSource.java:838)
        at org.openstreetmap.josm.gui.layer.WMTSLayer.projectionChanged(WMTSLayer.java:103)
        at org.openstreetmap.josm.gui.layer.AbstractTileSourceLayer.initializeIfRequired(AbstractTileSourceLayer.java:581)
        at org.openstreetmap.josm.gui.layer.AbstractTileSourceLayer.attachToMapView(AbstractTileSourceLayer.java:558)
        at org.openstreetmap.josm.gui.MapView.layerAdded(MapView.java:349)
        ... 46 more

The error seems coming out of nowhere. Annoying.

comment:4 by anonymous, 13 months ago

Resolution: worksforme
Status: closedreopened

Well, it's clearly not non-reproducible. I've installed JOSM on a bare-metal, minimal Fedora installation and tried the same steps; also switched IPs several times. And still getting the same error. Am I missing something?

comment:5 by taylor.smock, 13 months ago

Resolution: worksforme
Status: reopenedclosed

ReportedException [thhttps://josm.openstreetmap.de/ticket/23100#read=Thread[#35,AWT-EventQueue-0,6,main], exception=java.lang.IllegalArgumentException: [TileMatrixSet [crs=EPSG:0, identifier=default028mm]], methodWarningFrom=null]

It looks like this one was from the latter link ( CbsRehberGeo ) which is working for me today. I have no clue why it wasn't working for me when I looked a week ago.

Anyway, I'm looking at the EPSG code specified, and it makes no sense. What is EPSG:0? AFAIK, it is not a valid reference system. Something is broken serverside (this is the advertised EPSG code for the supported CRS).

In other words, JOSM is doing exactly what it should be.

comment:6 by anonymous, 13 months ago

Resolution: worksformeinvalid

Thanks for the reply, and the first one started to work for me (and please replace in all comments where I said "the latter" with the first link, I was thinking it was the second link from the start). I've changed the ticket to "invalid" since it's clearly not something related to JOSM. And Arcgis suggests that it defaults to WGS84, a statement that needs verification - and if so, can be "fixed" on JOSM side but still sounds very incorrect given that one would assume that the server is correct on that case. Thanks for all the help.

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.