Open fafriat opened 3 years ago
Hello, was this issue ever resolved w/ LambdaLogger? Thanks!
Meanwhile there is no fix for the issue, following approach helped me resolve my issue. Append following content to reflect-config.json
file and compile native with -H:ReflectionConfigurationFiles=reflect-config.json
reflect-config.json
:
[
{
"name":"com.amazonaws.services.lambda.runtime.LambdaRuntime",
"fields":[{"name":"logger"}]
},
{
"name":"jdk.internal.module.IllegalAccessLogger"
},
{
"name":"sun.misc.Unsafe",
"fields":[{"name":"theUnsafe"}]
}
]
This is the error I got when running the executable generated from native-image:
./hello-lambda-1.0-SNAPSHOT example.App::sayHello
And effectively AWSLambda code contains this: