aws-toolkit-eclipse icon indicating copy to clipboard operation
aws-toolkit-eclipse copied to clipboard

Elipse: Failed to launch SAM during debug

Open gvallangca opened this issue 4 years ago • 4 comments

To whom it may concern,

I'm running AWS SAM local in Eclipse(Windows 10) through debug mode and it's always throwing a pop-up exception. Please see the captured stack trace below:

com.amazonaws.eclipse.core.exceptions.AwsActionException: Cannot invoke "org.eclipse.ui.console.IOConsole.newOutputStream()" because "samLocalConsole" is null at com.amazonaws.eclipse.lambda.launching.SamLocalDelegate.launch(SamLocalDelegate.java:159) at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:862) at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:720) at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1029) at org.eclipse.debug.internal.ui.DebugUIPlugin$2.run(DebugUIPlugin.java:1243) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63) Caused by: java.lang.NullPointerException: Cannot invoke "org.eclipse.ui.console.IOConsole.newOutputStream()" because "samLocalConsole" is null at com.amazonaws.eclipse.lambda.launching.SamLocalDelegate.launch(SamLocalDelegate.java:116) ... 5 more

gvallangca avatar Aug 05 '21 05:08 gvallangca

I had used 3 different versions(2019, 2020, 2021) of Eclipse and all of them throws the same error as mentioned above.

gvallangca avatar Aug 05 '21 05:08 gvallangca

I'm having the same issue when trying to spinoff a aws ec2 instance from a eclipse java project using aws sdk. Does anyone have a solution for this issue?

image

arambhat avatar Jan 18 '22 23:01 arambhat

I have the same issue.

steowens avatar Sep 21 '22 17:09 steowens

+1

tgpadua avatar Oct 07 '22 02:10 tgpadua