quarkus: Error with HTTP POST using "REST Data with Panache" extension
Describe the bug HTTP POST with results in an error, but GET, PUT, and DELETE work.
Expected behavior HTTP POST should add entity to H2 database.
Actual behavior Error on HTTP POST:
RESTEASY012020: Discovery failed for method org.acme.rest.PersonControllerImpl_772bba7f3925f61a49c0d93159012a40b2de28d6.delete: RESTEASY012005: Cannot guess resource type for service discovery
To Reproduce Reproducer here.
- mvn quarkus:dev
- Run example commands in reproducer README.md
Environment (please complete the following information): java -version output:
openjdk version "11.0.6" 2020-01-14
OpenJDK Runtime Environment GraalVM CE 20.0.0 (build 11.0.6+9-jvmci-20.0-b02)
OpenJDK 64-Bit Server VM GraalVM CE 20.0.0 (build 11.0.6+9-jvmci-20.0-b02, mixed mode, sharing)
Additional context I’m a really nice guy.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 3
- Comments: 28 (15 by maintainers)
Commits related to this issue
- REST Data POST in dev mode fix #9510 — committed to gytis/quarkus by deleted user 4 years ago
- REST Data Panache dev mode fix #9510 — committed to gytis/quarkus by deleted user 4 years ago
- Bump RESTEasy to 4.5.7.Final Fixes: #9510 Fixes: #10133 — committed to geoand/quarkus by geoand 4 years ago
- REST Data Panache dev mode fix #9510 — committed to gytis/quarkus by deleted user 4 years ago
- REST Data Panache dev mode fix #9510 — committed to gytis/quarkus by deleted user 4 years ago
- Merge pull request #10431 from gytis/bug-fix-9510 REST Data Panache dev mode fix #9510 — committed to quarkusio/quarkus by geoand 4 years ago
RESTEasy JIRA ticket https://issues.redhat.com/browse/RESTEASY-2595 and a PR to fix it https://github.com/resteasy/Resteasy/pull/2424
I tried Quarkus
v1.9.0.CR1
. This issue is fully fixed. Thanks guys!To fully fix this we’ll need to merge https://github.com/quarkusio/quarkus/pull/10431 but it depends on the RESTEasy update that @ge0ffrey mentioned.
@lordofthejars I have a fix for it. But unfortunately it needs a change in RESTEasy code, so it might take a while until it trickles down here.
Happened to me as well this in Dev mode. Just in case you need it as well.
https://groups.google.com/forum/#!topic/quarkus-dev/v1ysGv1JWm4