Opened 4 years ago
Closed 4 years ago
#21202 closed defect (duplicate)
java.lang.ClassCastException: class org.openstreetmap.josm.data.tagging.ac.AutoCompletionItem cannot be cast to class java.lang.String
Reported by: | skorbut | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core | Version: | latest |
Keywords: | template_report | Cc: |
Description
What steps will reproduce the problem?
Not sure if it can be properly reproduced. I did the following:
- Do some changes on OSM data
- Try to upload
- Exception at the moment the upload should have happened.
What is the expected result?
Exception / no upload.
What happens instead?
No exception with working upload.
Please provide any additional information below. Attach a screenshot if possible.
I tried to do and upload some small changes. JOSM crashes at the moment when the upload should happen. I saved the current state using "File -> Save as..." (producing a file "crash.osm") and then undid all changes using Ctrl-z and saved it again (producing a file "old.osm"). I hope that is helpful in debugging.
Relative:URL: ^/trunk Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b Last:Changed Date: 2021-08-05 13:43:42 +0200 (Thu, 05 Aug 2021) Revision:18125 Build-Date:2021-08-05 11:54:28 URL:https://josm.openstreetmap.de/svn/trunk Identification: JOSM/1.5 (18125 en) Linux Ubuntu 18.04.5 LTS Memory Usage: 876 MB / 7976 MB (611 MB allocated, but free) Java version: 11.0.11+9-Ubuntu-0ubuntu2.18.04, Ubuntu, OpenJDK 64-Bit Server VM Look and Feel: javax.swing.plaf.metal.MetalLookAndFeel Screen: :0.0 1920×1080 (scaling 1.00×1.00) Maximum Screen Size: 1920×1080 Best cursor sizes: 16×16→16×16, 32×32→32×32 Environment variable LANG: en_US.UTF-8 System property file.encoding: UTF-8 System property sun.jnu.encoding: UTF-8 Locale info: en_US Numbers with default locale: 1234567890 -> 1234567890 Desktop environment: MATE Java package: openjdk-11-jre:amd64-11.0.11+9-0ubuntu2~18.04 Java ATK Wrapper package: libatk-wrapper-java:all-0.33.3-20ubuntu0.1 libcommons-logging-java: libcommons-logging-java:all-1.2-2 fonts-noto: fonts-noto:all-20171026-2 VM arguments: [--add-modules=java.scripting,java.sql, -Djosm.restart=true, -Djosm.dir.name=JOSM-latest, -Djava.net.useSystemProxies=true] Dataset consistency test: No problems found Plugins: + Mapillary (2.0.0-alpha.30-dirty) + apache-commons (35524) + apache-http (35589) + jna (35662) Last errors/warnings: - 00246.284 E: Handled by bug report queue: java.lang.ClassCastException: class org.openstreetmap.josm.data.tagging.ac.AutoCompletionItem cannot be cast to class java.lang.String (org.openstreetmap.josm.data.tagging.ac.AutoCompletionItem is in unnamed module of loader 'app'; java.lang.String is in module java.base of loader 'bootstrap') === REPORTED CRASH DATA === BugReportExceptionHandler#handleException: No data collected. Warning issued by: BugReportExceptionHandler#handleException === STACK TRACE === Thread: AWT-EventQueue-0 (20) of main java.lang.ClassCastException: class org.openstreetmap.josm.data.tagging.ac.AutoCompletionItem cannot be cast to class java.lang.String (org.openstreetmap.josm.data.tagging.ac.AutoCompletionItem is in unnamed module of loader 'app'; java.lang.String is in module java.base of loader 'bootstrap') at org.openstreetmap.josm.gui.widgets.HistoryComboBox.addCurrentItemToHistory(HistoryComboBox.java:57) at org.openstreetmap.josm.gui.io.BasicUploadSettingsPanel.rememberUserInput(BasicUploadSettingsPanel.java:269) at org.openstreetmap.josm.gui.io.UploadDialog.rememberUserInput(UploadDialog.java:352) at org.openstreetmap.josm.actions.UploadAction.uploadData(UploadAction.java:245) at org.openstreetmap.josm.actions.UploadAction.actionPerformed(UploadAction.java:292) 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 (2)
Change History (4)
by , 4 years ago
by , 4 years ago
comment:1 by , 4 years ago
comment:2 by , 4 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Version: | → latest |
Closed as duplicate of #21203.
This is another stack trace from an exception that happened during the same session. It contains a java.net.SocketTimeoutException. I don't know what or why this happened.