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 179 forks source link

AWS Lambda function upload failing after updating to JDK1.8.0_271 #220

Open subodhkothadia opened 3 years ago

subodhkothadia commented 3 years ago

Hi,

I am using Eclipse Version: 2020-09 (4.17.0), Build id: 20200910-1200 for my java code. Recently, I am learning AWS Lambda and noticed that it failed to upload project to Lambda when used Eclipse.

I am following the lambda tutorial using Eclipse at "https://docs.aws.amazon.com/toolkit-for-eclipse/v1/user-guide/lambda-tutorial.html ". When I click on "Finsh" button, it throws the exception and shows errors. When I learned from issue 171 @ https://github.com/aws/aws-toolkit-eclipse/issues/171, it doesn't support the version 14. Hence, I changed project settings to JDK 1.8,0_271. However, I am still getting the same error and it shows in session data of exception as eclipse.buildId=4.17.0.I20200902-1800 java.version=14.0.2 java.vendor=Oracle Corporation BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US Framework arguments: -product org.eclipse.epp.package.java.product Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product

I have attached here the screen snaps for perusal. Need help why the issue is occurring Java Compiler set to JDK 1 8 Library Updated to Java SE 1 8 Jar Creation Failure Failed to Upload project to Lambda Environment Variables Java Home and Path set to JDK1 8 0_271 Installed JRE Changed to JDK1 8 in Eclipse Exception Thrown Event After updating Java 1 8

and what I am missing?

MogleyBear06 commented 3 years ago

Hi There,

I'm having the same issue. I'm using Eclipse to upload a Rekognition function but keep getting an error message. According to the Lambda manual it supports Java11, java8.al28, and java8 (1.8.0) but I've tried all of these and none work. Any progress on your end?

Thanks,

Nick

subodhkothadia commented 3 years ago

No luck yet Nick, What I am trying different now is trying with AWS SDK following the tutorial @ https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/get-started.html . Had hiccups in the beginning such as not creating the pom.xml etc. However, I noticed that we need to explicitly set Maven path on Windows if it is downloaded on the folder other than C drive. Still proceeding without eclipse so that I can have at least one app created using the tutorial as I am still learning AWS. If it succeeds, then I will spend time on integrating with Eclipse.

Thanks and Regards, Subodh Kothadia Managing Partner

[image: Inline image 1]SyneLogiX Techno Consultants

Simplify.Digitize.EnvisageMobile: +91 9657710209 / Landline: +91 2025430453 Email: subodh@synelogix.com

On Mon, Dec 14, 2020 at 1:36 AM Nicholas James Ortiz < notifications@github.com> wrote:

Hi There,

I'm having the same issue. I'm using Eclipse to upload a Rekognition function but keep getting an error message. According to the Lambda manual it supports Java11, java8.al28, and java8 (1.8.0) but I've tried all of these and none work. Any progress on your end?

Thanks,

Nick

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/aws/aws-toolkit-eclipse/issues/220#issuecomment-744060919, or unsubscribe https://github.com/notifications/unsubscribe-auth/APMWJ63JLH2QLEM2HGXBMALSUUNC3ANCNFSM4UQF7SHQ .

MogleyBear06 commented 3 years ago

Hi Subodh,

Thanks for getting aback to me. I see. I’m still reviewing the manual and taking notes but I think I’m going to use an alternative such as the one you’re proposing. I’ve been corresponding with an Account Manager and Solutions Architect over the past couple of weeks because AWS is trying to get me to use their products but they haven’t been much help and I’m also very new to all of this so it's been difficult. I’m trying to use Rekognition to detect faces, objects, etc. and eventually move onto custom labels once I’ve got the hang of it. What are you using AWS for?

Thank You,

Nicholas James Ortiz (281) 734-8709 nicholas.james.ortiz@gmail.com

On Dec 14, 2020, at 1:18 AM, Subodh Kothadia notifications@github.com wrote:

No luck yet Nick, What I am trying different now is trying with AWS SDK following the tutorial @ https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/get-started.html . Had hiccups in the beginning such as not creating the pom.xml etc. However, I noticed that we need to explicitly set Maven path on Windows if it is downloaded on the folder other than C drive. Still proceeding without eclipse so that I can have at least one app created using the tutorial as I am still learning AWS. If it succeeds, then I will spend time on integrating with Eclipse.

Thanks and Regards, Subodh Kothadia Managing Partner

[image: Inline image 1]SyneLogiX Techno Consultants

Simplify.Digitize.EnvisageMobile: +91 9657710209 / Landline: +91 2025430453 Email: subodh@synelogix.com

On Mon, Dec 14, 2020 at 1:36 AM Nicholas James Ortiz < notifications@github.com> wrote:

Hi There,

I'm having the same issue. I'm using Eclipse to upload a Rekognition function but keep getting an error message. According to the Lambda manual it supports Java11, java8.al28, and java8 (1.8.0) but I've tried all of these and none work. Any progress on your end?

Thanks,

Nick

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/aws/aws-toolkit-eclipse/issues/220#issuecomment-744060919, or unsubscribe https://github.com/notifications/unsubscribe-auth/APMWJ63JLH2QLEM2HGXBMALSUUNC3ANCNFSM4UQF7SHQ .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/aws/aws-toolkit-eclipse/issues/220#issuecomment-744228783, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKWWIAOXJ4TCXCWQEULM6ILSUW35ZANCNFSM4UQF7SHQ.