Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-16475

(7.2.z) Rest Client fails to convert a single boolean value

XMLWordPrintable

      javax.ws.rs.core.Response.readEntity(Class<T>) fails to convert a single boolean value, i.e. with Boolean.class as argument.

      [MESSAGE: failed] javax.ws.rs.ProcessingException: RESTEASY008200: JSON Binding deserialization error
      at org.jboss.resteasy.plugins.providers.jsonb.JsonBindingProvider.readFrom(JsonBindingProvider.java:88)
      at org.jboss.resteasy.core.interception.AbstractReaderInterceptorContext.readFrom(AbstractReaderInterceptorContext.java:66)
      at org.jboss.resteasy.core.interception.AbstractReaderInterceptorContext.proceed(AbstractReaderInterceptorContext.java:56)
      at org.jboss.resteasy.security.doseta.DigitalVerificationInterceptor.aroundReadFrom(DigitalVerificationInterceptor.java:36)
      at org.jboss.resteasy.core.interception.AbstractReaderInterceptorContext.proceed(AbstractReaderInterceptorContext.java:59)
      at org.jboss.resteasy.client.jaxrs.internal.ClientResponse.readFrom(ClientResponse.java:334)
      at org.jboss.resteasy.client.jaxrs.internal.ClientResponse.readEntity(ClientResponse.java:261)
      at org.jboss.resteasy.specimpl.BuiltResponse.readEntity(BuiltResponse.java:237)

      I think it cased by this issue https://github.com/eclipse-ee4j/yasson/issues/188, which I guess will be fixed in version org.eclipse:yasson:1.0.4

      If I exclude org.jboss.resteasy.resteasy-json-binding-provider it works.

           <exclusions>
                  <module name="org.jboss.resteasy.resteasy-json-binding-provider" />
           </exclusions>
      

            thofman Tomas Hofman
            andermaj_jira Mattias Andersson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: