NoClassDefFoundError: org/apache/commons/lang3/JavaVersion Opening Shapefile
What steps will reproduce the problem?
- open a shapefile
-
-
What is the expected result?
JOSM opens the shapefile showing the data
What happens instead?
Get a java error
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>
Change History
(12)
Owner: |
changed from team to Glassman
|
Status: |
new → needinfo
|
Component: |
Core → Plugin geotools
|
Keywords: |
shapefile java11 added
|
Summary: |
Java Error Opening Shapefile → NoClassDefFoundError: org/apache/commons/lang3/JavaVersion Opening Shapefile
|
Resolution: |
→ fixed
|
Status: |
needinfo → closed
|
Resolution: |
fixed
|
Status: |
closed → reopened
|
Owner: |
changed from Glassman to Don-vip
|
Status: |
reopened → new
|
Resolution: |
→ fixed
|
Status: |
new → closed
|
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.