Opened 3 years ago
Closed 3 years ago
#22205 closed defect (duplicate)
java.lang.NoClassDefFoundError: Could not initialize class org.openstreetmap.josm.actions.SessionSaveAction on upgrade to v18513 and plugin upgrades
| Reported by: | anonymous | Owned by: | anonymous |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Core | Version: | |
| Keywords: | template_report | Cc: |
Description
What steps will reproduce the problem?
- Upgraded from v18463 to v18513 (downloaded .exe installer, paved over existing installation like in the past)
- Launched JOSM
- Let JOSM check for plugin updates when prompted.
What is the expected result?
no exception; also the behavior when JOSM gets launched again
What happens instead?
exception
Please provide any additional information below. Attach a screenshot if possible.
Revision:18513 Build-Date:2022-07-08 01:44:25 Identification: JOSM/1.5 (18513 de) Windows 8.1 64-Bit OS Build number: Windows 8.1 Pro (9600) Memory Usage: 88 MB / 4076 MB (26 MB allocated, but free) Java version: 17.0.3+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.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.18513, --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: + tofix Last errors/warnings: - 00000.472 W: extended font config - overriding 'filename.Shruti=shruti.ttf' with 'SHRUTI.TTF' - 00000.473 W: extended font config - overriding 'filename.Raavi=raavi.ttf' with 'RAAVI.TTF' - 00000.474 W: extended font config - overriding 'filename.Gautami=gautami.ttf' with 'GAUTAMI.TTF' - 00000.475 W: extended font config - overriding 'filename.Vrinda=vrinda.ttf' with 'VRINDA.TTF' - 00000.476 W: extended font config - overriding 'filename.Kartika=kartika.ttf' with 'KARTIKA.TTF' - 00000.476 W: extended font config - overriding 'filename.Latha=latha.ttf' with 'LATHA.TTF' - 00000.954 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.248 E: java.security.KeyStoreException: Windows-ROOT not found. Ursache: java.security.NoSuchAlgorithmException: Windows-ROOT KeyStore not available - 00002.432 W: Erweiterungen aktualisieren - Sie haben JOSM aktualisiert. Zur Vermeidung von Problemen sollten die Erweiterungen ebenfalls aktualisiert werden. Erweiterungen jetzt aktualisieren? - 00005.992 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 (4)
comment:1 by , 3 years ago
comment:2 by , 3 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → needinfo |
I was unable to reproduce on the Windows machine I borrowed. Can you upload the installer you used?
comment:4 by , 3 years ago
| Resolution: | → duplicate |
|---|---|
| Status: | needinfo → closed |
Closed as duplicate of #22183.
It looks like the common problem is due to an NPE. 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. This is probably causing the class to fail loading, which in turn might be what is causing the NoClassDefFoundError.



Ticket #22206 has been marked as a duplicate of this ticket.