--  
Weinan Li
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)


On Friday, February 22, 2013 at 12:42 AM, Nuwan Bandara wrote:

> Hi,
>  
> I am getting this error when I try to call one of the webservice in remote 
> stateless session bean. I use JUnit to call the webservice.
>  
> org.jboss.resteasy.client.ClientResponseFailure: Unable to find a 
> MessageBodyReader of content-type text/html;charset="utf-8" and type 
> java.util.List<com.questdiagnostics.nichpro.assayruleengine.model.AnalyteResult>
>   
>  

It's 
resteasy-jaxrs/src/main/java/org/jboss/resteasy/client/core/BaseClientResponse.java
 that throws this error:

   protected <T2> Object readFrom(Class<T2> type, Type genericType,
                                  MediaType media, Annotation[] annotations)

…
      MessageBodyReader reader1 = providerFactory.getMessageBodyReader(useType,
              useGeneric, this.annotations, media);
      if (reader1 == null)
      {
         throw createResponseFailure(format(
                 "Unable to find a MessageBodyReader of content-type %s and 
type %s",
                 media, genericType));
      }

…

The error message is straight forward, the MessageBodyReader could not be found 
for your content-type and type. Not sure it's a configuration problem or 
resteasy bug. I'll try to build some local test cases and tell you my findings.
  
>  
> What could be the problem?
>  
> Thanks,
> Nuwan
>  
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_feb
>  
> _______________________________________________
> Resteasy-users mailing list
> Resteasy-users@lists.sourceforge.net 
> (mailto:Resteasy-users@lists.sourceforge.net)
> https://lists.sourceforge.net/lists/listinfo/resteasy-users
>  
>  


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Resteasy-users mailing list
Resteasy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/resteasy-users

Reply via email to