The offending file from my stacktrace was: org.spdx.spdRdfStore.RdfStore I have this in my maven cache which is a Java 11 class file:
unzip ~/.m2/repository/org/spdx/spdx-rdf-store/1.1.2/spdx-rdf-store-1.1.2.jar org/spdx/spdxRdfStore/RdfStore.class javap -v org/spdx/spdxRdfStore/RdfStore.class | more Classfile /data/git/commons-rng/commons-rng-simple/org/spdx/spdxRdfStore/RdfStore.class Last modified 30 Oct 2022; size 21349 bytes SHA-256 checksum a19c47ed9cca4a9b8f15f23522648deb6f443c8c81951105026d27a3eae31e7c Compiled from "RdfStore.java" public class org.spdx.spdxRdfStore.RdfStore implements org.spdx.storage.IModelStore,org.spdx.storage.ISerializableModelStore minor version: 0 major version: 55 ... I deleted the org.spdx directory from my cache and it did not fix the issue. This classfile is the same on my MacBook where the build works under java 8. So something is triggering the Java 11 RdfStore class to be loaded on my linux workstation, but not my MacBook. Not knowing how the spdx cache works, I took a guess and removed all spdx files from the maven cache: find ~/.m2 -name '*spdx*' -exec rm {} \; This mainly removed a lot of the spdx artifacts under org.apache.commons. Now my builds are OK under java 8. So I do not know the reason why, but clearing out the spdx artifacts used by maven fixed it. Alex On Thu, 8 Dec 2022 at 20:31, Gary Gregory <garydgreg...@gmail.com> wrote: > > Thanks for the update Alex! > > Gary > > On Thu, Dec 8, 2022, 15:11 Alex Herbert <alex.d.herb...@gmail.com> wrote: > > > I can confirm JDK 8 on my macbook is OK for rng, numbers and lang. > > > > Tried 55-SNAPSHOT from git master and also the tagged 55 RC1 (double > > checking). > > > > Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f) > > Maven home: /usr/local/apache-maven-3.6.3 > > Java version: 1.8.0_301, vendor: Oracle Corporation, runtime: > > /Library/Java/JavaVirtualMachines/jdk1.8.0_301.jdk/Contents/Home/jre > > Default locale: en_US, platform encoding: UTF-8 > > OS name: "mac os x", version: "10.16", arch: "x86_64", family: "mac" > > > > I'll investigate a bit more tomorrow why the JDK 8 build on my other > > machine is loading a Java 11 class. I may have some problem with the > > maven cache and the jars that are loaded. > > > > Alex > > > > On Thu, 8 Dec 2022 at 18:30, Alex Herbert <alex.d.herb...@gmail.com> > > wrote: > > > > > > On Thu, 8 Dec 2022 at 18:18, Gary Gregory <garydgreg...@gmail.com> > > wrote: > > > > > > > > Java version: 1.8.0_352, vendor: Private Build > > > > > > > > Private build? What's that? > > > > > > I did not notice that. It is strange. > > > > > > I believe this is the version installed by my package manager on Ubuntu: > > > > > > $ java -version > > > openjdk version "1.8.0_352" > > > OpenJDK Runtime Environment (build 1.8.0_352-8u352-ga-1~18.04-b08) > > > OpenJDK 64-Bit Server VM (build 25.352-b08, mixed mode) > > > > > > $ lsb_release -a > > > No LSB modules are available. > > > Distributor ID: Ubuntu > > > Description: Ubuntu 18.04.6 LTS > > > Release: 18.04 > > > Codename: bionic > > > > > > I'll try on my MacBook as it has a different java 8. > > > > > > Otherwise I will try to download a different java 8 for this linux box. > > > > > > Alex > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org > > For additional commands, e-mail: dev-h...@commons.apache.org > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org