Modify

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#18174 closed defect (fixed)

NoClassDefFoundError: org/apache/commons/lang3/JavaVersion Opening Shapefile

Reported by: Glassman Owned by: Don-vip
Priority: normal Milestone:
Component: Plugin geotools Version:
Keywords: template_report shapefile java11 Cc:

Description

What steps will reproduce the problem?

  1. open a shapefile

What is the expected result?

JOSM opens the shapefile showing the data

What happens instead?

Get a java error

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

URL:https://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2019-09-26 22:40:50 +0200 (Thu, 26 Sep 2019)
Build-Date:2019-09-27 01:30:53
Revision:15378
Relative:URL: ^/trunk

Identification: JOSM/1.5 (15378 en) Mac OS X 10.14.6
OS Build number: Mac OS X 10.14.6 (18G95)
Memory Usage: 1139 MB / 1820 MB (593 MB allocated, but free)
Java version: 1.8.0_77-b03, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
Screen: Display 69675206 1440x900
Maximum Screen Size: 1440x900
VM arguments: [-Djava.library.path=/Applications/JOSM.app/Contents/MacOS, -DLibraryDirectory=${HOME}/Library, -DDocumentsDirectory=${HOME}/Documents, -DApplicationSupportDirectory=${HOME}/Library/Application Support, -DCachesDirectory=${HOME}/Library/Caches, -DSandboxEnabled=false, -Djosm.home=<josm.pref>, -Dapple.laf.useScreenMenuBar=true, -Dcom.apple.macos.use-file-dialog-packages=true, -Dcom.apple.macos.useScreenMenuBar=true, -Dcom.apple.mrj.application.apple.menu.about.name=JOSM, -Dcom.apple.smallTabs=true]

Plugins:
+ ImportImagePlugin (35125)
+ ImproveWay (26)
+ InfoMode (34908)
+ Mapillary (1.5.18)
+ MicrosoftStreetside (34977)
+ MovementAlert (1511141840)
+ OpenStreetCam (256)
+ OpeningHoursEditor (34977)
+ ShapeTools (1240)
+ SimplifyArea (34977)
+ apache-commons (34908)
+ apache-http (34908)
+ areaselector (349)
+ austriaaddresshelper (57)
+ buildings_tools (34982)
+ conflation (0.6.4)
+ ejml (35122)
+ ext_tools (34988)
+ geochat (34977)
+ geojson (124)
+ geotools (35137)
+ javafx-osx
+ jaxb (35014)
+ jna (34908)
+ jts (35122)
+ log4j (34908)
+ mbtiles (v2.5.0)
+ measurement (35051)
+ merge-overlap (35072)
+ opendata (35139)
+ pdfimport (34977)
+ public_transport (34977)
+ reltoolbox (34977)
+ reverter (35084)
+ routing (35039)
+ scripting (30796)
+ splinex (34908)
+ turnlanes (34994)
+ turnrestrictions (34977)
+ undelete (34977)
+ utilsplugin2 (35098)
+ waydownloader (34977)
+ wikipedia (v1.1.1)

Tagging presets:
+ https://raw.githubusercontent.com/species/josm-preset-wheelchair/master/sidewalks_kerbs.xml
+ https://raw.githubusercontent.com/osmlab/name-suggestion-index/master/dist/name-suggestions.presets.xml

Map paint styles:
- <josm.pref>/ebdirigo/style.zip
- https://josm.openstreetmap.de/josmfile?page=Styles/PublicTransport&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/AddressValidator&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Styles/Sidewalks&zip=1
+ ${HOME}/foo.mapcss
- https://github.com/osmlab/appledata/archive/josm_paint_inline_validation.zip
- https://josm.openstreetmap.de/josmfile?page=Styles/Coloured_Kerbs&zip=1
+ https://raw.githubusercontent.com/OpenSidewalks/OpenSidewalks-Schema/master/open_sidewalks.mapcss

Last errors/warnings:
- W: Plugin javafx-osx requires Java version 10. The current Java version is 8. You have to update Java in order to use this plugin.
- E: unable to find dependency javafx for plugin MicrosoftStreetside
- W: No configuration settings found.  Using hardcoded default values for all pools.
- E: org.openstreetmap.josm.io.IllegalDataException: java.io.IOException: java.lang.NoClassDefFoundError: org/apache/commons/lang3/JavaVersion. Cause: java.io.IOException: java.lang.NoClassDefFoundError: org/apache/commons/lang3/JavaVersion. Cause: java.lang.NoClassDefFoundError: org/apache/commons/lang3/JavaVersion
- E: Error - <html>Could not read file 'test.shp'.<br>Error is:<br>java.io.IOException: java.lang.NoClassDefFoundError: org/apache/commons/lang3/JavaVersion</html>

Attachments (0)

Change History (12)

comment:1 by Glassman, 5 years ago

The same error come us on either a mac or a linux box running java version: 11.0.4+11, Oracle Corporation, OpenJDK 64-Bit Server VM

The shapefiles tested all pass QGIS vector verification tests.

comment:2 by Don-vip, 5 years ago

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

comment:3 by Don-vip, 5 years ago

Owner: changed from team to Glassman
Status: newneedinfo

I've updated apache-commons plugin in ​[o35153], can you please check if it works now?

comment:4 by Don-vip, 5 years ago

Component: CorePlugin geotools
Keywords: shapefile java11 added

comment:5 by Don-vip, 5 years ago

Summary: Java Error Opening ShapefileNoClassDefFoundError: org/apache/commons/lang3/JavaVersion Opening Shapefile

comment:6 by Glassman, 5 years ago

Yes it does. Thanks for the quick fix.

comment:7 by Glassman, 5 years ago

Resolution: fixed
Status: needinfoclosed

comment:8 by Don-vip, 5 years ago

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

comment:9 by Don-vip, 5 years ago

Resolution: fixed
Status: closedreopened

There's still something to fix, see #18180

comment:10 by Don-vip, 5 years ago

Owner: changed from Glassman to Don-vip
Status: reopenednew

comment:11 by Don-vip, 5 years ago

Resolution: fixed
Status: newclosed

Fixed in [o35154:35155].

comment:12 by anonymous, 5 years ago

Confirm fixed

thanks

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Don-vip.
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.