-
Notifications
You must be signed in to change notification settings - Fork 1.1k
NullPointerException during AOT processing when MongoDB domain model #4958
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
Comments
Thank you for reporting! Please help us diagnose the issue by providing a complete minimal sample (something that we can unzip or git clone, build, and deploy) that reproduces the problem. Right now I do not see the Jackson & MongoDB connection but some |
I’ve created a minimal project that reproduces the issue. You can find it here: 🔗 https://github.com/ckdgus08/demo-aot-npe It uses Spring Boot with AOT enabled and includes Querydsl and MongoDB dependencies. The issue occurs during the AOT processing phase while generating metadata for the Querydsl-generated Q classes. Specifically, it seems to be triggered when Jackson-related code is being processed—possibly during introspection or serialization configuration. This causes the AOT engine to fail when trying to handle the generated Querydsl types. Please let me know if there’s anything I can improve or clarify further. Thanks again for taking a look! |
…types. Related tickets: spring-projects/spring-data-mongodb#4958 Signed-off-by: ckdgus08 <ckdgus0808@naver.com>
Hello,
First of all, thank you for your continued work on the Spring ecosystem.
I encountered a
NullPointerException
while using Spring Boot 3.4.5 with AOT processing enabled, and I'd like to report a potential bug.Based on my debugging, it seems that a NullPointerException occurs when using Jackson with Mongo data models annotated with @ Document.
If this issue is not already being worked on, I would like to submit a pull request with a fix.
Environment
Stack Trace
The text was updated successfully, but these errors were encountered: