Lol - yes the job was using Java 11 - and thus the resulting GeoTools could not be used in Java 8 environment (sigh).
Creating geotools-release-java8 job to address this 🙂 (I do not wish to remember to edit the build configuration each time) Reference: https://www.morling.dev/blog/bytebuffer-and-the-dreaded-nosuchmethoderror/ -- Jody Garnett On Jun 18, 2023 at 11:42:00 AM, Peter Smythe <g...@smythe.co.za> wrote: > In testing with Java 8, there is an exception: > > Jun 18, 2023 11:31:23 AM org.geotools.tutorial.quickstart.Quickstart main > INFO: java.util.logging.config.file=null > Exception in thread "main" java.lang.NoSuchMethodError: > java.nio.ByteBuffer.position(I)Ljava/nio/ByteBuffer; > at > org.geotools.data.shapefile.dbf.DbaseFileHeader.readHeader(DbaseFileHeader.java:577) > at > org.geotools.data.shapefile.dbf.DbaseFileReader.doInit(DbaseFileReader.java:226) > at > org.geotools.data.shapefile.dbf.DbaseFileReader.init(DbaseFileReader.java:186) > at > org.geotools.data.shapefile.dbf.DbaseFileReader.<init>(DbaseFileReader.java:148) > at > org.geotools.data.shapefile.ShapefileSetManager.openDbfReader(ShapefileSetManager.java:132) > at > org.geotools.data.shapefile.ShapefileFeatureSource.readAttributes(ShapefileFeatureSource.java:497) > at > org.geotools.data.shapefile.ShapefileFeatureSource.buildFeatureType(ShapefileFeatureSource.java:454) > at > org.geotools.data.shapefile.ShapefileFeatureStore.buildFeatureType(ShapefileFeatureStore.java:142) > at > org.geotools.data.store.ContentFeatureSource.getAbsoluteSchema(ContentFeatureSource.java:339) > at > org.geotools.data.store.ContentFeatureSource.getSchema(ContentFeatureSource.java:308) > at > org.geotools.data.store.ContentFeatureSource.getSchema(ContentFeatureSource.java:106) > at > org.geotools.tutorial.quickstart.Quickstart.main(Quickstart.java:58) > > https://www.morling.dev/blog/bytebuffer-and-the-dreaded-nosuchmethoderror/ > <https://fdfdfha.r.bh.d.sendibt3.com/tr/cl/pavIjKGP2v1NoavyFkb08GBnGSBbT4z2ldytdkAjmkL5nSBAU6kwavK9v1c-kuZeL8IZq7XtMwNsjJh-K2MIHo93XXOx7_K0Mgqahry4eV2_OCBQN7Zy3rkUI0TJ47V4YQiJt6z_MgyvlYzQcLiQDgx_u6ZvJ2pcSxKs62z43X1BpBnh5nab0bcfDzUyhKCtGeze_ai4EI8KtPDDwh96qYMc0ey-jUJeBIe4O2bjJvAdU2jBmKvZtAYBNmmZ8wnTshKYcc-0WNr2NWiJ-ObAj1bDbE0816MfWHfUrhj6-g4K> > > Jody says we should build using Java 8 not 11, so we're doing the release > again. > > > > On Sun, 18 Jun 2023 at 11:26, Jody Garnett <jody.garn...@gmail.com> wrote: > >> Artifacts are available for preflight testing: >> https://build.geoserver.org/view/release/job/geotools-release/lastSuccessfulBuild/artifact/build/release/distribution/28.4/ >> <https://fdfdfha.r.bh.d.sendibt3.com/tr/cl/Npu9wPrT_NFfT1V4FHVjWdmqDNuruxyFF-N4EhVYc8ejUOBKmJGeGT9TljKmhNJKaeohNW_tTLXqo_xp-Hv1Xiv9f71yDqp2k9t5RYnb4T7y-QvlTCvNrgqEW89XYnMl8uz0fnJQrccYZJp4IQClHkxoIerexUTQO-wzVAi1X8xv00San5-CN-S45Hq4eEfFKwUqvjg7eUxwAFZ7sYHBJLDYraOhEJfUOEwLH6Ueo_SkEigkKvEHMai4xBevS6F90X1TSMs7sNvZ3-1wbr1eqiHl96vVQOYaYg2aHjK1qo1mNIxKKnhoMXjvur4uMq-z82rliTUESJzwZ9277QaymtYP-MzljnGSxoc2iP05vrFXGhZfuy0vbKohd0_4NYzazDo> >> >> Thanks Peter for volunteer for today's release :) >> -- >> Jody Garnett >> _______________________________________________ >> GeoTools-Devel mailing list >> GeoTools-Devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/geotools-devel >> <https://fdfdfha.r.bh.d.sendibt3.com/tr/cl/hjB9ehvb875uz57iecgLO5qy66TBekrZ0tPqig97GL_bFET-NBQXpjbiluJ775VivddhIxhFq_gVUq8MIgS12qZIIJ1WI4WnAMXgWK27bx3WTpK1JDc-XM3es_d5P62nr9_n9UquXE6X3dIVOweClKw6wjEqtH6g_3HLsjBaPvHsMM3YSyNCb0HSLOLqg3agba63GFNN4lUCaocnZu68-HRorWFCj2oKHk6O1-i5PbrdgnGdxkt2sDCh5ry3gnahxzdMNmH3dk-hOAIHBQamfOUI> >> >
_______________________________________________ GeoTools-Devel mailing list GeoTools-Devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel