Troubleshooting
The Lambda function is reporting Runtime.InvalidEntrypoint
Symptom
Solution
The boostrap
file has CRLF instead of LF. Convert the line endings, and re-upload the package.
Unable to create Proxy class
Symptom
Solution
When building with GraalVM, the classes are pre-compiled into the executable. In case of interface-based runtime proxies,
79 | GraalVM should know which interfaces will be implemented by the proxy class.
This can be configured via the proxy-config.json
file within META-INF/native-image/...
folder.
Example configuration for the AWS DynamoDB SDK:
ClassNotFoundException during execution
Symptom
Solution
In case of the application using any type of reflection to access a class, GraalVM will not know about it
130 | during AoT compilation. It needs to be told what these classes are in a file called reflect-config.json
within the
131 | META-INF/native-image/...
folder.
Example configuration: