Benni
02/13/2022, 6:22 PMUnknownClass.Kotest > UnknownClass.initializationError FAILED
java.lang.UnsupportedClassVersionError at ClassLoader.java:-2
(see log here). I am using Kotlin 1.6.2 and Kotest 5.10 (see versions here) I am a little unclear how to debug this and any pointers are greatly appreciated.Richard Gomez
02/13/2022, 6:28 PMUnsupportedClassVersionError
would usually imply some sort of JDK mis-match. 🤔sam
02/13/2022, 6:31 PMBenni
02/13/2022, 6:33 PMopenjdk 11.0.14 2022-01-18 LTS
OpenJDK Runtime Environment Corretto-11.0.14.9.1 (build 11.0.14+9-LTS)
OpenJDK 64-Bit Server VM Corretto-11.0.14.9.1 (build 11.0.14+9-LTS, mixed mode)
And I think my travis build is jdk 11 too (see config). But I’ll see if I can get more info about travis java installation.Richard Gomez
02/13/2022, 6:33 PMlanguage: kotlin
jdk:
- oraclejdk11
(Aside: is there a reason you're using oraclejdk11 and not openjdk11? Most people avoid oracle's JDK for fear of future license issues.)sam
02/13/2022, 6:34 PMsam
02/13/2022, 6:34 PMBenni
02/13/2022, 6:36 PMKotest
. But maybe that is not correct.Benni
02/13/2022, 6:37 PMis there a reason you’re using oraclejdk11 and not openjdk11no, no reason. I think I might have copied it carelessly. Thanks for the feedback. I’ll can change it 🙂
sam
02/13/2022, 6:37 PMThrowable
but only Exception
and that is an Error
so you don't get much details.Richard Gomez
02/13/2022, 6:38 PM--stacktrace
or --debug
? There's not much info to glean from the default verbosity level.
e.g. this error has the detailed message in the stacktrace but not the 'message'.
https://github.com/kotest/kotest/issues/2785sam
02/13/2022, 6:40 PM- name: Bundle the build report
if: failure()
run: find . -type d -name 'reports' | zip -@ -r build-reports.zip
- name: Upload the build report
if: failure()
uses: actions/upload-artifact@master
with:
name: error-report
path: build-reports.zip
sam
02/13/2022, 6:40 PMBenni
02/13/2022, 6:49 PM/usr/lib/jvm/java-8-openjdk-amd64/bin/java -Dcoverage.ignore.private.constructor.util.class=true -Didea.coverage.log.level=error -Didea.new.sampling.coverage=true -Didea.new.tracing.coverage=true -...
This seems like a bug or misconfiguration of kover toolBenni
02/13/2022, 6:51 PMsam
02/13/2022, 6:54 PMsam
02/13/2022, 6:54 PMRichard Gomez
02/13/2022, 6:57 PMsam
02/13/2022, 6:57 PMBenni
02/14/2022, 12:17 AM