users@jersey.java.net

Re: [Jersey] ClientHandlerException: Message body reader not found

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Fri, 21 Aug 2009 11:07:41 +0200

On Aug 21, 2009, at 10:43 AM, James Adams wrote:

>
> I'm having trouble in a client class method when I make a
> WebResource.Builder().get() call:
>
> com.sun.jersey.api.client.ClientHandlerException: A message body
> reader for
> Java type, class com.mycom.myapp.api.models.MyModel, and MIME media
> type,
> application/xml, was not found
>

Can you send me the source for MyModel?

I want to ascertain if the type is a JAXB class annotated with an
@XmlType for @XmlElement.

Paul.


> I have tried remedying the problem by adding the Fast Infoset provider
> classes to the ClientConfig in the client's constructor but
> apparently this
> isn't a fix for the problem. Can anyone suggest where else I might
> look for
> the problem and/or what else I might try to fix it?
>
> I'm using Jersey version 1.0.3. Thanks in advance for any
> suggestions, etc.
>
> --James
> --
> View this message in context: http://n2.nabble.com/ClientHandlerException-Message-body-reader-not-found-tp3486996p3486996.html
> Sent from the Jersey mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>