aws / aws-toolkit-eclipse

(End of life: May 31, 2023) AWS Toolkit for Eclipse
http://aws.amazon.com/eclipse
Apache License 2.0
275 stars 178 forks source link

Elipse: Failed to launch SAM during debug #236

Open gvallangca opened 3 years ago

gvallangca commented 3 years ago

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 commented 3 years ago

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

arambhat commented 2 years ago

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

steowens commented 2 years ago

I have the same issue.

tgpadua commented 1 year ago

+1