Eclipse Debug: Failed to launch SAM Local

0

Which specific version of Eclipse should be used to debug API Gateway and lambda locally. The code is developed using AWS SAM in Java11.

I tried many different version of Eclipse

  1. Luna dosent support Java11
  2. Following error for "Eclipse IDE for Enterprise Java and Web Developers - 2022-06"
  3. Error for "Sping Tool Suites 4"
  4. Same error for other multiple Eclipse versions

Sam local executed path provided in Eclipse: C:\Program Files\Amazon\AWSSAMCLI\runtime\Scripts\sam.exe SAM is installed on above path (version 1.53.0)

Every time getting "Failed to launch SAM Local." With error :

com.amazonaws.eclipse.core.exceptions.AwsActionException
	at com.amazonaws.eclipse.lambda.launching.SamLocalDelegate.launch(SamLocalDelegate.java:159)
	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:803)
	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:716)
	at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1021)
	at org.eclipse.debug.internal.ui.DebugUIPlugin$2.run(DebugUIPlugin.java:1224)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Caused by: java.lang.NullPointerException
	at com.amazonaws.eclipse.lambda.launching.SamLocalDelegate.launch(SamLocalDelegate.java:116)
	... 5 more

asked 2 years ago324 views
1 Answer
0

A workaround is to use IntelliJ with the AWS Toolkit plugin for JetBrains:

https://plugins.jetbrains.com/plugin/11349-aws-toolkit
https://github.com/aws/aws-toolkit-jetbrains
AWS
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions