Re: [Geotools-gt2-users] Exception when getFeatures()

2022-11-07 Thread Andrea Aime
Hi Paul, my guess is that you are using an older version of GeoTools with a too recent version of Java. Indeed the stack trace states "Java 17", which is only experimentally supported in GeoTools 27 (see GEOT-6964 ) and even that one requires some e

Re: [Geotools-gt2-users] Exception when getFeatures()

2022-11-07 Thread Ian Turton
You are trying to use java 17, GeoTools prefers java 11 currently. Ian On Mon, 7 Nov 2022, 11:51 , wrote: > Hi, > > I'm trying to do read (import) a Shape file, in the end it is imported to > my PostreSQL database but I get this exception when trying to use: > > > > FeatureCollection featSr

[Geotools-gt2-users] Exception when getFeatures()

2022-11-07 Thread paul.malm
Hi, I'm trying to do read (import) a Shape file, in the end it is imported to my PostreSQL database but I get this exception when trying to use: FeatureCollection featSrcCollection = featSource.getFeatures(); and I also tried (with the same result): SimpleFeatureCollection featSrcColle