Quarkus with Hibernate + panache throws a NoSuchFieldError when using Kotlin #40419
Labels
area/hibernate-orm
Hibernate ORM
area/kotlin
area/panache
area/persistence
kind/bug
Something isn't working
triage/needs-feedback
We are waiting for feedback.
Describe the bug
I'm trying to learn kotlin, and to do so i'm turning a Quarkus (3.9.4) project I wrote in Java into a Kotlin one.
On the java side, everything works fine.
However, as soon as I try to run the kotlin version, I get this error.
Which seems to come from the unability to read this Java enum in Hibernate Core
The BEFORE_TRANSACTION_COMPLETION enum value can't seem to be picked for whatever reason, throwing the exception.
Here is my pom.xml content
I'm also using a PersistenceUnitExtension to setup my agroal data source programaticaly since my app functions with a keyvault from Azure to store some secrets. I can provide a link to the repository if needed. However I can't share some properties used to run the app.
I tried downgrading the quarkus version hoping I could find a working hibernate-kotlin jar, to comment every bit of code not linked to JPA, without much success.
I use Java 17, Maven 3.9.6, Intellij Ultimate latest version.
Expected behavior
Considering everything runs on the JVM, I expected th kotlin version of the app to run smoothly and not get an issue while Hibernatee is setting up.
Actual behavior
Configuration failure at the hibernate setup stage
How to Reproduce?
Run any project with Kotlin Hibernate and Panache
Output of
uname -a
orver
No response
Output of
java -version
17
Quarkus version or git rev
No response
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
The text was updated successfully, but these errors were encountered: