-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Problem while using jackson @JsonNaming in AWS Lambda #11397
Comments
/cc @patriot1burke |
Did you cut the stack trace? Looks like there should be more there. You are running with Graal right? |
Without seeing the full stack trace, I'm guessing that PropertyNamingStrategy.SnakeCaseStrategy needs to be added as a reflection class. See here: |
No I did not remove any logs those were the only logs I get. You can even try as well I have setup that repository which throws same error.
I tried using SnakeCaseStrategy in reflection-config.json as follows but still same issue. : [
{
"name" : "com.fasterxml.jackson.databind.PropertyNamingStrategy.SnakeCaseStrategy",
"allDeclaredConstructors" : true,
"allPublicConstructors" : true,
"allDeclaredMethods" : true,
"allPublicMethods" : true,
"allDeclaredFields" : true,
"allPublicFields" : true
}
] |
@patriot1burke
|
I just tried using Previous:
Thanks |
This is something we need to fix in the Jackson extension. |
Fixed here: #11635 . |
I am trying to implement a @JsonNaming for a class which serializes a json property
blog_title
by a field namedblogTitle
. This is the sample URL that I am trying to parse the JSON to an object.Expected behavior
Normally it works correctly in quarkus:dev mode without any issue but when I deploy it in AWS Lambda (serverless) it throws an error of no default constructor.
Actual behavior
To Reproduce
Steps to reproduce the behavior:
@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)
Configuration
Environment (please complete the following information):
Output of
uname -a
orver
: Linux ngm-pc 5.4.0-42-generic Add proper logging #46-Ubuntu SMP Fri Jul 10 00:24:02 UTC 2020 x86_64 x86_64 x86_64 GNU/LinuxOutput of
java -version
: openjdk version "11.0.7" 2020-04-14OpenJDK 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)
GraalVM version (if different from Java):
Quarkus version or git rev: 1.7.0.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
): Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)Additional context
For doing the test I have pushed the code to github and deployed to aws as well
Public URL : https://cuti3ljzn1.execute-api.ap-southeast-1.amazonaws.com/Prod/sample
Github URL: https://github.com/privatejava/test-quarkus-rest-client-jackson
Please run the repository with
mvn clean package -P native
and deploy to AWS for testing.The text was updated successfully, but these errors were encountered: