Modify ↓
Opened 2 years ago
Last modified 23 months ago
#23449 new defect
Bad url for osm server causes crash on startup
| Reported by: | anonymous | Owned by: | team |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Core | Version: | |
| Keywords: | template_report | Cc: |
Description
What steps will reproduce the problem?
What is the expected result?
What happens instead?
Please provide any additional information below. Attach a screenshot if possible.
Revision:18940
Build-Date:2024-01-17 12:43:02
Identification: JOSM/1.5 (18940 es) Windows 10 64-Bit
OS Build number: Windows 10 Home 2009 (19045)
Memory Usage: 872 MB / 3572 MB (628 MB allocated, but free)
Java version: 17.0.10+7-LTS, Azul Systems, Inc., OpenJDK 64-Bit Server VM
Look and Feel: com.sun.java.swing.plaf.windows.WindowsLookAndFeel
Screen: \Display0 1920×1080 (scaling 1.00×1.00)
Maximum Screen Size: 1920×1080
Best cursor sizes: 16×16→32×32, 32×32→32×32
System property file.encoding: Cp1252
System property sun.jnu.encoding: Cp1252
Locale info: es_ES
Numbers with default locale: 1234567890 -> 1234567890
VM arguments: [-Djpackage.app-version=1.5.18940, --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.344 W: extended font config - overriding 'filename.Shruti=shruti.ttf' with 'SHRUTI.TTF'
- 00001.200 E: java.security.KeyStoreException: Windows-ROOT not found. Causa: java.security.NoSuchAlgorithmException: Windows-ROOT KeyStore not available
- 00028.975 E: No se pudo localizar la imagen '[[Image(pond.png)]]'
- 00029.012 E: No se pudo localizar la imagen '[[Image(oil-palm.png)]]'
- 00199.952 E: Error body: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
- 00200.057 W: org.openstreetmap.josm.io.OsmApiInitializationException: org.openstreetmap.josm.io.OsmApiException: ResponseCode=404, Error Body=<<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
- 00200.650 E: Error body: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
- 00200.753 W: Already here org.openstreetmap.josm.io.OsmApiException: ResponseCode=404, Error Body=<<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
- 00200.753 W: org.openstreetmap.josm.io.OsmApiInitializationException: org.openstreetmap.josm.io.OsmApiException: ResponseCode=404, Error Body=<<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
- 00216.175 E: Handled by bug report queue: java.lang.IllegalArgumentException: Illegal character in path at index 42: https://tile.opengeofiction.net/ogf-carto/{zoom}/{x}/{y}.png. Causa: java.net.URISyntaxException: Illegal character in path at index 42: https://tile.opengeofiction.net/ogf-carto/{zoom}/{x}/{y}.png
OSM API: https://tile.opengeofiction.net/ogf-carto/{zoom}/{x}/{y}.png
=== REPORTED CRASH DATA ===
BugReportExceptionHandler#handleException:
No data collected.
Warning issued by: BugReportExceptionHandler#handleException
=== STACK TRACE ===
Thread: AWT-EventQueue-0 (24) of main
java.lang.IllegalArgumentException: Illegal character in path at index 42: https://tile.opengeofiction.net/ogf-carto/{zoom}/{x}/{y}.png
at java.base/java.net.URI.create(Unknown Source)
at org.openstreetmap.josm.data.oauth.OAuthAccessTokenHolder.getAccessToken(OAuthAccessTokenHolder.java:124)
at org.openstreetmap.josm.gui.preferences.server.OAuthAuthenticationPreferencesPanel.refreshView(OAuthAuthenticationPreferencesPanel.java:143)
at org.openstreetmap.josm.gui.preferences.server.OAuthAuthenticationPreferencesPanel.initFromPreferences(OAuthAuthenticationPreferencesPanel.java:170)
at org.openstreetmap.josm.gui.preferences.server.AuthenticationPreferencesPanel$AuthenticationMethodChangeListener.itemStateChanged(AuthenticationPreferencesPanel.java:215)
at java.desktop/javax.swing.AbstractButton.fireItemStateChanged(Unknown Source)
at java.desktop/javax.swing.AbstractButton$Handler.itemStateChanged(Unknown Source)
at java.desktop/javax.swing.DefaultButtonModel.fireItemStateChanged(Unknown Source)
at java.desktop/javax.swing.JToggleButton$ToggleButtonModel.setSelected(Unknown Source)
at java.desktop/javax.swing.ButtonGroup.setSelected(Unknown Source)
at java.desktop/javax.swing.JToggleButton$ToggleButtonModel.setSelected(Unknown Source)
at java.desktop/javax.swing.AbstractButton.setSelected(Unknown Source)
at org.openstreetmap.josm.gui.preferences.server.AuthenticationPreferencesPanel.build(AuthenticationPreferencesPanel.java:126)
at org.openstreetmap.josm.gui.preferences.server.AuthenticationPreferencesPanel.<init>(AuthenticationPreferencesPanel.java:68)
at org.openstreetmap.josm.gui.preferences.server.ServerAccessPreference.<init>(ServerAccessPreference.java:38)
at org.openstreetmap.josm.gui.preferences.server.ServerAccessPreference.<init>(ServerAccessPreference.java:24)
at org.openstreetmap.josm.gui.preferences.server.ServerAccessPreference$Factory.createPreferenceSetting(ServerAccessPreference.java:32)
at org.openstreetmap.josm.gui.preferences.PreferenceTabbedPane.buildGui(PreferenceTabbedPane.java:481)
at org.openstreetmap.josm.gui.preferences.PreferenceDialog.build(PreferenceDialog.java:86)
at org.openstreetmap.josm.gui.preferences.PreferenceDialog.<init>(PreferenceDialog.java:56)
at org.openstreetmap.josm.actions.PreferencesAction.run(PreferencesAction.java:109)
at org.openstreetmap.josm.actions.PreferencesAction.actionPerformed(PreferencesAction.java:104)
at java.desktop/javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at java.desktop/javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at java.desktop/javax.swing.AbstractButton.doClick(Unknown Source)
at java.desktop/javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at java.desktop/javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.desktop/java.awt.Component.processMouseEvent(Unknown Source)
at java.desktop/javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.desktop/java.awt.Component.processEvent(Unknown Source)
at java.desktop/java.awt.Container.processEvent(Unknown Source)
at java.desktop/java.awt.Component.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Window.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Component.dispatchEvent(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.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
at java.desktop/java.awt.EventQueue$5.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)
Caused by: java.net.URISyntaxException: Illegal character in path at index 42: https://tile.opengeofiction.net/ogf-carto/{zoom}/{x}/{y}.png
at java.base/java.net.URI$Parser.fail(Unknown Source)
at java.base/java.net.URI$Parser.checkChars(Unknown Source)
at java.base/java.net.URI$Parser.parseHierarchical(Unknown Source)
at java.base/java.net.URI$Parser.parse(Unknown Source)
at java.base/java.net.URI.<init>(Unknown Source)
... 60 more
Attachments (0)
Change History (6)
comment:1 by , 2 years ago
comment:2 by , 2 years ago
| Summary: | Help → Bad url for osm server causes crash on startup |
|---|
comment:3 by , 2 years ago
Maybe JOSM should check if the given url can be contacted when the user specifies one in the dialog?
Note:
See TracTickets
for help on using tickets.



Seems you have specified
https://tile.opengeofiction.net/ogf-carto/{zoom}/{x}/{y}.pngas the url for the osm server.This url looks like one for background images. JOSM won't start with these settings.
Try to edit the preferences.xml in the JOSM directory. Find this block:
<tag key='osm-server.url' value='https://tile.opengeofiction.net/ogf-carto/{zoom}/{x}/{y}.png'/> <list key='osm-server.url-history'> <entry value='https://tile.opengeofiction.net/ogf-carto/{zoom}/{x}/{y}.png'/>remove the 1st and the 3rd line so that it looks like this:
Save changes and close the editor before you start JOSM again. JOSM will use the normal OSM api server then.