#21830 closed defect (fixed)
java.lang.UnsupportedClassVersionError when trying to open *.ods file
Reported by: | osmTOGA | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Plugin opendata | Version: | |
Keywords: | java8 | Cc: |
Description
A couple days ago I tried opening a *.ods file, but unfortunately couldn't because I got an error (java.lang.UnsupportedClassVersionError) in the opendata plugin, which said it was built with version 55 and I was using version 52. For some reason I was still using Oracle Java 8 at the time, so I fixed this problem for me by simply upgrading to one of the now recommended versions.
I'm not sure if this really is an error or not, but since JOSM is advertised as supporting Java 8, I thought it might be useful to report it nonetheless. Unfortunately I can't provide a status report since I've already upgraded.
Attachments (0)
Change History (5)
comment:1 by , 3 years ago
Owner: | changed from | to
---|---|
Status: | new → needinfo |
comment:2 by , 3 years ago
I've reinstalled Java 8 to reproduce the error. The procedure was simply start JOSM and open the *.ods file. Thereafter I get a prompt that there's been an error that could have been caused by the opendata plugin and giving the option of trying an update. After doing that I get the following report:
URL:https://josm.openstreetmap.de/svn/trunk Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b Last:Changed Date: 2022-02-01 18:49:38 +0100 (Tue, 01 Feb 2022) Build-Date:2022-02-02 02:31:07 Revision:18368 Relative:URL: ^/trunk Identification: JOSM/1.5 (18368 de) Windows 10 64-Bit OS Build number: Windows 10 Home 1909 (18363) Memory Usage: 416 MB / 2222 MB (132 MB allocated, but free) Java version: 1.8.0_321-b07, Oracle Corporation, Java HotSpot(TM) 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: Cp1252 System property sun.jnu.encoding: Cp1252 Locale info: de_DE Numbers with default locale: 1234567890 -> 1234567890 Plugins: + Mapillary (2.0.0-beta.2) + PicLayer (1.0.1) + RoadSigns (35893) + apache-commons (35893) + apache-http (35893) + buildings_tools (35893) + continuosDownload (99) + ejml (35893) + geochat (35893) + geotools (35906) + imagery_offset_db (35893) + jaxb (35893) + jna (35893) + jts (35893) + measurement (35893) + opendata (35899) + reverter (35893) + terracer (35893) + todo (30306) + turnrestrictions (35893) + undelete (35893) + utilsplugin2 (35893) Tagging presets: + https://josm.openstreetmap.de/josmfile?page=Presets/LaneAttributes&preset&zip=1 + https://josm.openstreetmap.de/josmfile?page=Presets/MastAndTower&zip=1 Map paint styles: - https://josm.openstreetmap.de/josmfile?page=Styles/AddressValidator&style&zip=1 - https://josm.openstreetmap.de/josmfile?page=Styles/Lane_and_Road_Attributes&zip=1 - https://josm.openstreetmap.de/josmfile?page=Styles/Sidewalks&style&zip=1 - https://josm.openstreetmap.de/josmfile?page=Styles/LessObtrusiveNodes&style&zip=1 - https://github.com/hotosm/HDM-JOSM-style/archive/master.zip - https://josm.openstreetmap.de/josmfile?page=Styles/Maxspeed&zip=1 + %UserProfile%\...\Power_lines.mapcss - https://josm.openstreetmap.de/josmfile?page=Styles/TigerReviewedNo&zip=1 Last errors/warnings: - 00099.503 E: Handled by bug report queue: java.lang.UnsupportedClassVersionError: org/jopendocument/model/OpenDocument has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0 === REPORTED CRASH DATA === BugReportExceptionHandler#handleException: No data collected. Warning issued by: BugReportExceptionHandler#handleException === STACK TRACE === Thread: main-worker-0 (18) of main java.lang.UnsupportedClassVersionError: org/jopendocument/model/OpenDocument has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$100(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at org.openstreetmap.josm.plugins.PluginClassLoader.loadClass(PluginClassLoader.java:74) at java.lang.ClassLoader.loadClass(Unknown Source) at org.openstreetmap.josm.plugins.opendata.core.io.tabular.OdsImporter.parseDataSet(OdsImporter.java:29) at org.openstreetmap.josm.gui.io.importexport.OsmImporter.loadLayer(OsmImporter.java:121) at org.openstreetmap.josm.gui.io.importexport.OsmImporter.importData(OsmImporter.java:97) at org.openstreetmap.josm.plugins.opendata.core.io.AbstractImporter.importData(AbstractImporter.java:59) at org.openstreetmap.josm.gui.io.importexport.FileImporter.importDataHandleExceptions(FileImporter.java:103) at org.openstreetmap.josm.actions.OpenFileAction$OpenFileTask.importData(OpenFileAction.java:401) at org.openstreetmap.josm.actions.OpenFileAction$OpenFileTask.realRun(OpenFileAction.java:350) at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(PleaseWaitRunnable.java:94) at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:142) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
comment:3 by , 3 years ago
Keywords: | java8 added |
---|---|
Owner: | changed from | to
Status: | needinfo → new |
Thanks.
There was a problem with the plugin not working (loading) for some days, see #21803, and we have had several reports especially with java 8 and updating plugins.
Unless, you can reproduce and share some more information, this ticket is likely to be closed as "needinfo".