baloise / corellia

B2B-interface (Web-API) specification for (insurance) contract data
Apache License 2.0
5 stars 3 forks source link

Fixing MessageBodyWriter issues #46

Closed StephanSST closed 5 years ago

StephanSST commented 5 years ago

Actual Behavior

Calling the Rest Endpoints leads to Resteasy Exceptions like this: Caused by: org.jboss.resteasy.core.NoMessageBodyWriterFoundFailure: Could not find MessageBodyWriter for response object of type: ch.baloise.corellia.api.entities.ErrorResponse of media type: application/octet-stream at org.jboss.resteasy.core.ServerResponseWriter.writeNomapResponse(ServerResponseWriter.java:110) at org.jboss.resteasy.core.SynchronousDispatcher.writeException(SynchronousDispatcher.java:187) ... 56 more

MarkusTiede commented 5 years ago

Background Information: https://download.oracle.com/otn-pub/jcp/jaxrs-2_0-edr2-spec/jaxrs-2_0-edr2-spec.pdf - Page 19 Chapter "3.6 Annotation Inheritance"

image