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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠