-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Cannot natively compile when using jackson ObjectMapperCustomizer in AWS Lambda #10729
Comments
/cc @patriot1burke |
Hi, Would it be possible to upload a github project that reproduces the issue? It should be fairly easy to fix as long as we can reproduce it. |
Are you perhaps trying to use Jackson's afterburner module? |
I will publish a github project this weekend. Actually I do not use afterburner but only Jackson module which invokes |
Hi @geoand , Sorry for so late reply, but I have pushed the code repository at here: https://github.com/privatejava/quarkus-example-jackson please check and let me know. The problem is coming from
please do |
As I expected, this happens because of the Afterburner Jackson module (which is a transitive dependency of Basically it gets discovered automatically by |
The way forward for this is to exclude afterburner from |
aws/serverless-java-container#369 has been merged but we still need a release of it |
Release 1.6 is now available in Maven Central. |
Nice! |
#19119 should take care of the issue |
For now, a workaround could be to exclude the dependency to |
Fix issue with Lambda and Jackson Afterburner in native mode
Describe the bug
I am not able to customize the objectmapper of Jackson when I tried to compile it natively for AWS. I used the guide from https://quarkus.io/guides/rest-json#jackson
Expected behavior
Normally it should compile correctly . If I changed the code to something like this it compiles.
Actual behavior
If I compile a project with that customizer it show error like this :
To Reproduce
Steps to reproduce the behavior:
Configuration
# Add your application.properties here, if applicable.
Environment (please complete the following information):
Output of
uname -a
orver
: Linux ngm-hp 5.4.0-40-generic Arc - request context propagation #44-Ubuntu SMP Tue Jun 23 00:01:04 UTC 2020 x86_64 x86_64 x86_64 GNU/LinuxOutput of
java -version
:openjdk 11.0.7 2020-04-14
OpenJDK Runtime Environment GraalVM CE 20.1.0 (build 11.0.7+10-jvmci-20.1-b02)
OpenJDK 64-Bit Server VM GraalVM CE 20.1.0 (build 11.0.7+10-jvmci-20.1-b02, mixed mode, sharing)
Quarkus version or git rev: 1.6.0.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
): Apache Maven 3.6.3The text was updated successfully, but these errors were encountered: