Skip to content
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

Open
5aab opened this issue Dec 16, 2023 · 7 comments
Open

QueryDSL is not Compatible with Graal VM 17/21 in a Spring Boot App #3646

5aab opened this issue Dec 16, 2023 · 7 comments
Labels

Comments

@5aab
Copy link

5aab commented Dec 16, 2023

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:

 <dependency>
            <groupId>com.querydsl</groupId>
            <artifactId>querydsl-apt</artifactId>
            <version>${querydsl.version}</version>
            <classifier>jakarta</classifier>
            <scope>provided</scope>
        </dependency>

        <dependency>
            <groupId>com.querydsl</groupId>
            <artifactId>querydsl-jpa</artifactId>
            <classifier>jakarta</classifier>
            <version>${querydsl.version}</version>
        </dependency>

Database: H2

JDK: 17

@5aab 5aab added the bug label Dec 16, 2023
@velo
Copy link
Contributor

velo commented Dec 21, 2023

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
https://app.circleci.com/pipelines/github/OpenFeign/querydsl/788/workflows/9811b105-1c80-4da0-aa1e-f34f6e0be745/jobs/5567

If there is anything needed, please let me know

@5aab 5aab changed the title QueryDSL is not Compatible with Graal VM 17/21 QueryDSL is not Compatible with Graal VM 17/21 in a Spring Boot App Jan 1, 2024
@5aab
Copy link
Author

5aab commented Jan 1, 2024

@velo this problem is specific to the Spring Boot project. do you have a working fork for the Spring boot project?

@velo
Copy link
Contributor

velo commented Jan 1, 2024

Is spring fully functional with graalvm?

@5aab
Copy link
Author

5aab commented Jan 2, 2024 via email

@velo
Copy link
Contributor

velo commented Jan 4, 2024

@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.

@mirzaprangon
Copy link

Still waiting for update on this. Facing same problem.

@velo
Copy link
Contributor

velo commented Apr 4, 2024

@mirzaprangon yeah, I would like to help, but so far, nobody seems to be willing to make an example project to reproduce the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants