aws / aws-lambda-base-images

Apache License 2.0
669 stars 109 forks source link

Latest public.ecr.aws/lambda/java:11 aws-lambda-java-serialization-0.2.0.jar jackson packages not relocated. #119

Closed treyfarmigoni closed 11 months ago

treyfarmigoni commented 11 months ago

The jar located in /var/runtime/lib/aws-lambda-java-serialization-0.2.0.jar seems to have changed from previous versions.

The old package layout from a previous container version is below (everything is relocated under com.amazonaws.lambda.thirdparty... ) Screenshot 2023-10-19 at 9 15 57 AM

However, with the latest jar, it seems that some of the jackson packages are no longer relocated, causing the real version to never be loaded. Screenshot 2023-10-19 at 9 16 12 AM

This eventually causes issues when performing jackson serialization such as: Screenshot 2023-10-19 at 9 20 18 AM

GustafNi commented 11 months ago

Had this issue as well. They seem to have pushed new base image to docker, so new image builds work. I was using the public.ecr.aws/lambda/java:17 .

smirnoal commented 11 months ago

right, new images with the fix have been published. Thanks for your patience