Skip to content

Native builds fail to start when using Querydsl #29529

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

Closed
ManfredTremmel opened this issue Nov 19, 2022 · 3 comments
Closed

Native builds fail to start when using Querydsl #29529

ManfredTremmel opened this issue Nov 19, 2022 · 3 comments
Labels
for: external-project Needs a fix in external project

Comments

@ManfredTremmel
Copy link

ManfredTremmel commented Nov 19, 2022

Affects: spring-boot 3.0.0-rc2


I've a little example application which I've ported to spring-boot 3.0.0 (rc2 at the moment) and it works fine in Bytcode mode. Now I've also tried to build a native docker image using mvn -Pnative spring-boot:build-image (what works after a solving a view problems) and start it.
Starting the application fails with a IllegalStateException because it "Did not find a static field of the same type in class de.knightsoftnet.validationexample.shared.models.QPerson". QPerson is the class generated by Querydsl for the really simple Person entity.
Here you can find the stacktrace.txt

PS: Working with AbstractPersistable also fails in native mode, there is no id found

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Nov 19, 2022
@sbrannen
Copy link
Member

It sounds to me like this would need to be addressed in the Spring Data project.

@odrotbohm, @mp911de: can one of you transfer this?

@christophstrobl
Copy link
Member

Sounds like that's already covered by spring-projects/spring-data-commons#2721.

@sbrannen
Copy link
Member

Thanks for the feedback, @christophstrobl. 👍

Closing as a duplicate of spring-projects/spring-data-commons#2721.

@sbrannen sbrannen closed this as not planned Won't fix, can't repro, duplicate, stale Dec 13, 2022
@sbrannen sbrannen added for: external-project Needs a fix in external project and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Dec 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
for: external-project Needs a fix in external project
Projects
None yet
Development

No branches or pull requests

4 participants