-
Notifications
You must be signed in to change notification settings - Fork 80
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
JacksonBlackbirdAccess Class access exception with Groovy Script Serialization Using BlackbirdModule #285
Comments
Hi, would like to know if there are any workarounds for this. Any suggestions? |
My main suggestion would be to try a more recent version -- ideally 2.18.2 -- of Jackson components. Otherwise I suspect Groovy-generated class has name that somehow Blackbird has issues with. Perhaps it is in the "default package" (i.e. one without name) and BB does not handle that case well. @stevenschlansker WDYT? |
I tried with 2.18.2 and see the same error unfortunately.
@cowtowncoder How can I inspect this Groovy generated class to root cause this? |
To be honest, I don't know. Maybe debugging on |
I'm encountering an issue when attempting to use the BlackbirdModule in a Spring Boot 3.2 application with Groovy scripting. The goal is to serialize a Groovy object into JSON using the Jackson ObjectMapper with the BlackbirdModule. However, the test case below fails with an exception during the serialization of a Groovy object.
Exception:
I am using
jackson-bom
version 2.15.4 and Groovy 4.0.17 that's default with Spring Boot 3.2. Any suggestions? Removing Blackbird module in above test passes, works even with afterburner module. Just not with blackbird module.The text was updated successfully, but these errors were encountered: