holy-lambda

willier 2022-04-18T02:18:54.370239Z

Hi, I am new to holy-lambda/graalvm and got a basic hello-world native lambda working. Now I have added aws-api with dynamodb to it and during the bb hl:native:executable phase, I get the following error:

Error: Classes that should be initialized at run time got initialized during image building:
 jdk.xml.internal.SecuritySupport was unintentionally initialized at build time. To see why jdk.xml.internal.SecuritySupport got initialized use --trace-class-initialization=jdk.xml.internal.SecuritySupport

Karol Wójcik 2022-04-18T07:57:50.808449Z

Just add this class to —initialize-at-build-time. For GraalVM issues it’s easier to get help on #graalvm channel.

Karol Wójcik 2022-04-18T08:05:06.705949Z

The rule of thumb is whenever you see this error just add the class listen in the error to —initialize-at-build-time. See: https://github.com/FieryCod/holy-lambda/tree/master/examples/bb/native/cognitect.aws.api bb.edn file :native-image-args.

❤️ 1
willier 2022-04-18T09:18:34.715969Z

Awesome, that works! I was flipping between that document and this https://fierycod.github.io/holy-lambda/#/native-backend and missed overlooked step #7

👍 1
willier 2022-04-18T09:19:41.791729Z

Also, I must say the whole process is very smooth so kudos for that!