﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
22052	"""Nominatim"" search is inhibited from the 2nd launch of JOSM onwards"	n34s@…	n34s@…	"==== What steps will reproduce the problem?
1. Install the latest build of JOSM for Windows (by josm-setup.exe) or any other Java 16-17 build from scratch, then launch it.
2. Go to ""Download map data from a server of your choice (Ctrl+Shift+Down) > Areas around places > Enter a place name to search for: > Search..."". Initially, ""Nominatim"" search will work normally.
3. Restart JOSM by closing and reopening it or by pressing ""Ctrl+Alt+Shift+J"".
4. Repeat Step 2 then draw the conclusions.

==== What is the expected result?

""Nominatim"" server should remain available even after the very first launch of JOSM.

==== What happens instead?

JOSM is no longer able to reach ""Nominatim"" server from its 2nd launch onwards. Search process stalls on ""Querying name server..."" for a couple of seconds and finally ends with the following message: ""Failed to upload data to or download data from 'https://nominatim.openstreetmap.org/search?format=xml&q=' due to a problem with transferring data. Details (untranslated): Connect timed out"".

==== Please provide any additional information below. Attach a screenshot if possible.

It basically happens with each Java 16-17 build of JOSM for Windows (18191 onwards). It works flawlessly on 1st launch of JOSM right after a fresh installation, but from the 2nd start onwards the ""Nominatim"" search will no longer work (except by uninstalling and reinstalling JOSM from scratch).

[[Image(https://prnt.sc/_5UqMsJc2b0c)]]

{{{
Revision:18427
Build-Date:2022-04-05 19:23:14

Identification: JOSM/1.5 (18427 en) Windows 10 64-Bit
OS Build number: Windows 10 Pro 2009 (19044)
Memory Usage: 320 MB / 4078 MB (155 MB allocated, but free)
Java version: 17.0.2+8-LTS, Azul Systems, Inc., OpenJDK 64-Bit Server VM
Look and Feel: com.sun.java.swing.plaf.windows.WindowsLookAndFeel
Screen: \Display0 3840×2160 (scaling 1.50×1.50)
Maximum Screen Size: 3840×2160
Best cursor sizes: 16×16→48×48, 32×32→48×48
System property file.encoding: Cp1252
System property sun.jnu.encoding: Cp1252
Locale info: en_IT
Numbers with default locale: 1234567890 -> 1234567890
VM arguments: [-Djpackage.app-version=1.5.18427, --add-modules=java.scripting,java.sql,javafx.controls,javafx.media,javafx.swing,javafx.web, --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, --add-opens=java.base/java.lang=ALL-UNNAMED, --add-opens=java.base/java.nio=ALL-UNNAMED, --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED, --add-opens=java.base/jdk.internal.ref=ALL-UNNAMED, --add-opens=java.desktop/javax.imageio.spi=ALL-UNNAMED, --add-opens=java.desktop/javax.swing.text.html=ALL-UNNAMED, --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED, -Djpackage.app-path=%UserProfile%\AppData\Local\JOSM\JOSM.exe]

Last errors/warnings:
- 00000.329 W: extended font config - overriding 'filename.Myanmar_Text=mmrtext.ttf' with 'MMRTEXT.TTF'
- 00000.332 W: extended font config - overriding 'filename.Mongolian_Baiti=monbaiti.ttf' with 'MONBAITI.TTF'
- 00002.335 E: java.security.KeyStoreException: Windows-ROOT not found. Cause: java.security.NoSuchAlgorithmException: Windows-ROOT KeyStore not available
- 00033.471 W: java.net.SocketTimeoutException: Connect timed out
- 00033.473 E: org.openstreetmap.josm.io.OsmTransferException: java.net.SocketTimeoutException: Connect timed out. Cause: java.net.SocketTimeoutException: Connect timed out
- 00033.486 E: IO Exception - <html>Failed to upload data to or download data from<br>'https://nominatim.openstreetmap.org/search?format=xml&q=roma'<br>due to a problem with transferring data.<br>Details (untranslated): Connect timed out</html>
}}}
"	defect	closed	normal		Core	latest	needinfo	template_report, windows	
