#23850 closed defect (fixed)
WMS Layer cannot be loaded on Linux (Mint 21.3 Virginia) but works on macOS
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Milestone: | 24.08 |
Component: | Core | Version: | |
Keywords: | template_report | Cc: |
Description ¶
What steps will reproduce the problem? ¶
- Try to load
https://www.geoservice.apps.be.ch/geoservice3/services/a42geo/of_planningcadastre04_de_ms_wms/MapServer/WMSServer?&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities&lang=de
as a WMS layer in JOSM 19160 - Select one of the available layers
What is the expected result? ¶
Possibility to select a layer.
What happens instead? ¶
JOSM "could not retrieve WMS layer list"
Please provide any additional information below. Attach a screenshot if possible. ¶
Relative:URL: ^/trunk Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b Last:Changed Date: 2024-07-30 15:13:18 +0200 (Tue, 30 Jul 2024) Revision:19160 Build-Date:2024-07-31 01:30:32 URL:https://josm.openstreetmap.de/svn/trunk Identification: JOSM/1.5 (19160 en) Linux Mint 21.3 Memory Usage: 3240 MB / 30688 MB (553 MB allocated, but free) Java version: 11.0.24+8-post-Ubuntu-1ubuntu322.04, Ubuntu, OpenJDK 64-Bit Server VM Look and Feel: javax.swing.plaf.metal.MetalLookAndFeel Screen: :0.0 2560x1440x[Multi depth]@[Unknown refresh rate] (scaling 2.00×2.00) :0.1 1200x1920x[Multi depth]@[Unknown refresh rate] (scaling 2.00×2.00) Maximum Screen Size: 2560×1920 Best cursor sizes: 16×16→16×16, 32×32→32×32 Environment variable LANG: en_US.UTF-8 System property file.encoding: UTF-8 System property sun.jnu.encoding: UTF-8 Locale info: en_US Numbers with default locale: 1234567890 -> 1234567890 Desktop environment: X-Cinnamon Java package: openjdk-11-jre:amd64-11.0.24+8-1ubuntu3~22.04 fonts-noto: fonts-noto:all-20201225-1build1 VM arguments: [--module-path=/usr/share/openjfx/lib, --add-modules=java.scripting,java.sql,javafx.controls,javafx.media,javafx.swing,javafx.web, -Djosm.restart=true, -Djava.net.useSystemProxies=true, --add-exports=java.base/sun.security.action=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.plugins.jpeg=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.spi=ALL-UNNAMED] Dataset consistency test: No problems found Plugins: + buildings_tools (36226) + conflation (0.6.11) + jts (36004) + notesolver (0.5.0) + terracer (36298) + todo + undelete (36298) + utilsplugin2 (36298) Tagging presets: + https://raw.githubusercontent.com/osmlab/name-suggestion-index/main/dist/presets/nsi-josm-presets.min.xml Last errors/warnings: - 02140.814 W: java.nio.file.FileSystemException: <josm.cache>/mirror_https___www.geoservice.apps.be.ch_geoservice3_services_a42geo_of_planningcadastre04_de_ms_wms_MapServer_WMSServer__SERVICE_WMS_VERSION_1.3.0_REQUEST_GetCapabilities.tmp: File name too long - 02140.937 W: java.nio.file.FileSystemException: <josm.cache>/mirror_https___www.geoservice.apps.be.ch_geoservice3_services_a42geo_of_planningcadastre04_de_ms_wms_MapServer_WMSServer__SERVICE_WMS_VERSION_1.3.0_REQUEST_GetCapabilities_VERSION_1.3.0.tmp: File name too long - 02141.061 W: java.nio.file.FileSystemException: <josm.cache>/mirror_https___www.geoservice.apps.be.ch_geoservice3_services_a42geo_of_planningcadastre04_de_ms_wms_MapServer_WMSServer__SERVICE_WMS_VERSION_1.3.0_REQUEST_GetCapabilities_VERSION_1.1.1.tmp: File name too long - 02141.206 W: java.nio.file.FileSystemException: <josm.cache>/mirror_https___www.geoservice.apps.be.ch_geoservice3_services_a42geo_of_planningcadastre04_de_ms_wms_MapServer_WMSServer__SERVICE_WMS_VERSION_1.3.0_REQUEST_GetCapabilities.tmp: File name too long - 02141.332 W: java.nio.file.FileSystemException: <josm.cache>/mirror_https___www.geoservice.apps.be.ch_geoservice3_services_a42geo_of_planningcadastre04_de_ms_wms_MapServer_WMSServer__SERVICE_WMS_VERSION_1.3.0_REQUEST_GetCapabilities_VERSION_1.3.0.tmp: File name too long - 02141.455 W: java.nio.file.FileSystemException: <josm.cache>/mirror_https___www.geoservice.apps.be.ch_geoservice3_services_a42geo_of_planningcadastre04_de_ms_wms_MapServer_WMSServer__SERVICE_WMS_VERSION_1.3.0_REQUEST_GetCapabilities_VERSION_1.1.1.tmp: File name too long - 02141.577 W: java.nio.file.FileSystemException: <josm.cache>/mirror_https___www.geoservice.apps.be.ch_geoservice3_services_a42geo_of_planningcadastre04_de_ms_wms_MapServer_WMSServer__SERVICE_WMS_VERSION_1.3.0_REQUEST_GetCapabilitiesSERVICE_WMS_REQUEST_GetCapabilities.tmp: File name too long - 02141.701 W: java.nio.file.FileSystemException: <josm.cache>/mirror_https___www.geoservice.apps.be.ch_geoservice3_services_a42geo_of_planningcadastre04_de_ms_wms_MapServer_WMSServer__SERVICE_WMS_VERSION_1.3.0_REQUEST_GetCapabilitiesSERVICE_WMS_REQUEST_GetCapabilities_VERSION_1.3.0.tmp: File name too long - 02141.825 W: java.nio.file.FileSystemException: <josm.cache>/mirror_https___www.geoservice.apps.be.ch_geoservice3_services_a42geo_of_planningcadastre04_de_ms_wms_MapServer_WMSServer__SERVICE_WMS_VERSION_1.3.0_REQUEST_GetCapabilitiesSERVICE_WMS_REQUEST_GetCapabilities_VERSION_1.1.1.tmp: File name too long - 02141.825 E: java.nio.file.FileSystemException: <josm.cache>/mirror_https___www.geoservice.apps.be.ch_geoservice3_services_a42geo_of_planningcadastre04_de_ms_wms_MapServer_WMSServer__SERVICE_WMS_VERSION_1.3.0_REQUEST_GetCapabilitiesSERVICE_WMS_REQUEST_GetCapabilities_VERSION_1.1.1.tmp: File name too long
Change History (19)
by , 10 months ago
Attachment: | Screenshot from 2024-08-08 15-09-38.png added |
---|
comment:1 by , 10 months ago
Oh, now that I submit the ticket I see the problem, "File name too long".
I wonder why that's not an issue on macOS.
comment:2 by , 10 months ago
176 characters shouldn't even be near enough to be "too long". Do you maybe use a filesystem which doesn't support longer filenames. Or is the full path already extremely long?
comment:3 by , 10 months ago
Owner: | changed from | to
---|---|
Status: | new → needinfo |
comment:4 by , 10 months ago
Linux Mint is running from an Ext45 partition, so I don't think that should be an issue.
The full path is not really long, as I'm starting JOSM quite normal, with a small workaround for a highDPI monitor,
[habi@thismachine|~]:which josm /usr/bin/josm (base) [habi@thismachine|~]:grep josm ~/.bashrc alias josm='export GDK_SCALE=2 && josm'
comment:5 by , 10 months ago
How do you start JOSM? Package from us, flatpak, Webstart? From the log I'd say the first, but I want to be sure.
Can you try to create the given file name with a commandline tool (e.g. touch or cat or something similar). <josm.cache> should typically be "~/.cache/JOSM/".
comment:6 by , 10 months ago
I went the sudo apt-get install josm
route, as specified here: https://josm.openstreetmap.de/wiki/Download
comment:7 by , 10 months ago
[habi@mymachine|JOSM]:pwd /home/habi/.cache/JOSM [habi@mymachine|JOSM]:touch mirror_https___www.geoservice.apps.be.ch_geoservice3_services_a42geo_of_planningcadastre04_de_ms_wms_MapServer_WMSServer__SERVICE_WMS_VERSION_1.3.0_REQUEST_GetCapabilities.tmp touch: cannot touch 'mirror_https___www.geoservice.apps.be.ch_geoservice3_services_a42geo_of_planningcadastre04_de_ms_wms_MapServer_WMSServer__SERVICE_WMS_VERSION_1.3.0_REQUEST_GetCapabilities.tmp': File name too long [habi@mymachine|JOSM]:
So it seems that the full filename (/home/habi/.cache/JOSM/mirror_https_www.geoservice.apps.be.ch_geoservice3_services_a42geo_of_planningcadastre04_de_ms_wms_MapServer_WMSServerSERVICE_WMS_VERSION_1.3.0_REQUEST_GetCapabilities.tmp) really is too long, albeit it is 'only' 198 characters according to https://www.charactercountonline.com/
I can do touch /home/habi/.cache/JOSM/mirror_https___www.geoservice.apps.be.ch_geoservice3_services_a42geo_of_planningcadastre04_de_ms_wms_MapServer_WMSServer__SERVICE_WMS_VERSION_1
which first made me believe that the multiple .
s in the filename are an issue.
But it only starts to work below file name lenghts of touch /home/habi/.cache/JOSM/mirror_https___wwwXgeoserviceXappsXbeXch_geoservice3_services_a42geo_of_planningcadastre04_de_ms_wms_MapServer_WMSServer__SERVICE_WMS_VERSI.tmp
on my machine, which is 172 characters...
comment:10 by , 10 months ago
Milestone: | → 24.08 |
---|
comment:11 by , 10 months ago
Do you use ext4 file based encryption?
I'm honestly not sure. I think I've set it up like so while installing the the machine, but cannot figure out how to check it now...
comment:12 by , 9 months ago
With version 19207 I still get the same problem unfortunately, even thought that the name is trimmed.
[habi@computer|~]:/usr/bin/java --version openjdk 17.0.12 2024-07-16 LTS OpenJDK Runtime Environment Zulu17.52+17-CA (build 17.0.12+7-LTS) OpenJDK 64-Bit Server VM Zulu17.52+17-CA (build 17.0.12+7-LTS, mixed mode, sharing) [habi@computer|~]:josm -v Using /usr/bin/java to execute josm. JOSM/1.5 (19207 en) Linux Mint 21.3
Below is the relevant part of the log.
2024-09-06 08:52:22.975 INFO: GET https://www.geoservice.apps.be.ch/geoservice3/services/a42geo/of_planningcadastre04_de_ms_wms/MapServer/WMSServer?&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities&lang=de -> HTTP/1.1 200 (120 ms; 10.6 kB) 2024-09-06 08:52:23.083 WARNING: java.nio.file.FileSystemException: /home/habi/.cache/JOSM/mirror_https___www.geoservice.apps.be.ch_geoservice3_services_a42geo_of_planningcadastre04_de_ms_wms_MapSer_53bc48a555e53dc6f24b263fa269107f.tmp: File name too long java.nio.file.FileSystemException: /home/habi/.cache/JOSM/mirror_https___www.geoservice.apps.be.ch_geoservice3_services_a42geo_of_planningcadastre04_de_ms_wms_MapSer_53bc48a555e53dc6f24b263fa269107f.tmp: File name too long at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:100) at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106) at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111) at java.base/sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:248) at java.base/sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:110) at java.base/java.nio.file.Files.deleteIfExists(Files.java:1191) at java.base/java.nio.file.Files.copy(Files.java:3148) at org.openstreetmap.josm.io.CachedFile.checkLocal(CachedFile.java:511) at org.openstreetmap.josm.io.CachedFile.getFile(CachedFile.java:284) at org.openstreetmap.josm.io.CachedFile.getInputStream(CachedFile.java:227) at org.openstreetmap.josm.io.imagery.WMSImagery.attemptGetCapabilities(WMSImagery.java:430) at org.openstreetmap.josm.io.imagery.WMSImagery.<init>(WMSImagery.java:194) at org.openstreetmap.josm.gui.preferences.imagery.AddWMSLayerPanel$GetCapabilitiesRunnable.realRun(AddWMSLayerPanel.java:231) at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(PleaseWaitRunnable.java:94) at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:142) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:840) 2024-09-06 08:52:23.117 INFO: GET https://www.geoservice.apps.be.ch/geoservice3/services/a42geo/of_planningcadastre04_de_ms_wms/MapServer/WMSServer?&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities&lang=de&VERSION=1.3.0 -> HTTP/1.1 200 (30 ms; 219 B) 2024-09-06 08:52:23.218 WARNING: java.nio.file.FileSystemException: /home/habi/.cache/JOSM/mirror_https___www.geoservice.apps.be.ch_geoservice3_services_a42geo_of_planningcadastre04_de_ms_wms_MapSer_cd767ad66d992492ef84d4fa709ee091.tmp: File name too long java.nio.file.FileSystemException: /home/habi/.cache/JOSM/mirror_https___www.geoservice.apps.be.ch_geoservice3_services_a42geo_of_planningcadastre04_de_ms_wms_MapSer_cd767ad66d992492ef84d4fa709ee091.tmp: File name too long at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:100) at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106) at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111) at java.base/sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:248) at java.base/sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:110) at java.base/java.nio.file.Files.deleteIfExists(Files.java:1191) at java.base/java.nio.file.Files.copy(Files.java:3148) at org.openstreetmap.josm.io.CachedFile.checkLocal(CachedFile.java:511) at org.openstreetmap.josm.io.CachedFile.getFile(CachedFile.java:284) at org.openstreetmap.josm.io.CachedFile.getInputStream(CachedFile.java:227) at org.openstreetmap.josm.io.imagery.WMSImagery.attemptGetCapabilities(WMSImagery.java:430) at org.openstreetmap.josm.io.imagery.WMSImagery.<init>(WMSImagery.java:194) at org.openstreetmap.josm.gui.preferences.imagery.AddWMSLayerPanel$GetCapabilitiesRunnable.realRun(AddWMSLayerPanel.java:231) at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(PleaseWaitRunnable.java:94) at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:142) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:840) 2024-09-06 08:52:23.246 INFO: GET https://www.geoservice.apps.be.ch/geoservice3/services/a42geo/of_planningcadastre04_de_ms_wms/MapServer/WMSServer?&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities&lang=de&VERSION=1.1.1 -> HTTP/1.1 200 (26 ms; 219 B) 2024-09-06 08:52:23.348 WARNING: java.nio.file.FileSystemException: /home/habi/.cache/JOSM/mirror_https___www.geoservice.apps.be.ch_geoservice3_services_a42geo_of_planningcadastre04_de_ms_wms_MapSer_33cad62bf5b8a251ec3756a98fd77874.tmp: File name too long java.nio.file.FileSystemException: /home/habi/.cache/JOSM/mirror_https___www.geoservice.apps.be.ch_geoservice3_services_a42geo_of_planningcadastre04_de_ms_wms_MapSer_33cad62bf5b8a251ec3756a98fd77874.tmp: File name too long at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:100) at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106) at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111) at java.base/sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:248) at java.base/sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:110) at java.base/java.nio.file.Files.deleteIfExists(Files.java:1191) at java.base/java.nio.file.Files.copy(Files.java:3148) at org.openstreetmap.josm.io.CachedFile.checkLocal(CachedFile.java:511) at org.openstreetmap.josm.io.CachedFile.getFile(CachedFile.java:284) at org.openstreetmap.josm.io.CachedFile.getInputStream(CachedFile.java:227) at org.openstreetmap.josm.io.imagery.WMSImagery.attemptGetCapabilities(WMSImagery.java:430) at org.openstreetmap.josm.io.imagery.WMSImagery.<init>(WMSImagery.java:194) at org.openstreetmap.josm.gui.preferences.imagery.AddWMSLayerPanel$GetCapabilitiesRunnable.realRun(AddWMSLayerPanel.java:231) at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(PleaseWaitRunnable.java:94) at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:142) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:840) 2024-09-06 08:52:23.417 INFO: GET https://www.geoservice.apps.be.ch/geoservice3/services/a42geo/of_planningcadastre04_de_ms_wms/MapServer/WMSServer?&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities&lang=de -> HTTP/1.1 200 (68 ms; 10.6 kB) 2024-09-06 08:52:23.518 WARNING: java.nio.file.FileSystemException: /home/habi/.cache/JOSM/mirror_https___www.geoservice.apps.be.ch_geoservice3_services_a42geo_of_planningcadastre04_de_ms_wms_MapSer_53bc48a555e53dc6f24b263fa269107f.tmp: File name too long java.nio.file.FileSystemException: /home/habi/.cache/JOSM/mirror_https___www.geoservice.apps.be.ch_geoservice3_services_a42geo_of_planningcadastre04_de_ms_wms_MapSer_53bc48a555e53dc6f24b263fa269107f.tmp: File name too long at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:100) at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106) at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111) at java.base/sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:248) at java.base/sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:110) at java.base/java.nio.file.Files.deleteIfExists(Files.java:1191) at java.base/java.nio.file.Files.copy(Files.java:3148) at org.openstreetmap.josm.io.CachedFile.checkLocal(CachedFile.java:511) at org.openstreetmap.josm.io.CachedFile.getFile(CachedFile.java:284) at org.openstreetmap.josm.io.CachedFile.getInputStream(CachedFile.java:227) at org.openstreetmap.josm.io.imagery.WMSImagery.attemptGetCapabilities(WMSImagery.java:430) at org.openstreetmap.josm.io.imagery.WMSImagery.<init>(WMSImagery.java:194) at org.openstreetmap.josm.gui.preferences.imagery.AddWMSLayerPanel$GetCapabilitiesRunnable.realRun(AddWMSLayerPanel.java:231) at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(PleaseWaitRunnable.java:94) at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:142) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:840) 2024-09-06 08:52:23.546 INFO: GET https://www.geoservice.apps.be.ch/geoservice3/services/a42geo/of_planningcadastre04_de_ms_wms/MapServer/WMSServer?&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities&lang=de&VERSION=1.3.0 -> HTTP/1.1 200 (27 ms; 219 B) 2024-09-06 08:52:23.647 WARNING: java.nio.file.FileSystemException: /home/habi/.cache/JOSM/mirror_https___www.geoservice.apps.be.ch_geoservice3_services_a42geo_of_planningcadastre04_de_ms_wms_MapSer_cd767ad66d992492ef84d4fa709ee091.tmp: File name too long java.nio.file.FileSystemException: /home/habi/.cache/JOSM/mirror_https___www.geoservice.apps.be.ch_geoservice3_services_a42geo_of_planningcadastre04_de_ms_wms_MapSer_cd767ad66d992492ef84d4fa709ee091.tmp: File name too long at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:100) at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106) at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111) at java.base/sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:248) at java.base/sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:110) at java.base/java.nio.file.Files.deleteIfExists(Files.java:1191) at java.base/java.nio.file.Files.copy(Files.java:3148) at org.openstreetmap.josm.io.CachedFile.checkLocal(CachedFile.java:511) at org.openstreetmap.josm.io.CachedFile.getFile(CachedFile.java:284) at org.openstreetmap.josm.io.CachedFile.getInputStream(CachedFile.java:227) at org.openstreetmap.josm.io.imagery.WMSImagery.attemptGetCapabilities(WMSImagery.java:430) at org.openstreetmap.josm.io.imagery.WMSImagery.<init>(WMSImagery.java:194) at org.openstreetmap.josm.gui.preferences.imagery.AddWMSLayerPanel$GetCapabilitiesRunnable.realRun(AddWMSLayerPanel.java:231) at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(PleaseWaitRunnable.java:94) at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:142) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:840) 2024-09-06 08:52:23.673 INFO: GET https://www.geoservice.apps.be.ch/geoservice3/services/a42geo/of_planningcadastre04_de_ms_wms/MapServer/WMSServer?&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities&lang=de&VERSION=1.1.1 -> HTTP/1.1 200 (25 ms; 219 B) 2024-09-06 08:52:23.774 WARNING: java.nio.file.FileSystemException: /home/habi/.cache/JOSM/mirror_https___www.geoservice.apps.be.ch_geoservice3_services_a42geo_of_planningcadastre04_de_ms_wms_MapSer_33cad62bf5b8a251ec3756a98fd77874.tmp: File name too long java.nio.file.FileSystemException: /home/habi/.cache/JOSM/mirror_https___www.geoservice.apps.be.ch_geoservice3_services_a42geo_of_planningcadastre04_de_ms_wms_MapSer_33cad62bf5b8a251ec3756a98fd77874.tmp: File name too long at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:100) at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106) at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111) at java.base/sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:248) at java.base/sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:110) at java.base/java.nio.file.Files.deleteIfExists(Files.java:1191) at java.base/java.nio.file.Files.copy(Files.java:3148) at org.openstreetmap.josm.io.CachedFile.checkLocal(CachedFile.java:511) at org.openstreetmap.josm.io.CachedFile.getFile(CachedFile.java:284) at org.openstreetmap.josm.io.CachedFile.getInputStream(CachedFile.java:227) at org.openstreetmap.josm.io.imagery.WMSImagery.attemptGetCapabilities(WMSImagery.java:430) at org.openstreetmap.josm.io.imagery.WMSImagery.<init>(WMSImagery.java:194) at org.openstreetmap.josm.gui.preferences.imagery.AddWMSLayerPanel$GetCapabilitiesRunnable.realRun(AddWMSLayerPanel.java:231) at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(PleaseWaitRunnable.java:94) at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:142) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:840) 2024-09-06 08:52:23.832 INFO: GET https://www.geoservice.apps.be.ch/geoservice3/services/a42geo/of_planningcadastre04_de_ms_wms/MapServer/WMSServer?&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities&lang=deSERVICE=WMS&REQUEST=GetCapabilities -> HTTP/1.1 200 (56 ms; 10.6 kB) 2024-09-06 08:52:23.934 WARNING: java.nio.file.FileSystemException: /home/habi/.cache/JOSM/mirror_https___www.geoservice.apps.be.ch_geoservice3_services_a42geo_of_planningcadastre04_de_ms_wms_MapSer_89681825fbad66059454435ac6635f03.tmp: File name too long java.nio.file.FileSystemException: /home/habi/.cache/JOSM/mirror_https___www.geoservice.apps.be.ch_geoservice3_services_a42geo_of_planningcadastre04_de_ms_wms_MapSer_89681825fbad66059454435ac6635f03.tmp: File name too long at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:100) at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106) at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111) at java.base/sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:248) at java.base/sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:110) at java.base/java.nio.file.Files.deleteIfExists(Files.java:1191) at java.base/java.nio.file.Files.copy(Files.java:3148) at org.openstreetmap.josm.io.CachedFile.checkLocal(CachedFile.java:511) at org.openstreetmap.josm.io.CachedFile.getFile(CachedFile.java:284) at org.openstreetmap.josm.io.CachedFile.getInputStream(CachedFile.java:227) at org.openstreetmap.josm.io.imagery.WMSImagery.attemptGetCapabilities(WMSImagery.java:430) at org.openstreetmap.josm.io.imagery.WMSImagery.<init>(WMSImagery.java:194) at org.openstreetmap.josm.gui.preferences.imagery.AddWMSLayerPanel$GetCapabilitiesRunnable.realRun(AddWMSLayerPanel.java:231) at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(PleaseWaitRunnable.java:94) at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:142) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:840) 2024-09-06 08:52:23.957 INFO: GET https://www.geoservice.apps.be.ch/geoservice3/services/a42geo/of_planningcadastre04_de_ms_wms/MapServer/WMSServer?&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities&lang=deSERVICE=WMS&REQUEST=GetCapabilities&VERSION=1.3.0 -> HTTP/1.1 200 (22 ms; 219 B) 2024-09-06 08:52:24.058 WARNING: java.nio.file.FileSystemException: /home/habi/.cache/JOSM/mirror_https___www.geoservice.apps.be.ch_geoservice3_services_a42geo_of_planningcadastre04_de_ms_wms_MapSer_e0ecc6ed7ff16e185d0c54eb87667506.tmp: File name too long java.nio.file.FileSystemException: /home/habi/.cache/JOSM/mirror_https___www.geoservice.apps.be.ch_geoservice3_services_a42geo_of_planningcadastre04_de_ms_wms_MapSer_e0ecc6ed7ff16e185d0c54eb87667506.tmp: File name too long at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:100) at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106) at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111) at java.base/sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:248) at java.base/sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:110) at java.base/java.nio.file.Files.deleteIfExists(Files.java:1191) at java.base/java.nio.file.Files.copy(Files.java:3148) at org.openstreetmap.josm.io.CachedFile.checkLocal(CachedFile.java:511) at org.openstreetmap.josm.io.CachedFile.getFile(CachedFile.java:284) at org.openstreetmap.josm.io.CachedFile.getInputStream(CachedFile.java:227) at org.openstreetmap.josm.io.imagery.WMSImagery.attemptGetCapabilities(WMSImagery.java:430) at org.openstreetmap.josm.io.imagery.WMSImagery.<init>(WMSImagery.java:194) at org.openstreetmap.josm.gui.preferences.imagery.AddWMSLayerPanel$GetCapabilitiesRunnable.realRun(AddWMSLayerPanel.java:231) at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(PleaseWaitRunnable.java:94) at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:142) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:840) 2024-09-06 08:52:24.084 INFO: GET https://www.geoservice.apps.be.ch/geoservice3/services/a42geo/of_planningcadastre04_de_ms_wms/MapServer/WMSServer?&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities&lang=deSERVICE=WMS&REQUEST=GetCapabilities&VERSION=1.1.1 -> HTTP/1.1 200 (24 ms; 219 B) 2024-09-06 08:52:24.185 WARNING: java.nio.file.FileSystemException: /home/habi/.cache/JOSM/mirror_https___www.geoservice.apps.be.ch_geoservice3_services_a42geo_of_planningcadastre04_de_ms_wms_MapSer_d66388a5cfcf2c6028ea240753670138.tmp: File name too long java.nio.file.FileSystemException: /home/habi/.cache/JOSM/mirror_https___www.geoservice.apps.be.ch_geoservice3_services_a42geo_of_planningcadastre04_de_ms_wms_MapSer_d66388a5cfcf2c6028ea240753670138.tmp: File name too long at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:100) at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106) at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111) at java.base/sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:248) at java.base/sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:110) at java.base/java.nio.file.Files.deleteIfExists(Files.java:1191) at java.base/java.nio.file.Files.copy(Files.java:3148) at org.openstreetmap.josm.io.CachedFile.checkLocal(CachedFile.java:511) at org.openstreetmap.josm.io.CachedFile.getFile(CachedFile.java:284) at org.openstreetmap.josm.io.CachedFile.getInputStream(CachedFile.java:227) at org.openstreetmap.josm.io.imagery.WMSImagery.attemptGetCapabilities(WMSImagery.java:430) at org.openstreetmap.josm.io.imagery.WMSImagery.<init>(WMSImagery.java:194) at org.openstreetmap.josm.gui.preferences.imagery.AddWMSLayerPanel$GetCapabilitiesRunnable.realRun(AddWMSLayerPanel.java:231) at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(PleaseWaitRunnable.java:94) at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:142) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:840) 2024-09-06 08:52:24.186 SEVERE: java.nio.file.FileSystemException: /home/habi/.cache/JOSM/mirror_https___www.geoservice.apps.be.ch_geoservice3_services_a42geo_of_planningcadastre04_de_ms_wms_MapSer_d66388a5cfcf2c6028ea240753670138.tmp: File name too long
comment:14 by , 9 months ago
Seems my code was 1 byte off. The stripped filename is 144 bytes and the limit seems to be 143. I now made it configurable and restricted it to 140 (no longer approximate, but exact).
Please try tomorrows latest JOSM version.
Screenshot from Linux