Modify ↓
Opened 6 years ago
Closed 6 years ago
#17976 closed defect (fixed)
NoClassDefFoundError: Could not initialize class org.geotools.referencing.CRS
Reported by: | Owned by: | Don-vip | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Plugin geotools | Version: | |
Keywords: | template_report | Cc: |
Description
What steps will reproduce the problem?
- Installed the Open Data plugin, which in turn installs the geotools plugin.
- Restart JOSM
- At startup, get message that geotools failed to load.
- When trying to open a .shp file, it still appears in the file-selection dialog, but trying to open it produces the stack trace here.
What is the expected result?
.shp file is imported to JOSM.
What happens instead?
I get the error submitted here.
Please provide any additional information below. Attach a screenshot if possible.
Relative:URL: ^/trunk Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b Last:Changed Date: 2019-07-10 00:52:47 +0200 (Wed, 10 Jul 2019) Revision:15238 Build-Date:2019-07-10 01:30:51 URL:https://josm.openstreetmap.de/svn/trunk Identification: JOSM/1.5 (15238 en) Linux Ubuntu 18.04.2 LTS Memory Usage: 233 MB / 2048 MB (57 MB allocated, but free) Java version: 11.0.3+7-Ubuntu-1ubuntu218.04.1, Oracle Corporation, OpenJDK 64-Bit Server VM Screen: :0.0 1440x900 Maximum Screen Size: 1440x900 Java package: openjdk-11-jre:amd64-11.0.3+7-1ubuntu2~18.04.1 WebStart package: icedtea-netx:amd64-1.8-0ubuntu8~18.04 Java ATK Wrapper package: libatk-wrapper-java:all-0.33.3-20ubuntu0.1 fonts-noto: fonts-noto:all-20171026-2 VM arguments: [--add-reads=java.base=ALL-UNNAMED,java.desktop, --add-reads=java.desktop=ALL-UNNAMED,java.naming, --add-reads=java.naming=ALL-UNNAMED,java.desktop, --add-exports=java.desktop/sun.awt=ALL-UNNAMED,java.desktop, --add-exports=java.desktop/javax.jnlp=ALL-UNNAMED,java.desktop, --add-exports=java.base/com.sun.net.ssl.internal.ssl=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.net.www.protocol.jar=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.security.action=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.security.provider=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.security.util=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.security.validator=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.security.x509=ALL-UNNAMED,java.desktop, --add-exports=java.base/jdk.internal.util.jar=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.net.www.protocol.http=ALL-UNNAMED,java.desktop, --add-exports=java.desktop/sun.awt.X11=ALL-UNNAMED,java.desktop, --add-exports=java.desktop/sun.applet=ALL-UNNAMED,java.desktop, --add-exports=java.desktop/sun.applet=ALL-UNNAMED,jdk.jsobject, --add-exports=java.naming/com.sun.jndi.toolkit.url=ALL-UNNAMED,java.desktop, -Dicedtea-web.bin.name=javaws, -Dicedtea-web.bin.location=/usr/lib/icedtea-web/bin/javaws] Plugins: + apache-commons (34908) + ejml (35049) + jaxb (35014) + jts (35064) + opendata (34997) + utilsplugin2 (34977) Last errors/warnings: - W: No configuration settings found. Using hardcoded default values for all pools. - W: Region [TMS_BLOCK_v2] Resetting cache - E: org.openstreetmap.josm.plugins.PluginException: An error occurred in plugin geotools. Cause: java.lang.reflect.InvocationTargetException. Cause: java.lang.NoClassDefFoundError: javax/sql/DataSource. Cause: java.lang.ClassNotFoundException: javax.sql.DataSource - W: Disable plugin - Could not load plugin 'geotools'. Delete from preferences? - E: Handled by bug report queue: java.lang.NoClassDefFoundError: Could not initialize class org.geotools.referencing.CRS === REPORTED CRASH DATA === BugReportExceptionHandler#handleException: No data collected. Warning issued by: BugReportExceptionHandler#handleException === STACK TRACE === Thread: main-worker-0 (63) of JOSM java.lang.NoClassDefFoundError: Could not initialize class org.geotools.referencing.CRS at org.openstreetmap.josm.plugins.opendata.core.io.geographic.GeographicReader.<clinit>(GeographicReader.java:81) at org.openstreetmap.josm.plugins.opendata.core.io.geographic.ShpImporter.parseDataSet(ShpImporter.java:32) at org.openstreetmap.josm.gui.io.importexport.OsmImporter.loadLayer(OsmImporter.java:120) at org.openstreetmap.josm.gui.io.importexport.OsmImporter.importData(OsmImporter.java:97) at org.openstreetmap.josm.plugins.opendata.core.io.AbstractImporter.importData(AbstractImporter.java:55) at org.openstreetmap.josm.gui.io.importexport.FileImporter.importDataHandleExceptions(FileImporter.java:95) at org.openstreetmap.josm.actions.OpenFileAction$OpenFileTask.importData(OpenFileAction.java:367) at org.openstreetmap.josm.actions.OpenFileAction$OpenFileTask.realRun(OpenFileAction.java:319) at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(PleaseWaitRunnable.java:94) at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:142) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:834)
Attachments (0)
Change History (3)
comment:1 by , 6 years ago
Status: | new → assigned |
---|---|
Summary: | Error when trying to use the geotools plugin → NoClassDefFoundError: Could not initialize class org.geotools.referencing.CRS |
comment:2 by , 6 years ago
Note:
See TracTickets
for help on using tickets.
update: first part in [o35122].