#22323 closed defect (duplicate)
org.openstreetmap.josm.actions.SessionSaveAction
Reported by: | Owned by: | team | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core | Version: | |
Keywords: | template_report | Cc: |
Description
What steps will reproduce the problem?
- Start JOSM 18531 (windows-exe) after a fresh installation
- Update addons
What is the expected result?
Addons updated, JOSM starts normally.
What happens instead?
JOSM crashed.
Please provide any additional information below. Attach a screenshot if possible.
Revision:18531 Build-Date:2022-08-02 12:45:38 Identification: JOSM/1.5 (18531 de) Windows 10 64-Bit OS Build number: Windows 10 Pro 2009 (19044) Memory Usage: 100 MB / 2024 MB (35 MB allocated, but free) Java version: 17.0.4+8-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.25×1.25) 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: de_DE Numbers with default locale: 1234567890 -> 1234567890 VM arguments: [-Djpackage.app-version=1.5.18531, --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] Plugins: + buildings_tools Last errors/warnings: - 00000.851 W: extended font config - overriding 'filename.Myanmar_Text=mmrtext.ttf' with 'MMRTEXT.TTF' - 00000.858 W: extended font config - overriding 'filename.Mongolian_Baiti=monbaiti.ttf' with 'MONBAITI.TTF' - 00001.470 E: Exception raised in EDT: java.util.concurrent.ExecutionException: java.lang.ExceptionInInitializerError. Ursache: java.lang.ExceptionInInitializerError. Ursache: java.lang.NullPointerException: Cannot invoke "javax.swing.JComponent.getInputMap(int)" because "org.openstreetmap.josm.gui.MainApplication.contentPanePrivate" is null - 00001.801 E: java.security.KeyStoreException: Windows-ROOT not found. Ursache: java.security.NoSuchAlgorithmException: Windows-ROOT KeyStore not available - 00003.035 W: Erweiterungen aktualisieren - Sie haben JOSM aktualisiert. Zur Vermeidung von Problemen sollten die Erweiterungen ebenfalls aktualisiert werden. Erweiterungen jetzt aktualisieren? - 00013.450 E: Handled by bug report queue: java.lang.NoClassDefFoundError: Could not initialize class org.openstreetmap.josm.actions.SessionSaveAction === REPORTED CRASH DATA === BugReportExceptionHandler#handleException: No data collected. Warning issued by: BugReportExceptionHandler#handleException === STACK TRACE === Thread: main (1) java.lang.NoClassDefFoundError: Could not initialize class org.openstreetmap.josm.actions.SessionSaveAction at org.openstreetmap.josm.gui.MainMenu.<init>(MainMenu.java:181) at org.openstreetmap.josm.gui.MainFrame.initialize(MainFrame.java:93) at org.openstreetmap.josm.gui.MainApplication.initializeMainWindow(MainApplication.java:415) at org.openstreetmap.josm.spi.lifecycle.InitializationTask.call(InitializationTask.java:33) at org.openstreetmap.josm.spi.lifecycle.Lifecycle.runInitializationTasks(Lifecycle.java:103) at org.openstreetmap.josm.spi.lifecycle.Lifecycle.initialize(Lifecycle.java:71) at org.openstreetmap.josm.gui.MainApplication.mainJOSM(MainApplication.java:953) at org.openstreetmap.josm.gui.MainApplication$3.processArguments(MainApplication.java:277) at org.openstreetmap.josm.gui.MainApplication.main(MainApplication.java:741)
Attachments (0)
Change History (3)
comment:1 by , 2 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Summary: | First start, first crash → org.openstreetmap.josm.actions.SessionSaveAction |
comment:2 by , 2 years ago
Side note: I'm getting ready to release a new stable, and I'd really like to have this bug fixed. I'm aiming for a release today (August 29, 2022, UTC-6), but if you can get me the information I need to fix this bug, I will be more than happy to do the release after I fix it.
Seriously, I want to fix this. There have been 16 duplicate bug reports (which is a lot -- many people don't bother reporting bugs, so thank you for taking the time to do so), most of which were anonymous. Which makes followup really hard. It wouldn't matter if the bug report had the information I actually need, but it doesn't. :(
comment:3 by , 2 years ago
In 18570/josm:
Fix #22183: NoClassDefFoundError: Could not initialize class org.openstreetmap.josm.actions.SessionSaveAction
This was caused by JOSM detecting that it had started in IPv6 mode, but no IPv6
network was available. When this occurs, JOSM immediately sets a preference key
and restarts so that users are not confused about a lack of network connectivity.
The JOSM restart action then proceeds to attempt to save any active layers, but
since this occurs during startup, there are no active layers and the save actions
have not yet been initialized. The save actions cannot be initialized before
contentPanePrivate
has been initialized, but the IPv6 call is done prior to
that happening, which may then trigger a JOSM restart, which calls exitJosm
,
which then calls the save layers actions.
Closed as duplicate of #22183.
@chris: If this happens reliably for you, can you please give me the information I asked for in comment:6:ticket:22183? I'll copy it here as well.
I have been unable to reproduce the bug (I set up JOSM in a restart loop, and it never say the same bug you did over 1800 starts).
For those running into this problem, can you please run JOSM with the
--trace
option (on Ubuntu Linux,josm --trace
).Please note that
--trace
may expose sensitive information (specifically login information for various services, like OSM), so please only paste stack traces. Stack traces look like this:I am specifically interested in a
java.lang.NullPointerException
stack trace. It should havejava.lang.ExceptionInInitializerError
andjava.util.concurrent.ExecutionException
around it (please copy those as well).