-
Notifications
You must be signed in to change notification settings - Fork 861
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
QueryDSL is not Compatible with Graal VM 17/21 in a Spring Boot App #3646
Comments
FWIW, my fork of querydsl works well with quarkus and making sure native build works is part of the build process https://github.com/OpenFeign/querydsl/tree/master/querydsl-examples/querydsl-example-jpa-quarkus It's all build on docker image, but seems fine If there is anything needed, please let me know |
@velo this problem is specific to the Spring Boot project. do you have a working fork for the Spring boot project? |
Is spring fully functional with graalvm? |
Yes it is, starting version 3. Rest of the libraries are working fine with
spring boot version 3.2.1. I get this issue only when I add query DSL
libraries
…On Mon, 1 Jan 2024, 20:56 Marvin, ***@***.***> wrote:
Is spring fully functional with graalvm?
—
Reply to this email directly, view it on GitHub
<#3646 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJGSEY7RZ5OJDAYLZQYRPETYMLIRNAVCNFSM6AAAAABAXZHAR6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZTGM3TAMJQG4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
@5aab can you add the graal/native bits to https://github.com/OpenFeign/querydsl/tree/master/querydsl-examples/querydsl-example-jpa-spring ? Just a Dockerfile that builds and test the native image (like the one I did for quarkus https://github.com/OpenFeign/querydsl/blob/master/querydsl-examples/querydsl-example-jpa-quarkus/Dockerfile) Then I can troubleshoot and fix whatever is going wrong there. |
Still waiting for update on this. Facing same problem. |
@mirzaprangon yeah, I would like to help, but so far, nobody seems to be willing to make an example project to reproduce the issue. |
Hey, I have a sample project where I was relearning about basics of spring boot, wile building the native image I am facing the following exception If you guys are interested then please use the following project to reproduce the error ERROR LOG
|
@bharathkalyans adding this dependency
Fixes the first error The second you need etiher switch to java 17 or find a different buildpack |
Oh cool, thanks!! It doesn't support Java 21 yet right @velo? |
My querydsl fork does support 21 |
Observed vs. expected behavior
QueryDSL is not Compatible with Graal VM 17/21
Steps to reproduce
create a sample project from the spring initializer. Add QueryDSL dependencies. Try to build the native image. it will lead to build failure
Environment
Windows, Spring Boot 3.2.0, Query DSL 5.0.0
Querydsl version: 5.0.0
Querydsl module:
Database: H2
JDK: 17
The text was updated successfully, but these errors were encountered: