aws/aws-toolkit-eclipse

Deploy Serverless Project hangs indefinitely at 10% progress

Sps-Ray opened this issue · 1 comments

This problem was reported here, and I have the same problem: https://stackoverflow.com/questions/69608139/awstoolkit-for-eclipse-deploy-serverless-project-hangs-at-10.

I am simply trying the simplest of Java Lambda deployment, i.e. the HelloServerless project. I've tried both Windows and Ubuntu environments. Both have exactly the same outcome. Running "Deploy Serverless Project ..." hangs at 10% progress, and the progress info says: "Deploying Serverless template to AWS CloudFormation.: Uploading Lambda function to S3 ..."

My Windows environment is:

  • Windows 10 Pro version 21H2 on Intel(R) Core(TM) i5-6200U CPU
  • Eclipse IDE for Enterprise Java and Web Developers Version: 2022-03 (4.23.0)
  • Eclipse AWS Toolkit 1.0.0.v201807201743
  • Eclipse AWS Tookit for Eclipse Core 2.3.1.v201807201743
  • HelloServerless project built using Amazon Corretto jdk1.8.0_332
  • Looks like Eclipse itself is running on java.version=17.0.2. For example, when it's trying to export the serversless Lambda, this is what the Eclipse error log message reports as session data:
    Project exported to C:\xxxxx\HelloServerless-lambda7271465995582513869.zip
    eclipse.buildId=4.23.0.I20220308-0310
    java.version=17.0.2
    java.vendor=Eclipse Adoptium
    BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_GB
    Framework arguments: -product org.eclipse.epp.package.jee.product
    Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product

My Ubuntu environment is:

  • Virtualbox 6.1.34 in the above Windows OS
  • Ubuntu 22.04 with latest updates
  • Eclipse AWS Toolkit 1.0.0.v201807201743
  • Eclipse AWS Tookit for Eclipse Core 2.3.1.v201807201743
  • HelloServerless project built using OpenJDK 1.8.0_312

I'm not sure this is related, but although AWS Explorer seems to work, in that clicking on "Amazon S3" correctly lists my S3 buckets, likewise when I explore with "Amazon EC2". However, when I try to upload a file to S3 by dragging and dropping a simple, small text file on the selected S3 bucket tab, I get the following failure:

"Error uploading README.html: Unable to complete transfer: javax/xml/bind/JAXBException"

I just tried a fresh install of Eclipse Java EE IDE for Web Developers, Version: Oxygen.2 Release (4.7.2), Build id: 20171218-0600 and I was able to build and run "Deploy Serverless Project ..." successfully in the same Windows environment as above. The problem seems to be related to the latest Eclipse release.