Closed rosariop closed 3 years ago
/cc @Sanne, @gsmet, @yrodiere
Please provide the information that are requested in this template: https://github.com/quarkusio/quarkus/issues/new?assignees=&labels=kind%2Fbug&template=bug_report.md&title= .
There's no way we will be able to help with so little information.
Thanks.
oh sure, sorry. My english is really bad. I build a example repository you can checkout and try to reproduce the error yourself if this helps? https://github.com/rosariop/Quarkus-Hibernate-Orm-Error
Describe the bug When starting quarkus it throws the exception mentioned by my first posting.
Expected behavior Quarkus starting and Hibernate beeing able to persist my created entity by using the entitymanager
Actual behavior Throwing exception
To Reproduce https://github.com/rosariop/Quarkus-Hibernate-Orm-Error running it via quarkus devtools vs-code
Configuration
quarkus.datasource.db-kind=h2
quarkus.datasource.username=admin
quarkus.datasource.password=admin
quarkus.datasource.jdbc.url=jdbc:h2:mem:default
quarkus.hibernate-orm.database.generation=drop-and-create
Environment (please complete the following information):
Output of uname -a
or ver
:
Linux polito 5.9.1-050901-generic #202010170731 SMP Sat Oct 17 07:42:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Output of java -version
:
openjdk version "11.0.10" 2021-01-19
OpenJDK Runtime Environment (build 11.0.10+9-Ubuntu-0ubuntu1.20.04)
OpenJDK 64-Bit Server VM (build 11.0.10+9-Ubuntu-0ubuntu1.20.04, mixed mode, sharing)
Build tool (ie. output of mvnw --version
or gradlew --version
):
Maven home: /home/polito/.m2/wrapper/dists/apache-maven-3.6.3-bin/1iopthnavndlasol9gbrbg6bf2/apache-maven-3.6.3
Java version: 11.0.10, vendor: Ubuntu, runtime: /usr/lib/jvm/java-11-openjdk-amd64
Default locale: de_DE, platform encoding: UTF-8
OS name: "linux", version: "5.9.1-050901-generic", arch: "amd64", family: "unix"
I hope that will help @gsmet. Thanks for your time!
The problem is caused by the dependency to Selenium. Apparently it's depending on an old version of ByteBuddy, while Hibernate ORM requires version 1.10.21
.
Thanks, it's an interesting case @rosariop . So technically the problem is just wrong dependencies being used, but we need to improve the detection of this case and improve the error messages such situations produce.
I'll open a new issue
Would be cool to know what dependencies are wrong and what are right. I tried to stay JEE compatible when using the EntityManager but only found Sprint JPA guides on the Interwebs
@rosariop I agree. Opened https://github.com/quarkusio/quarkus/issues/15635 to make sure Quarkus can give better suggestions and error messages in the future.
In your case, just add this to your pom.xml
<dependency>
<groupId>net.bytebuddy</groupId>
<artifactId>byte-buddy</artifactId>
<version>1.10.21</version>
</dependency>
Describe the bug When starting the app, following stacktrace get's thrown:
Expected behavior I exptected that quarkus generates my database table and starts the server.
Actual behavior (Describe the actual behavior clearly and concisely.)
To Reproduce mvn dependencies:
entity:
Environment: using mvnw 3.6.3