-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Quarkus 3.0.0.Beta1 HibernateOrmRuntimeConfig #32188
Comments
Thank you for the report and reproducer; I can reproduce this locally and am investigating. Interestingly, the error your reported is not the only one. We get that error first, that's right:
... But we get that other one afterwards:
I suspect the first displayed error is actually a result of the second one: something fails, the original error is put aside for deferred reporting, Arc tries to shut down, fails and display that error, then the original error is finally printed out. I'll try to confirm that, and to see why Arc fails when trying to shut down exactly. |
FWIW:
Now why does it lead to such a cryptic error... I'm still on it :) |
Thanks for the catch on that mis-applied tag!
Should 2.x have also thrown an error on a mis-applied annotation?
…On Wed, Mar 29, 2023 at 5:46 AM Yoann Rodière ***@***.***> wrote:
FWIW:
1. Removing Panache doesn't change anything, so this is not
Panache-related.
2. The errors disappear if your remove @SQLDeleteAll from your entity.
That annotation is not supposed to be applied on entity types anyway, and
would only cause a startup error. So, simple workaround: don't misuse
@SQLDeleteAll :)
Now why does it lead to such a cryptic error... I'm still on it :)
—
Reply to this email directly, view it on GitHub
<#32188 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABUGXHT2NVQO7H75TKK2EC3W6QOHZANCNFSM6AAAAAAWKZUX4A>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Probably, but Quarkus doesn't have anything to do with this check, it's internal to Hibernate ORM. And I doubt a check like that will get backported to ORM 5. |
Thanks @yrodiere Very Much appreciated! |
Np. Thanks for the reproducer @gesker , I'll use that to investigate and open another issue/PR, this time about the cryptic error. It's not normal that the error message you got didn't even mention the |
Describe the bug
Fails to native package process on:
./mvnw clean compile package install -Pnative -Dquarkus.native.container-build=true;
Expected behavior
Package native profile completes
Actual behavior
How to Reproduce?
Reproducer Here
https://github.com/gesker/orm-native-error
Output of
uname -a
orver
Linux drg-wrk 6.1.0-6-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.15-1 (2023-03-05) x86_64 GNU/Linux
Output of
java -version
openjdk version "17.0.6" 2023-01-17 OpenJDK Runtime Environment (build 17.0.6+10-Debian-1) OpenJDK 64-Bit Server VM (build 17.0.6+10-Debian-1, mixed mode, sharing)
GraalVM version (if different from Java)
Status: Image is up to date for quay.io/quarkus/ubi-quarkus-mandrel-builder-image:22.3-java17
Quarkus version or git rev
3.0.0.Beta1
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.8.6 (84538c9988a25aec085021c365c560670ad80f63) Maven home: /home/gesker/.m2/wrapper/dists/apache-maven-3.8.6-bin/67568434/apache-maven-3.8.6 Java version: 17.0.6, vendor: Debian, runtime: /usr/lib/jvm/java-17-openjdk-amd64 Default locale: en_US, platform encoding: UTF-8 OS name: "linux", version: "6.1.0-6-amd64", arch: "amd64", family: "unix"
Additional information
Sort of seems related to quarkus-hibernate-orm-panache but this project also has dependencies for quarkus-hibernate-envers and quarkus-jdbc-postgresql. The single class uses a number of hibernate related annotations but nothing, I think, unusual.
The text was updated successfully, but these errors were encountered: