Opened 5 years ago
Last modified 3 years ago
#17673 new defect
OpenStreetCam: ClassNotFoundException: java.sql.Time
Reported by: | schwarting | Owned by: | jBeata |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Plugin Kartaview/openstreetcam | Version: | latest |
Keywords: | template_report java11 | Cc: |
Description
What steps will reproduce the problem?
- Error dialog pops up while starting JOSM, while the splash screen is still showing, when loading plugin OpenStreetCam
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-05-02 18:30:31 +0200 (Thu, 02 May 2019) Revision:15038 Build-Date:2019-05-03 01:30:51 URL:https://josm.openstreetmap.de/svn/trunk Identification: JOSM/1.5 (15038 de) Linux Ubuntu 18.04.2 LTS Memory Usage: 360 MB / 2048 MB (128 MB allocated, but free) Java version: 11.0.2+9-Ubuntu-3ubuntu118.04.3, Oracle Corporation, OpenJDK 64-Bit Server VM Screen: :0.0 1920x1080, :0.1 1920x1080 Maximum Screen Size: 1920x1080 Java package: openjdk-11-jre:amd64-11.0.2+9-3ubuntu1~18.04.3 WebStart package: icedtea-netx:amd64-1.8-0ubuntu8~18.04 Java ATK Wrapper package: libatk-wrapper-java:all-0.33.3-20ubuntu0.1 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: + CADTools (1008) + Mapillary (1.5.18) + OpenStreetCam (230) + apache-commons (34908) + apache-http (34908) + buildings_tools (34982) + changeset-viewer (22) + jna (34908) + pt_assistant (705) + utilsplugin2 (34977) + wikipedia (v1.1.1) Map paint styles: - https://josm.openstreetmap.de/josmfile?page=Styles/PublicTransport&zip=1 Last errors/warnings: - W: No configuration settings found. Using hardcoded default values for all pools. - E: Handled by bug report queue: java.lang.NoClassDefFoundError: java/sql/Time. Ursache: java.lang.ClassNotFoundException: java.sql.Time === REPORTED CRASH DATA === BugReportExceptionHandler#handleException: No data collected. Warning issued by: BugReportExceptionHandler#handleException === STACK TRACE === Thread: pool-1-thread-1 (45) java.lang.NoClassDefFoundError: java/sql/Time at com.google.gson.Gson.<init>(Gson.java:241) at com.google.gson.GsonBuilder.create(GsonBuilder.java:545) at org.openstreetmap.josm.plugins.openstreetcam.service.photo.OpenStreetCamService.createGson(OpenStreetCamService.java:58) at org.openstreetmap.josm.plugins.openstreetcam.service.BaseService.<init>(BaseService.java:41) at org.openstreetmap.josm.plugins.openstreetcam.service.photo.OpenStreetCamService.<init>(OpenStreetCamService.java:48) at org.openstreetmap.josm.plugins.openstreetcam.handler.SearchServiceHandler.<init>(SearchServiceHandler.java:49) at org.openstreetmap.josm.plugins.openstreetcam.handler.ServiceHandler.<init>(ServiceHandler.java:49) at org.openstreetmap.josm.plugins.openstreetcam.handler.ServiceHandler.<clinit>(ServiceHandler.java:54) at org.openstreetmap.josm.plugins.openstreetcam.gui.details.filter.DetectionTypeContent.<init>(DetectionTypeContent.java:25) at org.openstreetmap.josm.plugins.openstreetcam.gui.details.filter.DetectionTypeContent.<clinit>(DetectionTypeContent.java:21) at org.openstreetmap.josm.plugins.openstreetcam.OpenStreetCamPlugin.lambda$new$0(OpenStreetCamPlugin.java:84) 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) Caused by: java.lang.ClassNotFoundException: java.sql.Time at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:471) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:588) at org.openstreetmap.josm.plugins.PluginClassLoader.loadClass(PluginClassLoader.java:73) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521) ... 14 more
Attachments (0)
Change History (17)
comment:1 by , 5 years ago
comment:3 by , 5 years ago
Keywords: | json java11 added |
---|
comment:4 by , 5 years ago
Keywords: | json java11 removed |
---|
Thanks for your suggestion, we will take a look at javax.json API.
comment:6 by , 5 years ago
The ticket 16877 will be fixed in our next OSC plugin release. Regarding ticket 17502: we had investigated a while ago (6-9 months ago), but we came to the conclusion that no fix can be done at our side since JOSM we can't override some classes associated with the Delete button. Nevertheless, we will investigate the issue again to see if we can find any other solution.
@Don-vip do you have any recommendation regarding #17502?
comment:10 by , 5 years ago
Keywords: | java11 added |
---|
comment:14 by , 4 years ago
Opened a GitHub issue: https://github.com/openstreetcam/josm-plugin/issues/44
Thanks for reporting the issue, currently we are using Java8 for the OSC plugin development and also testing; but we are considering to support also Java 11.