Opened 21 months ago

Last modified 5 months ago

#17673 new defect

OpenStreetCam: ClassNotFoundException: java.sql.Time

Reported by:… Owned by: jBeata
Priority: normal Milestone:
Component: Plugin openstreetcam Version: latest
Keywords: template_report java11 Cc:


What steps will reproduce the problem?

  1. 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)
Build-Date:2019-05-03 01:30:51

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/,java.desktop, --add-exports=java.base/,java.desktop, --add-exports=java.base/,java.desktop, --add-exports=java.base/,java.desktop, --add-exports=java.base/,java.desktop, --add-exports=java.base/,java.desktop, --add-exports=java.base/,java.desktop, --add-exports=java.base/jdk.internal.util.jar=ALL-UNNAMED,java.desktop, --add-exports=java.base/,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.location=/usr/lib/icedtea-web/bin/javaws]

+ 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:

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

No data collected.

Warning issued by: BugReportExceptionHandler#handleException

Thread: pool-1-thread-1 (45)
java.lang.NoClassDefFoundError: java/sql/Time
	at org.openstreetmap.josm.plugins.openstreetcam.service.BaseService.<init>(
	at org.openstreetmap.josm.plugins.openstreetcam.handler.SearchServiceHandler.<init>(
	at org.openstreetmap.josm.plugins.openstreetcam.handler.ServiceHandler.<init>(
	at org.openstreetmap.josm.plugins.openstreetcam.handler.ServiceHandler.<clinit>(
	at org.openstreetmap.josm.plugins.openstreetcam.gui.details.filter.DetectionTypeContent.<init>(
	at org.openstreetmap.josm.plugins.openstreetcam.gui.details.filter.DetectionTypeContent.<clinit>(
	at org.openstreetmap.josm.plugins.openstreetcam.OpenStreetCamPlugin.lambda$new$0(
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(
	at java.base/java.util.concurrent.ThreadPoolExecutor$
	at java.base/
Caused by: java.lang.ClassNotFoundException: java.sql.Time
	at java.base/
	at java.base/java.lang.ClassLoader.loadClass(
	at org.openstreetmap.josm.plugins.PluginClassLoader.loadClass(
	at java.base/java.lang.ClassLoader.loadClass(
	... 14 more

Attachments (0)

Change History (14)

comment:1 Changed 21 months ago by jBeata

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.

comment:2 Changed 21 months ago by Don-vip

You can simply use javax.json API, which in embedded in JOSM.

comment:3 Changed 21 months ago by Don-vip

Keywords: json java11 added

comment:4 Changed 21 months ago by jBeata

Keywords: json java11 removed

Thanks for your suggestion, we will take a look at javax.json API.

comment:5 Changed 21 months ago by Don-vip

Thanks. Can you please let us know also when you fix #16877 and #17502?

comment:6 Changed 21 months ago by jBeata

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?

Last edited 21 months ago by jBeata (previous) (diff)

comment:7 Changed 16 months ago by Don-vip

Ticket #18061 has been marked as a duplicate of this ticket.

comment:8 Changed 13 months ago by Don-vip

Ticket #18437 has been marked as a duplicate of this ticket.

comment:9 Changed 13 months ago by Don-vip

Ticket #18467 has been marked as a duplicate of this ticket.

comment:10 Changed 12 months ago by Don-vip

Keywords: java11 added

comment:11 Changed 8 months ago by Klumbumbus

Ticket #19088 has been marked as a duplicate of this ticket.

comment:12 Changed 6 months ago by skyper

Ticket #19564 has been marked as a duplicate of this ticket.

comment:13 Changed 5 months ago by stoecker

Ticket #19697 has been marked as a duplicate of this ticket.

Modify Ticket

Change Properties
Set your email in Preferences
as new The owner will remain jBeata.
as The resolution will be set.
to The owner will be changed from jBeata to the specified user.
The owner will change to
as duplicate The resolution will be set to duplicate.The specified ticket will be cross-referenced with this ticket
The owner will be changed from jBeata to anonymous.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.