question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

quarkus-amazon-lambda doesn't work after 2.3.0+

See original GitHub issue

Describe the bug

This is easy to simulate with a fresh quarkus project (I’m using Kotlin but the problem happens on a Java project as well).

To simulate the bug, just create a project with the lambda-rest/lambda-http extension and then try to execute the tests twice (or open the swagger-ui to invoke the greeting endpoint more than once):

mvn io.quarkus.platform:quarkus-maven-plugin:2.4.1.Final:create \
    -DprojectGroupId=com.test \
    -DprojectArtifactId=test-service \
    -DclassName="com.test.GreetingResource" \
    -Dpath="/greeting" \
    -Dextensions="resteasy,kotlin,resteasy-jackson,quarkus-amazon-lambda-rest,quarkus-smallrye-openapi"

When creating the same project, with the same dependenqqcies, but for version 2.2.3 (or less), the problem doesn’t happen.

The following print can describe the problem with more details:

image

An important thing to notice is that if you remove the lambda extension, the application works normally (the same for running with lambda extension but on versions 2.2.3-)

Expected behavior

Creation of quarkus projects for versions 2.3.0+ should work with lambda-rest/lambda-http extensions

Actual behavior

The test runs successfully just for the first time, and also the dev-ui doesn’t work if you try to test the service through swagger or even accessing greeting endpoint directly

How to Reproduce?

Explained above

Output of uname -a or ver

Linux erico-dell 5.4.0-90-generic #101-Ubuntu SMP Fri Oct 15 20:00:55 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

Output of java -version

openjdk version “11.0.11” 2021-04-20 OpenJDK Runtime Environment (build 11.0.11+9-Ubuntu-0ubuntu2.20.04) OpenJDK 64-Bit Server VM (build 11.0.11+9-Ubuntu-0ubuntu2.20.04, mixed mode, sharing)

GraalVM version (if different from Java)

No response

Quarkus version or git rev

No response

Build tool (ie. output of mvnw --version or gradlew --version)

Apache Maven 3.8.1 (05c21c65bdfed0f71a2f2ada8b84da59348c4c5d) Maven home: /home/erico/.m2/wrapper/dists/apache-maven-3.8.1-bin/2l5mhf2pq2clrde7f7qp1rdt5m/apache-maven-3.8.1 Java version: 11.0.11, vendor: Ubuntu, runtime: /usr/lib/jvm/java-11-openjdk-amd64 Default locale: en_US, platform encoding: UTF-8 OS name: “linux”, version: “5.4.0-90-generic”, arch: “amd64”, family: “unix”

Additional information

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
patriot1burkecommented, Nov 10, 2021

PR should fix things

2reactions
patriot1burkecommented, Nov 10, 2021

I’ll check it out.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Amazon Lambda - Quarkus
The quarkus-amazon-lambda extension allows you to bundle multiple lambdas in one project and use configuration or an environment variable to pick the handler ......
Read more >
Writing an Enterprise-Grade AWS Lambda in Java | Baeldung
The Lambda has a different lifecycle from a server application, and it interfaces with the AWS runtime without directly using HTTP. Spring ...
Read more >
Helidon 2.3.0 released! : r/java - Reddit
Helidon is a collection of Java libraries for writing microservices that run on a fast web core powered by Netty.
Read more >
Troubleshoot invocation issues in Lambda
General: Cannot invoke function with other accounts or services. Issue: You can invoke your function directly, but it doesn't run when another service...
Read more >
quarkusio/quarkus 2.5.0.Final on GitHub - NewReleases.io
... neo4j-java-driver from 4.4.0 to 4.4.1; #21353 - Reset vertx-http virtualConnection on shutdown; #21346 - quarkus-amazon-lambda doesn't work after 2.3.0+ ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found