an internal error occurred during: uploading code to lambda

Question:

This exception is thrown while uploading code to lambda. I tried but no where found the solution.

Answer:

Make sure Eclipse is running with Java 8. AWS Toolkit requires JAXB for the upload to AWS S3, but JAXB was deprecated in Java 9 & 10, and removed from Java 11. If you’re running Eclipse under Java 9, 10, or 11, Eclipse/AWS Toolkit won’t find JAXB and you’ll get this error.

You can resolve the problem by specifying the JVM Eclipse should use on startup. Instructions for various platforms found here: https://wiki.eclipse.org/Eclipse.ini

Leave a Reply