Modify

Opened 5 months ago

#24417 new defect

Unable to connect to local OSM server

Reported by: dpeter99@… Owned by: team
Priority: normal Milestone:
Component: Core Version:
Keywords: template_report Cc:

Description

II'm trying to connect to a local OSM website instance

What steps will reproduce the problem?

  1. Set the OSM server URL to the locally running server
  2. Set the OAuth2 parameters to a fresly registered Oauth2app
  3. Try to login

What is the expected result?

The app should be ableto parse the token redirect from the server

What happens instead?

JOSM has an internal error, and gives a exception popup.

Please provide any additional information below. Attach a screenshot if possible.

Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2025-07-11 10:12:51 +0200 (Fri, 11 Jul 2025)
Revision:19423
Build-Date:2025-07-12 01:30:35
URL:https://josm.openstreetmap.de/svn/trunk

Identification: JOSM/1.5 (19423 en_GB) Linux Freedesktop SDK 24.08 (Flatpak runtime)
Memory Usage: 480 MB / 24016 MB (290 MB allocated, but free)
Java version: 21.0.7+2, Flathub, OpenJDK 64-Bit Server VM
Look and Feel: javax.swing.plaf.metal.MetalLookAndFeel
Screen: :0.0 3840x2160x[Multi depth]@60Hz (scaling 1.00×1.00) :0.1 2544x1431x[Multi depth]@[Unknown refresh rate] (scaling 1.00×1.00) :0.2 1590x2544x[Multi depth]@[Unknown refresh rate] (scaling 1.00×1.00)
Maximum Screen Size: 3840×2544
Best cursor sizes: 16×16→16×16, 32×32→32×32
Environment variable LANG: en_GB.UTF-8
System property file.encoding: UTF-8
System property sun.jnu.encoding: UTF-8
Locale info: en_GB
Numbers with default locale: 1234567890 -> 1234567890
Desktop environment: KDE
VM arguments: [--module-path=/app/share/openjfx/lib, --add-modules=java.scripting,java.sql,javafx.controls,javafx.media,javafx.swing,javafx.web, -Djosm.restart=true, -Djava.net.useSystemProxies=true, -XX:MaxRAMPercentage=75.0, --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:
+ PicLayer (269)
+ measurement (36438)
+ osm-obj-info (68)

Map paint styles:
+ https://github.com/osmlab/applepaintstyles/archive/main.zip
+ https://raw.githubusercontent.com/OpenNauticalChart/josm/master/BNIWR_MapCSS.mapcss
+ https://josm.openstreetmap.de/josmfile?page=Styles/Coloured_Streets&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Styles/Enhanced_Lane_and_Road_Attributes&zip=1
+ https://github.com/igitov/forest-josm-style/archive/master.zip

Last errors/warnings:
- 00166.638 W: java.net.ConnectException: Connection refused
- 00166.639 W: Already here java.net.ConnectException: Connection refused
- 04046.309 W: java.lang.UnsupportedOperationException: The BROWSE action is not supported on the current platform!
- 04068.054 E: org.openstreetmap.josm.io.OsmApiException: ResponseCode=401
- 04068.060 E: Authentication failed - <html>Authentication at the OSM server with the username '<user.name>' failed.<br>Please check the username and the password in the JOSM preferences.</html>
- 04076.061 W: java.lang.UnsupportedOperationException: The BROWSE action is not supported on the current platform!
- 04229.761 W: java.lang.UnsupportedOperationException: The BROWSE action is not supported on the current platform!
- 04303.610 W: java.lang.UnsupportedOperationException: The BROWSE action is not supported on the current platform!
- 04329.442 W: java.lang.UnsupportedOperationException: The BROWSE action is not supported on the current platform!
- 04329.745 E: Handled by bug report queue: jakarta.json.stream.JsonParsingException: Invalid token=EOF at (line no=1, column no=0, offset=-1). Expected tokens are: [CURLYOPEN, SQUAREOPEN, STRING, NUMBER, TRUE, FALSE, NULL]

OSM API: http://localhost/api


=== REPORTED CRASH DATA ===
BugReportExceptionHandler#handleException:
No data collected.

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: RemoteControl request processor (196)
jakarta.json.stream.JsonParsingException: Invalid token=EOF at (line no=1, column no=0, offset=-1). Expected tokens are: [CURLYOPEN, SQUAREOPEN, STRING, NUMBER, TRUE, FALSE, NULL]
	at org.eclipse.parsson.JsonParserImpl.parsingException(JsonParserImpl.java:460)
	at org.eclipse.parsson.JsonParserImpl.access$1000(JsonParserImpl.java:55)
	at org.eclipse.parsson.JsonParserImpl$NoneContext.getNextEvent(JsonParserImpl.java:448)
	at org.eclipse.parsson.JsonParserImpl.next(JsonParserImpl.java:360)
	at org.eclipse.parsson.JsonReaderImpl.read(JsonReaderImpl.java:63)
	at org.openstreetmap.josm.data.oauth.OAuth20Token.<init>(OAuth20Token.java:57)
	at org.openstreetmap.josm.data.oauth.OAuth20Authorization$OAuth20AuthorizationHandler.handleRequest(OAuth20Authorization.java:137)
	at org.openstreetmap.josm.io.remotecontrol.handler.AuthorizationHandler.handleRequest(AuthorizationHandler.java:130)
	at org.openstreetmap.josm.io.remotecontrol.handler.RequestHandler.handle(RequestHandler.java:88)
	at org.openstreetmap.josm.io.remotecontrol.RequestProcessor.callHandler(RequestProcessor.java:333)
	at org.openstreetmap.josm.io.remotecontrol.RequestProcessor.realRun(RequestProcessor.java:248)
	at org.openstreetmap.josm.io.remotecontrol.RequestProcessor.run(RequestProcessor.java:201)

Attachments (1)

Screenshot_20250726_170917.png (313.1 KB ) - added by dpeter99@… 5 months ago.

Download all attachments as: .zip

Change History (1)

by dpeter99@…, 5 months ago

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain team.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from team to the specified user.
Next status will be 'needinfo'. The owner will be changed from team to dpeter99@….
as duplicate The resolution will be set to duplicate. Next status will be 'closed'. The specified ticket will be cross-referenced with this ticket.
The owner will be changed from team to anonymous. Next status will be 'assigned'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.