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
[4.x] Hibernate app fails to run (Native Image) #8096
Comments
Also submitted https://hibernate.atlassian.net/browse/HHH-17500 |
Any help would be appreciated. I’m eager to use Helidon MP for a command-line JPA application. Thank you. |
My personal situation prevents me from engaging at work full time at the moment, but my immediate thought is that the strategy in question is a class that Graal's native image analysis did not identify. Just a guess. I'm not a huge Graal guy (or fan) but there are various switches and whatnot where you can tell it, "oh, also consider this class when you're doing your closed-world analysis". So my guess is if you add this strategy to it…? Good luck. |
Thanks Laird, I have tried to solve this problem on my own but was not successful. After solving the initial I do know that Quarkus solved this somehow so it can be done... |
For reference, Here is my PoC Greeter project (Weld-SE, Helidon, Quarkus) |
Maybe @tomas-langer can take a look? Thank you! |
There were some quite major changes done in Hibernate, that broke its usability in native image (at least for us, without doing some major changes).
and if the property is removed:
Byte buddy should not be reachable in this case at all. We will try to investigate possible solutions. |
I have opened issue https://hibernate.atlassian.net/browse/HHH-17650 in Hibernate, as the approach we used to use is no longer valid. I hope there is an easy solution for this, as it is used from other projects that use native image... |
Thanks for looking at this Tomas! I am glad it's not just something silly I missed. |
Just saw the Hibernate bug, and it looks like maybe the fix is near :) Hopefully Helidon will be compatible with Hibernate 6.4.1+ :) |
Current required workarounds to make this work in Helidon (we will fix it properly once the Hibernate issue gets resolved):
{
"class-hierarchy": [
"org.hibernate.boot.model.relational.ColumnOrderingStrategy"
],
"classes": [
"org.hibernate.boot.beanvalidation.TypeSafeActivator",
"org.hibernate.dialect.H2Dialect"
]
}
|
Tried the new Hibernate release (6.4.3.Final), the above-mentioned patch, and both. |
Unfortunately, same problems with the new Helidon release (4.0.5) |
Hi, Any updates on this would be appreciated. |
Hi, |
Found another ticket that looks like a duplicate of the one Tomas filed: https://hibernate.atlassian.net/browse/HHH-17568. I tried |
Isn't returning |
Will there be a pre-release of 4.1 I can test with? |
This will be included in 4.0.9 |
Environment Details
Problem Description
Sample JPA/JTA app fails to start with the following exception:
Steps to reproduce
mvn package -Pnative-image
Run the resulting binary, and you will see the error.
The text was updated successfully, but these errors were encountered: