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

gefragt vor 2 Jahren330 Aufrufe
1 Antwort
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
beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen