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

已提问 2 年前330 查看次数
1 回答
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
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则