Modify

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?

  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)
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 jBeata, 5 years ago

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 by Don-vip, 5 years ago

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

comment:3 by Don-vip, 5 years ago

Keywords: json java11 added

comment:4 by jBeata, 5 years ago

Keywords: json java11 removed

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

comment:5 by Don-vip, 5 years ago

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

comment:6 by jBeata, 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?

Last edited 5 years ago by jBeata (previous) (diff)

comment:7 by Don-vip, 5 years ago

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

comment:8 by Don-vip, 5 years ago

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

comment:9 by Don-vip, 5 years ago

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

comment:10 by Don-vip, 5 years ago

Keywords: java11 added

comment:11 by Klumbumbus, 4 years ago

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

comment:12 by skyper, 4 years ago

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

comment:13 by stoecker, 4 years ago

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

comment:15 by skyper, 4 years ago

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

comment:16 by Don-vip, 3 years ago

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

comment:17 by skyper, 3 years ago

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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain jBeata.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from jBeata to the specified user.
Next status will be 'needinfo'. The owner will be changed from jBeata to schwarting.
as duplicate The resolution will be set to duplicate. Next status will be 'closed'. The specified ticket will be cross-referenced with this ticket.
The owner will be changed from jBeata to anonymous. Next status will be 'assigned'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.