Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

An internal error occurred during: "Uploading function code to Lambda" javax/xml/bind/JAXBException

When I try to upload a Lambda to AWS I get the following error

An internal error occurred during:

"Uploading function code to Lambda" javax/xml/bind/JAXBException

Later versions of Eclipse use the Java 11 runtime, which removed this class among many others. However, I am sure now that Java 17 has been released, that this has been fixed in later versions of AWS.

like image 727
Tony Avatar asked Apr 13 '26 20:04

Tony


1 Answers

Looks like you are encountering a tool issue while trying to directly upload code from Eclipse to AWS. This is not unnecessary.

You can instead use the Java runtime Lambda API within a Maven project, that works fine. That is, build the Lambda function using Maven, package the project into a JAR file, and then upload the Lambda function using the AWS Management Console.

Here is an example that builds a Lambda function that invokes several AWS services and will show you how to successfully build and deploy the AWS Lambda function (without using a tool).

This Lambda function detects PPE information (using Amazon Rekognition) in images located in an Amazon S3 bucket. See this example that is located in the Amazon Rekognition DEV Guide.

Detect PPE in images with Amazon Rekognition using an AWS SDK

like image 141
smac2020 Avatar answered Apr 16 '26 10:04

smac2020



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!