quarkus-amazon-lambda doesn't work after 2.3.0+
See original GitHub issueDescribe 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:
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:
- Created 2 years ago
- Reactions:3
- Comments:11 (5 by maintainers)
PR should fix things
I’ll check it out.