Modify

Opened 5 years ago

Closed 3 years ago

#19092 closed defect (needinfo)

NoClassDefFoundError: Could not initialize class opendata.core.io.geographic.ShpReader using WebStart

Reported by: pierre Owned by: pierre
Priority: normal Milestone:
Component: Plugin opendata Version:
Keywords: template_report shp shapefile webstart Cc:

Description

What steps will reproduce the problem?

  1. JOSM loaded with josm.jnlp
  2. "File" > "Open" > "Bpn_CaPa.shp" from my directory
  3. "Bpn_CaPa.shp" has been previously extracted from "https://eservices.minfin.fgov.be/myminfin-web/pages/cadastral-plans" > "Province de Luxembourg" > "Arlon" > "Plan_L2008.zip"

What is the expected result?

Opening of the shp data.

What happens instead?

Error message "You have encountered a bug in JOSM".

Please provide any additional information below. Attach a screenshot if possible.

System details in attchment.

Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2020-04-06 02:17:07 +0200 (Mon, 06 Apr 2020)
Revision:16239
Build-Date:2020-04-06 00:18:43
URL:https://josm.openstreetmap.de/svn/trunk

Identification: JOSM/1.5 (16239 en_GB) Linux Mint 19.3 Tricia
Memory Usage: 280 MB / 2048 MB (79 MB allocated, but free)
Java version: 11.0.6+10-post-Ubuntu-1ubuntu118.04.1, Ubuntu, OpenJDK 64-Bit Server VM
Screen: :0.0 1920x1080, :0.1 1680x1050
Maximum Screen Size: 1920x1080
Java package: openjdk-11-jre:amd64-11.0.6+10-1ubuntu1~18.04.1
WebStart package: icedtea-netx:amd64-1.8-0ubuntu8~18.04
libcommons-compress-java: libcommons-compress-java:all-1.18-1~18.04
libcommons-logging-java: libcommons-logging-java:all-1.2-2
fonts-noto: fonts-noto:all-20171026-2
liboauth-signpost-java: liboauth-signpost-java:all-1.2.1.2-1.5
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]
Dataset consistency test: No problems found

Plugins:
+ HouseNumberTaggingTool (35248)
+ Mapillary
+ apache-commons (35362)
+ apache-http (35092)
+ areaselector (359)
+ austriaaddresshelper (57)
+ buildings_tools (35405)
+ colorscheme (35405)
+ ejml (35313)
+ jaxb (35092)
+ jna (35092)
+ jts (35122)
+ log4j (35092)
+ opendata (35405)
+ reverter (35409)
+ utilsplugin2 (35405)

Map paint styles:
- https://josm.openstreetmap.de/josmfile?page=Styles/ParkingLanes&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Osmc&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Coloured_Streets&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/AddressValidator&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/ColourTag&zip=1

Last errors/warnings:
- W: Warning - <html>JOSM could not find information about the following plug-ins:<ul><li>apache-commons</li><li>HouseNumberTaggingTool</li><li>opendata</li><li>jts</li><li>Mapillary</li><li>ejml</li><li>reverter</li><li>jaxb</li><li>utilsplugin2</li><li>areaselector</li><li>buildings_tools</li><li>colorscheme</li><li>jna</li><li>austriaaddresshelper</li><li>apache-http</li><li>log4j</li></ul>The plug-ins are not going to be loaded.</html>
- E: Handled by bug report queue: java.lang.NoClassDefFoundError: Could not initialize class org.openstreetmap.josm.plugins.opendata.core.io.geographic.ShpReader
- E: Handled by bug report queue: java.lang.NoClassDefFoundError: Could not initialize class org.openstreetmap.josm.plugins.opendata.core.io.geographic.ShpReader
- E: Handled by bug report queue: java.lang.NoClassDefFoundError: Could not initialize class org.openstreetmap.josm.plugins.opendata.core.io.geographic.ShpReader
- E: Handled by bug report queue: java.lang.NoClassDefFoundError: Could not initialize class org.openstreetmap.josm.plugins.opendata.core.io.geographic.ShpReader
- E: Handled by bug report queue: java.lang.NoClassDefFoundError: Could not initialize class org.openstreetmap.josm.plugins.opendata.core.io.geographic.ShpReader
- E: Handled by bug report queue: java.lang.NoClassDefFoundError: Could not initialize class org.openstreetmap.josm.plugins.opendata.core.io.geographic.ShpReader
- E: Handled by bug report queue: java.lang.NoClassDefFoundError: Could not initialize class org.openstreetmap.josm.plugins.opendata.core.io.geographic.ShpReader
- E: Handled by bug report queue: java.lang.NoClassDefFoundError: Could not initialize class org.openstreetmap.josm.plugins.opendata.core.io.geographic.ShpReader
- E: Handled by bug report queue: java.lang.NoClassDefFoundError: Could not initialize class org.openstreetmap.josm.plugins.opendata.core.io.geographic.ShpReader


=== REPORTED CRASH DATA ===
BugReportExceptionHandler#handleException:
No data collected.

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: main-worker-0 (52) of JOSM
java.lang.NoClassDefFoundError: Could not initialize class org.openstreetmap.josm.plugins.opendata.core.io.geographic.ShpReader
	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:59)
	at org.openstreetmap.josm.gui.io.importexport.FileImporter.importDataHandleExceptions(FileImporter.java:98)
	at org.openstreetmap.josm.actions.OpenFileAction$OpenFileTask.importData(OpenFileAction.java:369)
	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 (1)

Screenshot_2020-04-14 https termbin com.png (191.2 KB ) - added by anonymous 5 years ago.
System details

Download all attachments as: .zip

Change History (8)

by anonymous, 5 years ago

System details

comment:1 by skyper, 5 years ago

Component: CorePlugin opendata
Owner: changed from team to Don-vip

comment:2 by Don-vip, 4 years ago

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

comment:3 by Don-vip, 4 years ago

Status: newassigned

comment:4 by Don-vip, 4 years ago

Keywords: shp shapefile added
Summary: shp file downloadNoClassDefFoundError: Could not initialize class opendata.core.io.geographic.ShpReader

comment:5 by Don-vip, 4 years ago

Keywords: webstart added
Summary: NoClassDefFoundError: Could not initialize class opendata.core.io.geographic.ShpReaderNoClassDefFoundError: Could not initialize class opendata.core.io.geographic.ShpReader using WebStart

comment:6 by taylor.smock, 3 years ago

Owner: changed from Don-vip to pierre
Status: assignedneedinfo
  • W: Warning - <html>JOSM could not find information about the following plug-ins:[..snip..]<li>opendata</li><li>jts</li>[..snip..]<li>jaxb</li>[..snip..]</ul>The plug-ins are not going to be loaded.</html>

This is working for me under OpenWebStart. TBH, it looks like there was an issue on JOSM startup.

@pierre: Is this still a problem for you?

comment:7 by taylor.smock, 3 years ago

Resolution: needinfo
Status: needinfoclosed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain pierre.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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