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

Most upvoted comments

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