Opened 3 years ago
Closed 2 years ago
#21214 closed defect (irreproducible)
NoClassDefFoundError: Could not initialize class org.openstreetmap.josm.data.cache.JCSCacheManager (OpenWebStart)
Reported by: | anonymous | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core imagery | Version: | tested |
Keywords: | template_report jcs cache webstart | Cc: | mugli |
Description
What steps will reproduce the problem?
- Start jnlp version of JOSM
- cant connect to servers (proxy menu)
- crash
What is the expected result?
What happens instead?
Please provide any additional information below. Attach a screenshot if possible.
Relative:URL: ^/trunk Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b Last:Changed Date: 2021-08-02 19:44:04 +0200 (Mon, 02 Aug 2021) Revision:18118 Build-Date:2021-08-02 18:26:20 URL:https://josm.openstreetmap.de/svn/trunk Identification: JOSM/1.5 (18118 cs) Windows 10 64-Bit OS Build number: Windows 10 Home 2009 (19043) Memory Usage: 154 MB / 2018 MB (36 MB allocated, but free) Java version: 11.0.10+9, AdoptOpenJDK, 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: Cp1250 System property sun.jnu.encoding: Cp1250 Locale info: cs_CZ Numbers with default locale: 1234567890 -> 1234567890 VM arguments: [-Dicedtea-web.bin.location=%UserProfile%\AppData\Local\Programs\OpenWebStart\javaws, -Djava.util.Arrays.useLegacyMergeSort=true, --add-exports=jdk.deploy/com.sun.deploy.config=ALL-UNNAMED, --add-opens=java.desktop/javax.swing.text.html=ALL-UNNAMED, --add-reads=java.naming=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.security.action=ALL-UNNAMED,java.desktop, --add-reads=java.base=ALL-UNNAMED,java.desktop, --add-exports=java.naming/com.sun.jndi.toolkit.url=ALL-UNNAMED,java.desktop, --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED, --add-exports=java.desktop/com.apple.eawt=ALL-UNNAMED, --add-exports=java.desktop/sun.awt=ALL-UNNAMED,java.desktop, --add-opens=java.base/jdk.internal.ref=ALL-UNNAMED, --add-exports=java.base/sun.security.validator=ALL-UNNAMED,java.desktop, --add-exports=java.desktop/com.sun.imageio.plugins.jpeg=ALL-UNNAMED, --add-exports=java.base/sun.net.www.protocol.jar=ALL-UNNAMED,java.desktop, --add-exports=java.base/jdk.internal.util.jar=ALL-UNNAMED,java.desktop, --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED, --add-exports=java.base/com.sun.net.ssl.internal.ssl=ALL-UNNAMED,java.desktop, --add-exports=javafx.graphics/com.sun.javafx.application=ALL-UNNAMED, --add-modules=java.scripting,java.sql, --add-exports=java.desktop/sun.awt.X11=ALL-UNNAMED,java.desktop, --add-exports=java.desktop/sun.applet=ALL-UNNAMED,java.desktop,jdk.jsobject, --add-exports=java.base/sun.net.www.protocol.http=ALL-UNNAMED,java.desktop, --add-opens=java.base/java.lang=ALL-UNNAMED, --add-exports=java.base/sun.security.util=ALL-UNNAMED,java.desktop, --add-exports=java.desktop/com.sun.imageio.spi=ALL-UNNAMED, --add-reads=java.desktop=ALL-UNNAMED,java.naming, --add-opens=java.base/java.nio=ALL-UNNAMED, --add-exports=java.base/sun.security.x509=ALL-UNNAMED,java.desktop, --add-opens=java.desktop/javax.imageio.spi=ALL-UNNAMED, --add-exports=java.desktop/javax.jnlp=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.security.provider=ALL-UNNAMED,java.desktop] Plugins: + FastDraw (35640) + OpeningHoursEditor (35640) + Tracer-testing (1590860163) + apache-commons (35524) + buildings_tools (35756) + ejml (35458) + geochat (35640) + geotools (35458) + jts (35458) + mapathoner (1.1.9) + markseen (14) + scripting (30798) + todo (30306) + utilsplugin2 (35792) Last errors/warnings: - 00000.776 W: extended font config - overriding 'filename.Myanmar_Text=mmrtext.ttf' with 'MMRTEXT.TTF' - 00000.783 W: extended font config - overriding 'filename.Mongolian_Baiti=monbaiti.ttf' with 'MONBAITI.TTF' - 00026.222 W: java.net.UnknownHostException: api.openstreetmap.org - 00026.225 E: java.net.UnknownHostException: api.openstreetmap.org - 00026.231 E: org.openstreetmap.josm.io.OsmTransferException: Nemohu se připojit k OSM serveru. Prosím zkontrolujte si připojení k internetu.. Přičina: java.net.UnknownHostException: api.openstreetmap.org - 00026.902 W: java.net.UnknownHostException: josm.openstreetmap.de - 00026.903 W: Chyba načtení zprávy dne (MOTD). Výjimka byla: java.net.UnknownHostException: josm.openstreetmap.de: java.net.UnknownHostException: josm.openstreetmap.de - 00029.005 W: java.net.UnknownHostException: josm.openstreetmap.de - 00029.106 W: Nepodařilo se načíst https://josm.openstreetmap.de/maps, použijte nakešovaný soubor a opakujte pokus později: java.net.UnknownHostException: josm.openstreetmap.de - 00054.685 E: Handled by bug report queue: java.lang.NoClassDefFoundError: Could not initialize class org.openstreetmap.josm.data.cache.JCSCacheManager === REPORTED CRASH DATA === BugReportExceptionHandler#handleException: No data collected. Warning issued by: BugReportExceptionHandler#handleException === STACK TRACE === Thread: AWT-EventQueue-1 (50) of JOSM java.lang.NoClassDefFoundError: Could not initialize class org.openstreetmap.josm.data.cache.JCSCacheManager at org.openstreetmap.josm.gui.layer.AbstractCachedTileSourceLayer.getCache(AbstractCachedTileSourceLayer.java:118) at org.openstreetmap.josm.gui.layer.AbstractCachedTileSourceLayer.getTileLoaderFactory(AbstractCachedTileSourceLayer.java:105) at org.openstreetmap.josm.gui.bbox.JosmMapViewer.<init>(JosmMapViewer.java:148) at org.openstreetmap.josm.gui.bbox.SlippyMapBBoxChooser.<init>(SlippyMapBBoxChooser.java:100) at org.openstreetmap.josm.gui.download.SlippyMapChooser.<init>(SlippyMapChooser.java:35) at org.openstreetmap.josm.gui.download.DownloadDialog.buildMainPanel(DownloadDialog.java:148) at org.openstreetmap.josm.gui.download.DownloadDialog.<init>(DownloadDialog.java:263) at org.openstreetmap.josm.gui.download.DownloadDialog.<init>(DownloadDialog.java:251) at org.openstreetmap.josm.gui.download.DownloadDialog.getInstance(DownloadDialog.java:92) at org.openstreetmap.josm.actions.DownloadAction.actionPerformed(DownloadAction.java:40) at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1967) at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2308) at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:405) at java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262) at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:279) at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:297) at java.desktop/java.awt.Component.processMouseEvent(Component.java:6635) at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3342) at java.desktop/java.awt.Component.processEvent(Component.java:6400) at java.desktop/java.awt.Container.processEvent(Container.java:2263) at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5011) at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321) at java.desktop/java.awt.Component.dispatchEvent(Component.java:4843) at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4918) at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4547) at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4488) at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2307) at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2772) at java.desktop/java.awt.Component.dispatchEvent(Component.java:4843) at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:772) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715) at java.base/java.security.AccessController.doPrivileged(Native Method) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95) at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745) at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:743) at java.base/java.security.AccessController.doPrivileged(Native Method) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) 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 (1)
Change History (7)
comment:1 by , 3 years ago
Component: | Core → Core imagery |
---|---|
Keywords: | jcs cache webstart added |
Version: | → tested |
comment:2 by , 3 years ago
Summary: | Crash after start → NoClassDefFoundError: Could not initialize class org.openstreetmap.josm.data.cache.JCSCacheManager (OpenWebStart) |
---|
comment:4 by , 3 years ago
Cc: | added |
---|
comment:5 by , 3 years ago
From #21474 (it looks like last errors/warnings in this ticket may have swallowed some relevant information):
- 00383.671 E: Thread main-worker-0 raised java.lang.NoClassDefFoundError: Could not initialize class org.openstreetmap.josm.data.cache.JCSCacheManager
It looks like JCSCacheManager attempted to initialize in the worker thread, and failed.
The worker thread kind of swallows exceptions.
I'll upload a patch to this ticket so that we can force those exceptions to be raised. You will probably have to start from the command line.
by , 3 years ago
Attachment: | 21214.show_bug_report_window_for_worker_thread_exceptions.patch added |
---|
If no graphics environment OR if logging level is set to debug, print stack trace for exception. Also, show the bug report window if logging level is set to debug.
comment:6 by , 2 years ago
Resolution: | → irreproducible |
---|---|
Status: | new → closed |
No duplicates in > 1 year. I think this got fixed somewhere along the way.
Similar or same as #20409.
See also #20867 for a problem with webstart and jcs.