[keycloak-user] RestEasy NoMessageBodyWriterFoundFailure

Łukasz Dywicki luke at code-house.org
Thu Jun 6 16:08:28 EDT 2019


Dear Frank,
This error comes from JAX-RS implementation and has very little to do
with Keycloak alone. RestEasy can not find a way to serialize output of
method call and reports standard error.
When method declares no content type (has no @Produces annotation), and
that's case for RealmsResource#getProtocol, content type validation
seems to be delayed.

Change your client to use "Accept: application/json" to solve the issue.
The application/signed-exchange is mentioned only once in Keycloak
codebase and I can't find any handler for such content type.

Standard RealmResourceProvider implementations works out the box only
with JSON representations. If your client requests something else then
even if output of method is valid, serialization will fail.

Cheers,
Łukasz
--
Code-House: http://code-house.org

On 04.06.2019 23:28, Frank Herrmann wrote:
> Hello,
> 
> I've recently had to extend some of the functionality of
> RealmsResource.java. I've created my own resource, and, for the most part,
> is working great. However, one of the rest methods calls
> realmsResource.getProtocol(...). This generates a resteasy error that it
> cannot find a message body writer for application/signed-exchange.
> 
> I'm sure I'm probably just missing a dependency in my module.xml. However,
> for the life of me, I can't figure it out. Now, I will admit, my
> Jboss/Wildfly knowledge is limited.
> 
> Any help would be greatly appreciated.
> 
> Thanks,
> 
> -Frank
> 


More information about the keycloak-user mailing list