Skip to content
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

NoSuchMethodError: createJsonParser(com.fasterxml.jackson.core.JsonFactory, io.micronaut.core.io.buffer.ByteBuffer) in aws Lambda #11276

Open
gabetrau opened this issue Oct 25, 2024 · 0 comments

Comments

@gabetrau
Copy link

Expected Behavior

When I use the injected JsonMapper that comes default with a new "Function Application for Serverless" with graalvm and aws-lambda, jsonMapper.readValue function should work.

Actual Behaviour

Whenever I try to use the .readValue() method for my function it throws this following error

image

Steps To Reproduce

  1. Create a project with the following features
    image
  2. Create a class that is introspected, serdeable.
  3. call objectMapper.readValue and try to read the request body. ex below
    image
  4. ./mvnw package -Dpackaging=docker-native -Dmicronaut.runtime=lambda -Pgraalvm
  5. Upload function.zip to S3 Lambda and test with something like the following
    image
    replace body with what will match the class you created

Environment Information

graalvm-ce 2

Example Application

No response

Version

4.6.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant