Opened 10 months ago
Closed 10 months ago
#23780 closed defect (duplicate)
Unable to connect with josm et OAuth 2.0
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core | Version: | |
Keywords: | Cc: |
Description
Server login failed
I cannot obtain an authorisation for OAuth 2.0
Nothing append nothing happens when i click on "Autoriser maintenant(Automatique)"
I have been using JOSM for several years without problems.
i can login on https://www.openstreetmap.org with my password and my login: papaoscar.
Informations:
Relative:URL: ^/trunk Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b Last:Changed Date: 2024-06-03 18:08:14 +0200 (Mon, 03 Jun 2024) Revision:19096 Build-Date:2024-06-07 01:31:15 URL:https://josm.openstreetmap.de/svn/trunk Identification: JOSM/1.5 (19096 fr) Linux Ubuntu 23.04 Memory Usage: 408 MB / 3992 MB (99 MB allocated, but free) Java version: 17.0.9+9-Ubuntu-123.04, Private Build, OpenJDK 64-Bit Server VM Look and Feel: javax.swing.plaf.metal.MetalLookAndFeel Screen: :0.0 4480×1440 (scaling 1.00×1.00) :0.1 1920×1080 (scaling 1.00×1.00) Maximum Screen Size: 4480×1440 Best cursor sizes: 16×16→16×16, 32×32→32×32 Environment variable LANG: fr_FR.UTF-8 System property file.encoding: UTF-8 System property sun.jnu.encoding: UTF-8 Locale info: fr_FR Numbers with default locale: 1234567890 -> 1234567890 Desktop environment: ubuntu:GNOME Java package: openjdk-17-jre:amd64-17.0.9+9-1~23.04 WebStart package: icedtea-netx:all-1.8.8-2 Java ATK Wrapper package: libatk-wrapper-java:all-0.40.0-2 libcommons-compress-java: libcommons-compress-java:all-1.22-1 libcommons-logging-java: libcommons-logging-java:all-1.2-3 fonts-noto: fonts-noto:- VM arguments: [--patch-module=java.desktop=/usr/share/icedtea-web/javaws.jar:, --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, -Dicedtea-web.bin.name=javaws, -Dicedtea-web.bin.location=/usr/share/icedtea-web/bin/javaws.sh, -Djava.security.manager, -Djava.security.policy=/etc/icedtea-web/javaws.policy] Dataset consistency test: No problems found Last errors/warnings: - 00280.043 E: org.openstreetmap.josm.io.MissingOAuthAccessTokenException - 00280.058 E: L’identification a échoué - <html>L’identification au serveur 'https://api.openstreetmap.org/api' a échoué.<br>Vous utilisez OAuth mais<br>aucune autorisation d’accès OAuth n’est configurée.<br>Veuillez ouvrir les préférences et générer ou entrer une autorisation d’accès.</html> - 00292.155 E: Handled by bug report queue: java.lang.reflect.InaccessibleObjectException: Unable to make field private java.awt.Image javax.swing.text.html.ImageView.image accessible: module java.desktop does not "opens javax.swing.text.html" to unnamed module @6515321c - 00510.072 E: org.openstreetmap.josm.io.MissingOAuthAccessTokenException - 00510.079 E: L’identification a échoué - <html>L’identification au serveur 'https://api.openstreetmap.org/api' a échoué.<br>Vous utilisez OAuth mais<br>aucune autorisation d’accès OAuth n’est configurée.<br>Veuillez ouvrir les préférences et générer ou entrer une autorisation d’accès.</html> - 00520.094 E: Handled by bug report queue: java.lang.reflect.InaccessibleObjectException: Unable to make field private java.awt.Image javax.swing.text.html.ImageView.image accessible: module java.desktop does not "opens javax.swing.text.html" to unnamed module @6515321c === REPORTED CRASH DATA === BugReportExceptionHandler#handleException: No data collected. Warning issued by: BugReportExceptionHandler#handleException === STACK TRACE === Thread: AWT-EventQueue-1 (31) of JOSM java.lang.reflect.InaccessibleObjectException: Unable to make field private java.awt.Image javax.swing.text.html.ImageView.image accessible: module java.desktop does not "opens javax.swing.text.html" to unnamed module @6515321c at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354) at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297) at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:178) at java.base/java.lang.reflect.Field.setAccessible(Field.java:172) at org.openstreetmap.josm.tools.ReflectionUtils.lambda$setObjectsAccessible$0(ReflectionUtils.java:32) at java.base/java.security.AccessController.doPrivileged(AccessController.java:318) at org.openstreetmap.josm.tools.ReflectionUtils.setObjectsAccessible(ReflectionUtils.java:29) at org.openstreetmap.josm.gui.widgets.JosmImageView.<init>(JosmImageView.java:50) at org.openstreetmap.josm.gui.widgets.JosmHTMLFactory.create(JosmHTMLFactory.java:29) at java.desktop/javax.swing.text.CompositeView.loadChildren(CompositeView.java:112) at java.desktop/javax.swing.text.FlowView$LogicalView.loadChildren(FlowView.java:722) at java.desktop/javax.swing.text.CompositeView.setParent(CompositeView.java:139) at java.desktop/javax.swing.text.FlowView.loadChildren(FlowView.java:147) at java.desktop/javax.swing.text.CompositeView.setParent(CompositeView.java:139) at java.desktop/javax.swing.text.FlowView.setParent(FlowView.java:297) at java.desktop/javax.swing.text.html.ParagraphView.setParent(ParagraphView.java:75) at java.desktop/javax.swing.text.CompositeView.replace(CompositeView.java:219) at java.desktop/javax.swing.text.BoxView.replace(BoxView.java:182) at java.desktop/javax.swing.text.CompositeView.loadChildren(CompositeView.java:114) at java.desktop/javax.swing.text.CompositeView.setParent(CompositeView.java:139) at java.desktop/javax.swing.text.html.BlockView.setParent(BlockView.java:72) at java.desktop/javax.swing.text.CompositeView.replace(CompositeView.java:219) at java.desktop/javax.swing.text.BoxView.replace(BoxView.java:182) at java.desktop/javax.swing.text.CompositeView.loadChildren(CompositeView.java:114) at java.desktop/javax.swing.text.CompositeView.setParent(CompositeView.java:139) at java.desktop/javax.swing.text.html.BlockView.setParent(BlockView.java:72) at java.desktop/javax.swing.text.CompositeView.replace(CompositeView.java:219) at java.desktop/javax.swing.text.BoxView.replace(BoxView.java:182) at java.desktop/javax.swing.text.CompositeView.loadChildren(CompositeView.java:114) at java.desktop/javax.swing.text.CompositeView.setParent(CompositeView.java:139) at java.desktop/javax.swing.text.html.BlockView.setParent(BlockView.java:72) at java.desktop/javax.swing.text.html.HTMLEditorKit$HTMLFactory$BodyBlockView.setParent(HTMLEditorKit.java:1476) at java.desktop/javax.swing.text.CompositeView.replace(CompositeView.java:219) at java.desktop/javax.swing.text.BoxView.replace(BoxView.java:182) at java.desktop/javax.swing.text.CompositeView.loadChildren(CompositeView.java:114) at java.desktop/javax.swing.text.CompositeView.setParent(CompositeView.java:139) at java.desktop/javax.swing.text.html.BlockView.setParent(BlockView.java:72) at java.desktop/javax.swing.plaf.basic.BasicTextUI$RootView.setView(BasicTextUI.java:1432) at java.desktop/javax.swing.plaf.basic.BasicTextUI.setView(BasicTextUI.java:713) at java.desktop/javax.swing.plaf.basic.BasicTextUI.modelChanged(BasicTextUI.java:702) at java.desktop/javax.swing.plaf.basic.BasicTextUI$UpdateHandler.propertyChange(BasicTextUI.java:1898) at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:343) at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:335) at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:268) at java.desktop/java.awt.Component.firePropertyChange(Component.java:8722) at java.desktop/javax.swing.text.JTextComponent.setDocument(JTextComponent.java:456) at org.openstreetmap.josm.gui.help.HelpBrowser.loadTopic(HelpBrowser.java:236) at org.openstreetmap.josm.gui.help.HelpBrowser.loadRelativeHelpTopic(HelpBrowser.java:332) at org.openstreetmap.josm.gui.help.HelpBrowser.openHelpTopic(HelpBrowser.java:411) at org.openstreetmap.josm.gui.help.HelpBrowser.lambda$setUrlForHelpTopic$1(HelpBrowser.java:116) at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318) at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:773) 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:399) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86) at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742) 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.pumpEventsForFilter(EventDispatchThread.java:117) at java.desktop/java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:191) at java.desktop/java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:236) at java.desktop/java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:234) at java.base/java.security.AccessController.doPrivileged(AccessController.java:318) at java.desktop/java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:234) at java.desktop/java.awt.Dialog.show(Dialog.java:1080) at java.desktop/java.awt.Component.show(Component.java:1728) at java.desktop/java.awt.Component.setVisible(Component.java:1675) at java.desktop/java.awt.Window.setVisible(Window.java:1036) at java.desktop/java.awt.Dialog.setVisible(Dialog.java:1016) at org.openstreetmap.josm.gui.HelpAwareOptionPane.doShowOptionDialog(HelpAwareOptionPane.java:358) at org.openstreetmap.josm.gui.HelpAwareOptionPane.showOptionDialog(HelpAwareOptionPane.java:290) at org.openstreetmap.josm.gui.HelpAwareOptionPane.showOptionDialog(HelpAwareOptionPane.java:373) at org.openstreetmap.josm.gui.ExceptionDialogUtil.showErrorDialog(ExceptionDialogUtil.java:43) at org.openstreetmap.josm.gui.ExceptionDialogUtil.explainMissingOAuthAccessTokenException(ExceptionDialogUtil.java:357) at org.openstreetmap.josm.gui.ExceptionDialogUtil.explainOsmTransferException(ExceptionDialogUtil.java:420) at org.openstreetmap.josm.gui.ExceptionDialogUtil.explainException(ExceptionDialogUtil.java:492) at org.openstreetmap.josm.gui.io.AbstractUploadTask.handleFailedUpload(AbstractUploadTask.java:369) at org.openstreetmap.josm.gui.io.UploadPrimitivesTask.lambda$finish$1(UploadPrimitivesTask.java:412) at org.openstreetmap.josm.gui.util.GuiHelper.runInEDT(GuiHelper.java:200) at org.openstreetmap.josm.gui.io.UploadPrimitivesTask.finish(UploadPrimitivesTask.java:366) at org.openstreetmap.josm.gui.io.AsynchronousUploadPrimitivesTask.finish(AsynchronousUploadPrimitivesTask.java:146) at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:308) at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:773) 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:399) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86) at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742) 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.pumpEventsForFilter(EventDispatchThread.java:117) at java.desktop/java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:191) at java.desktop/java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:236) at java.desktop/java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:234) at java.base/java.security.AccessController.doPrivileged(AccessController.java:318) at java.desktop/java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:234) at java.desktop/java.awt.Dialog.show(Dialog.java:1080) at java.desktop/java.awt.Component.show(Component.java:1728) at java.desktop/java.awt.Component.setVisible(Component.java:1675) at java.desktop/java.awt.Window.setVisible(Window.java:1036) at java.desktop/java.awt.Dialog.setVisible(Dialog.java:1016) at org.openstreetmap.josm.gui.progress.swing.PleaseWaitProgressMonitor.lambda$doBeginTask$3(PleaseWaitProgressMonitor.java:255) at org.openstreetmap.josm.gui.progress.swing.PleaseWaitProgressMonitor.lambda$doInEDT$0(PleaseWaitProgressMonitor.java:113) at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318) at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:773) 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:399) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86) at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742) 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)
Attachments (0)
Change History (8)
comment:2 by , 10 months ago
Owner: | changed from | to
---|---|
Status: | new → needinfo |
VM arguments: [--patch-module=java.desktop=/usr/share/icedtea-web/javaws.jar:, --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, -Dicedtea-web.bin.name=javaws, -Dicedtea-web.bin.location=/usr/share/icedtea-web/bin/javaws.sh, -Djava.security.manager, -Djava.security.policy=/etc/icedtea-web/javaws.policy]
java.lang.reflect.InaccessibleObjectException: Unable to make field private java.awt.Image javax.swing.text.html.ImageView.image accessible: module java.desktop does not "opens javax.swing.text.html" to unnamed module @6515321c at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354) at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297) at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:178) at java.base/java.lang.reflect.Field.setAccessible(Field.java:172) at org.openstreetmap.josm.tools.ReflectionUtils.lambda$setObjectsAccessible$0(ReflectionUtils.java:32) at java.base/java.security.AccessController.doPrivileged(AccessController.java:318) at org.openstreetmap.josm.tools.ReflectionUtils.setObjectsAccessible(ReflectionUtils.java:29) at org.openstreetmap.josm.gui.widgets.JosmImageView.<init>(JosmImageView.java:50) at org.openstreetmap.josm.gui.widgets.JosmHTMLFactory.create(JosmHTMLFactory.java:29)
Your VM arguments are interesting. I'm not seeing anything that indicates that it is from a recent JNLP file. For example, I'm not seeing --add-modules=java.scripting,java.sql,javafx.controls,javafx.media,javafx.swing,javafx.web
. Of specific note for this ticket, I'm also not seeing --add-opens=java.desktop/javax.swing.text.html=ALL-UNNAMED
.
Can you try redownloading the JNLP and see if that works?
comment:3 by , 10 months ago
I hide the configuration file of josm because i use a key obtain with an other computer.
If I try "javaws josm.jnlp " with the last jnlp :do not work.
If I try "java -jar josm-tested.jar" :do not work.
It say:
2024-07-08 20:18:29.728 INFOS: RemoteControl::Server /127.0.0.1:8111 stopped. 2024-07-08 20:18:29.729 INFOS: RemoteControl::Server /0:0:0:0:0:0:0:1:8111 stopped. 2024-07-08 20:18:29.729 INFOS: RemoteControl::Accepting remote connections on /127.0.0.1:8111 2024-07-08 20:18:29.730 INFOS: Ouverture de lʼURL: https://www.openstreetmap.org/oauth2/authorize?response_type=code&client_id=edPII614Lm0_0zEpc_QzEltA9BUll93-Y-ugRQUoHMI&redirect_uri=http://127.0.0.1:8111/oauth_authorization&scope=read_gpx%20write_gpx%20read_prefs%20write_prefs%20write_api%20write_notes&state=fdb08c58-fa74-4dc4-9ae4-fbfa5251722d&code_challenge_method=S256&code_challenge=code_challenge 2024-07-08 20:18:29.730 INFOS: RemoteControl::Accepting remote connections on /0:0:0:0:0:0:0:1:8111
if i try josm obtain from the repository it say:
2024-07-08 20:45:18.172 GRAVE: L’autorisation OAuth a échoué - <html>La récupération de l’autorisation d’accès OAuth depuis le serveur OSM a échoué.<br>Veuillez réessayer ou choisir une autre méthode d’authentification,<br>par exemple semi-automatique ou manuelle.</html>
and i have to kill the josm processus.
comment:4 by , 10 months ago
- Remote control is working (this is the most common reason for why OAuth 2 fails)
- The additional runs did not have the exception from the original ticket.
- Do you have further logs from the
java -jar
run?
Example of what I'm looking for:
2024-07-08 13:01:09.092 INFO: RemoteControl::Accepting remote connections on /127.0.0.1:8111 2024-07-08 13:01:09.092 INFO: RemoteControl::Accepting remote connections on /0:0:0:0:0:0:0:1:8111 2024-07-08 13:01:09.094 INFO: Message notifier active (checks every 5 minutes) 2024-07-08 13:01:09.096 INFO: Changeset updater active (checks every 60 minutes if open changesets have been closed) 2024-07-08 13:01:09.097 INFO: Enabled EDT checker, wrongful access to gui from non EDT thread will be printed to console 2024-07-08 13:01:09.518 INFO: GET https://api.openstreetmap.org/api/0.6/user/details (get number of unread messages) -> HTTP/1.1 200 (422 ms; 1.03 kB) 2024-07-08 13:01:21.134 INFO: GET https://api.openstreetmap.org/.well-known/oauth-authorization-server -> HTTP/1.1 301 (387 ms; 364 B) 2024-07-08 13:01:21.134 INFO: Download redirected to https://www.openstreetmap.org/.well-known/oauth-authorization-server 2024-07-08 13:01:21.559 INFO: GET https://www.openstreetmap.org/.well-known/oauth-authorization-server -> HTTP/1.1 200 (424 ms; 410 B) 2024-07-08 13:01:25.924 INFO: Opening URL: https://www.openstreetmap.org/oauth2/authorize?response_type=code&client_id=edPII614Lm0_0zEpc_QzEltA9BUll93-Y-ugRQUoHMI&redirect_uri=http://127.0.0.1:8111/oauth_authorization&scope=read_gpx%20write_gpx%20read_prefs%20write_prefs%20write_api%20write_notes&state=9e3ae9eb-8a17-4a63-9dc5-b13e8416eaf8&code_challenge_method=S256&code_challenge=code_challenge 2024-07-08 13:01:41.197 INFO: RemoteControl received: GET /oauth_authorization?code=code&state=9e3ae9eb-8a17-4a63-9dc5-b13e8416eaf8 HTTP/1.1 2024-07-08 13:01:41.198 INFO: POST https://www.openstreetmap.org/oauth2/token (238 B) ... 2024-07-08 13:01:41.731 INFO: POST https://www.openstreetmap.org/oauth2/token -> HTTP/1.1 200 (268 ms; 164 B) 2024-07-08 13:01:42.186 INFO: GET https://api.openstreetmap.org/api/0.6/user/details -> HTTP/1.1 200 (444 ms; 1.03 kB) 2024-07-08 13:01:42.385 INFO: RemoteControl received: GET /favicon.ico HTTP/1.1 2024-07-08 13:01:46.726 INFO: Changeset updater inactive 2024-07-08 13:01:46.727 INFO: Message notifier inactive 2024-07-08 13:01:46.727 INFO: RemoteControl::Server /127.0.0.1:8111 stopped. 2024-07-08 13:01:46.728 INFO: RemoteControl::Server /0:0:0:0:0:0:0:1:8111 stopped.
Side note: {{{
and }}}
around logs will help readability. Single `quotes` can be used for quote
.
comment:5 by , 10 months ago
at run a popup window say:
Missing JVM Arguments:
--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
These arguments should be added in the command line or start script before the -jar parameter.
Y try it but this not solve the probleme
java -jar josm-tested.jar say :
2024-07-09 08:12:18.730 INFOS: Le niveau de journalisation est à INFOS (INFO, 800) 2024-07-09 08:12:18.792 INFOS: Fichier de préférences '/home/alain/.config/JOSM/preferences.xml' manquant. Création d'un nouveau fichier de préférences par défaut. 2024-07-09 08:12:19.704 INFOS: Réseau IPv6 détecté, l’IPv6 sera préféré à l’IPv4 au prochain redémarrage. 2024-07-09 08:14:26.774 INFOS: GET https://josm.openstreetmap.de/wiki/Fr:StartupPage -> HTTP/1.1 200 (468 ms) 2024-07-09 08:14:27.397 INFOS: GET https://josm.openstreetmap.de/remote/geofabrik-index-v1-nogeom.json -> HTTP/1.1 200 (50 ms; 29,3 kB) 2024-07-09 08:14:27.680 INFOS: GET https://api.openstreetmap.org/api/capabilities -> HTTP/1.1 200 (90 ms; 485 B) 2024-07-09 08:14:27.680 INFOS: OK 2024-07-09 08:14:27.818 INFOS: Obtenu 157 règles Tag2Link de resource://META-INF/resources/webjars/tag2link/2024.2.8/index.json 2024-07-09 08:14:27.924 INFOS: GET https://josm.openstreetmap.de/maps -> HTTP/1.1 200 (83 ms) 2024-07-09 08:14:31.047 INFOS: Could not load tool definition splitway 2024-07-09 08:14:31.328 INFOS: Changeset updater active (checks every 60 minutes if open changesets have been closed) 2024-07-09 08:15:37.476 INFOS: GET https://api.openstreetmap.org/.well-known/oauth-authorization-server -> HTTP/1.1 301 (65 ms; 364 B) 2024-07-09 08:15:37.476 INFOS: Téléchargement redirigé vers https://www.openstreetmap.org/.well-known/oauth-authorization-server 2024-07-09 08:15:37.609 INFOS: GET https://www.openstreetmap.org/.well-known/oauth-authorization-server -> HTTP/1.1 200 (132 ms; 410 B) 2024-07-09 08:16:49.719 INFOS: RemoteControl::Accepting remote connections on /127.0.0.1:8111 2024-07-09 08:16:49.722 INFOS: RemoteControl::Accepting remote connections on /0:0:0:0:0:0:0:1:8111 2024-07-09 08:16:49.728 INFOS: Ouverture de lʼURL: https://www.openstreetmap.org/oauth2/authorize?response_type=code&client_id=edPII614Lm0_0zEpc_QzEltA9BUll93-Y-ugRQUoHMI&redirect_uri=http://127.0.0.1:8111/oauth_authorization&scope=read_gpx%20write_gpx%20read_prefs%20write_prefs%20write_api%20write_notes&state=d323fc89-169b-4c03-91fc-a993689c43c3&code_challenge_method=S256&code_challenge=E2gSDcvtJNcYdba7NPk4mmr6RD214rvGI16ODsB8yqg 2024-07-09 08:20:07.430 INFOS: RemoteControl received: GET /oauth_authorization?code=0Y1iWsUQcxS_KzbsKKnPLAmr0vHIyGG0nyrI_rYLTAU&state=d323fc89-169b-4c03-91fc-a993689c43c3 HTTP/1.1 2024-07-09 08:20:07.433 INFOS: POST https://www.openstreetmap.org/oauth2/token (238 B) ... 2024-07-09 08:20:07.676 INFOS: POST https://www.openstreetmap.org/oauth2/token -> HTTP/1.1 200 (198 ms; 164 B) 2024-07-09 08:20:07.753 INFOS: RemoteControl::Server /127.0.0.1:8111 stopped. 2024-07-09 08:20:07.753 INFOS: RemoteControl::Server /0:0:0:0:0:0:0:1:8111 stopped. 2024-07-09 08:20:08.051 INFOS: GET https://api.openstreetmap.org/api/0.6/user/details -> HTTP/1.1 200 (128 ms; 433 B)
I have opened open manually from the terminal the URL https://www.openstreetmap.org/oauth2/authorize?response_type=code&cli....... and i have receive a new key.
so josm is not able to open this URL by itself.
May be a bad configuration of my system ?
comment:6 by , 10 months ago
Maybe? I'll have to install Ubuntu 23.04 in a VM to see if I can reproduce. If I can, then something probably changed, and I'll be able to debug it. Otherwise, I don't know.
I assume you are using the default Ubuntu desktop?
comment:7 by , 10 months ago
Identification: JOSM/1.5 (19096 fr) Linux Ubuntu 23.04
NVM. Ubuntu 23.04 is EOL (as of 5 months ago). Please update to 24.04 -- note that 23.10 is going EOL in the next few days.
I'll still try to repro with 24.04, but your operating system is out of date.
comment:8 by , 10 months ago
Resolution: | → duplicate |
---|---|
Status: | needinfo → closed |
Closed as duplicate of #23804.
Replying to alainporet@…:
I tried with another computer.
This work fine when i use another computer with Ubuntu 20.04.6LTS and OpenJDK 11.0.20.1 2023-08-24