Which is what I said 2 days ago replying one of your many mails: Quoting: "That field is in a commons-lang3 public enumeration, JavaVersion, do you have it in the classpath? Or maybe have a mix of two commons-lang versions?"
(bombarding the list with repeated mails is bad practice, did you check our posting guidelines before subscribing to the list (we ask people to, some miss it): http://docs.geotools.org/stable/userguide/welcome/userlistguide.html (particularly relevant, the "be patient" section) Cheers Andrea On Sun, Mar 31, 2019 at 11:04 AM Chris Zheng <z...@caudate.me> wrote: > Okay, this is really weird. I found that the exception is related to: > https://github.com/geotools/geotools/blob/master/modules/library/metadata/src/main/java/org/geotools/util/NIOUtilities.java#L208 > > where there is no `JavaVersion.JAVA_9` field. > > > > On 31 Mar 2019, at 4:55 pm, Chris Zheng <z...@caudate.me> wrote: > > I’m using the latest version of the geotools jar (22-SNAPSHOT) and JDK 11 > and a call to will result in an exception. > > This code will trigger the exception: > > * FileDataStoreFinder.getDataStore(new > java.io.File("geotools/maps/countries.shp”)).getFeatureSource().getFeatures()* > > ---------------------- > > Unhandled java.lang.NoSuchFieldError > JAVA_9 > > * NIOUtilities.java: 207 org.geotools.util.NIOUtilities/clean* > * NIOUtilities.java: 185 org.geotools.util.NIOUtilities/clean* > * DbaseFileReader.java: 300 > org.geotools.data.shapefile.dbf.DbaseFileReader/close* > *ShapefileFeatureSource.java: 586 > org.geotools.data.shapefile.ShapefileFeatureSource/readAttributes* > *ShapefileFeatureSource.java: 479 > org.geotools.data.shapefile.ShapefileFeatureSource/buildFeatureType* > *ShapefileFeatureStore.java: 137 > org.geotools.data.shapefile.ShapefileFeatureStore/buildFeatureType* > * ContentFeatureSource.java: 327 > org.geotools.data.store.ContentFeatureSource/getAbsoluteSchema* > * ContentFeatureSource.java: 296 > org.geotools.data.store.ContentFeatureSource/getSchema* > *ContentFeatureCollection.java: 69 > org.geotools.data.store.ContentFeatureCollection/<init>* > * ContentFeatureSource.java: 545 > org.geotools.data.store.ContentFeatureSource/getFeatures* > > Is there anything I’m missing? > _______________________________________________ > GeoTools-Devel mailing list > GeoTools-Devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/geotools-devel > > > _______________________________________________ > GeoTools-Devel mailing list > GeoTools-Devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/geotools-devel > -- Regards, Andrea Aime == GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it http://twitter.com/geosolutions_it ------------------------------------------------------- *Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.*
_______________________________________________ GeoTools-Devel mailing list GeoTools-Devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel