-
-
Notifications
You must be signed in to change notification settings - Fork 48
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 collections fails to generate and execute query in spring web projects #853
Open
1 task done
Comments
The above issue seems to be related to the issue below. ECJEvaluatorFactory is used when called from the main statement. |
Yes that seems to be the reason. Is it possible to move over to |
kamilkrzywanski
added a commit
to kamilkrzywanski/querydsl_feign
that referenced
this issue
Feb 6, 2025
kamilkrzywanski
added a commit
to kamilkrzywanski/querydsl_feign
that referenced
this issue
Feb 6, 2025
kamilkrzywanski
added a commit
to kamilkrzywanski/querydsl_feign
that referenced
this issue
Feb 6, 2025
kamilkrzywanski
added a commit
to kamilkrzywanski/querydsl_feign
that referenced
this issue
Feb 7, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Important Notice
Thank you for opening an issue! Please note that, as outlined in the README, I currently only work on feature requests or bug fixes when sponsored. Balancing this project with professional and personal priorities means I have a very limited amount of effort I can divert to this project.
You must put in the work to address this issue, or it won't be addressed.
Querydsl fails to generate and execute queries inside threads used by Spring to handle requests. The following simple code:
produces this error:
I found one workaround that seems to fix the issue. That is to run a dummy query in the main thread at the startup of the application. If I modify the main method like this then the issue goes away.
I'm not sure what the issue is, but the workaround I found seems to indicate that this has something to do with threads and possible classpaths and classloaders.
Here is a repository that contains the minimal code required to reproduce this bug: https://github.com/rnilss47/querydsl-reproduce-collections-bug.
I am willing to put in the work and fix the issue, but I am not sure what change needs to be made.
The text was updated successfully, but these errors were encountered: