users@jersey.java.net

[Jersey] Re: Jersey Client question...

From: Pavel Bucek <pavel.bucek_at_oracle.com>
Date: Wed, 21 Mar 2012 11:14:32 +0100

Hello,

can you please include reported error?

Thanks,
Pavel

On 3/21/12 10:13 AM, matrix wrote:
> Hi,
>
> I am also running into the same problem. Even though the class I used for
> webresource.get() method is created from an xsd using xjc, I am not able to
> retrieve the value as the class itself. But the following works fine:
>
> *System.out.println(r.accept("application/xml").get(String.class)); *
>
> Actually prints the xml into output stream, when
>
> *MyJaxBGeneratedClass a =
> r.accept("application/xml").get(MyJaxBGeneratedClass.class);*
>
> Throws up the error as pointed out by Kevin
>
> --
> View this message in context: http://jersey.576304.n2.nabble.com/Jersey-Client-question-tp742181p7391707.html
> Sent from the Jersey mailing list archive at Nabble.com.
>