1 Resposta
- Mais recentes
- Mais votos
- Mais comentários
-1
If this is happening with Graalvm Java 17, try Graalvm Java 21. Also, try switching the Java versions in the Lambda to match this.
respondido há 3 meses
Conteúdo relevante
- Como soluciono os erros "ClassNotFoundException" e "NoSuchMethodError" de uma função Java do Lambda?AWS OFICIALAtualizada há 2 anos
- AWS OFICIALAtualizada há 3 anos
- AWS OFICIALAtualizada há um ano
- AWS OFICIALAtualizada há 2 anos
I am not sure that helps. After a bit of digging, this error could mean the deployed image is built with newer version of CPU architecture (with new CPU instructions); and I believe the issue is the lambda is deployed with old CPU architecture which does not have these instruction support.
Ref: https://github.com/quarkusio/quarkus/wiki/Migration-Guide-3.2#native-compilation---work-around-missing-cpu-features
I recon' the fix is to apply "-march=compatibility" option, instruct Graalvm to compile image with backwards-compatibility