From: Bill B. <bb...@re...> - 2011-02-15 15:35:00
|
Greg, I can't reproduce this problem. See attached test. Its gotta be something with your environment. On 2/14/11 12:53 PM, Totsline, Greg wrote: > Hi Jesse – > > My client is doing factory registration as you have it below (and per > the RESTEasy documentation), but I am still seeing the runtime exception. > > Thanks. > > -greg > > *From:*Jesse Hutton [mailto:jes...@gm...] > *Sent:* Monday, February 14, 2011 12:53 PM > *To:* Totsline, Greg > *Cc:* res...@li... > *Subject:* Re: [Resteasy-developers] EXTERNAL: Re: Getting runtime > exception: could not find writer for content-type text/xml > > Hi Greg, > > You may just need to register the built-in providers, with > > ResteasyProviderFactory instance = ResteasyProviderFactory.getInstance(); > > RegisterBuiltin.register(instance); > > Jesse > > On Mon, Feb 14, 2011 at 12:05 PM, Totsline, Greg <gre...@lm... > <mailto:gre...@lm...>> wrote: > > To clarify, invocation of the call to post() (below) results in the > runtime exception that is occurring when > ClientRequest#writeRequestBody() is ultimately invoked. > > > -----Original Message----- > From: Totsline, Greg > Sent: Monday, February 14, 2011 11:29 AM > To: 'Bill Burke'; res...@li... > <mailto:res...@li...> > Subject: RE: EXTERNAL: Re: [Resteasy-developers] Getting runtime > exception: could not find writer for content-type text/xml > > > My test client is using the RESTEasy client proxy framework and defines > a client interface with JAX-RS annotations for a post: > > public interface TestClient > @POST > @Path("somepath") > @Consumes("text/xml") > public void post(String body) > { } > > It's invoked as follows: > > ... > TestClient client = ProxyFactory.create(TestClient.class, serverURI); > client.post(message) > > .... > > The "could not find writer for content-type text/xml type: ..." > RuntimeException is occurring on the call to post(). I cannot send a > stack trace because the code is on a closed system (no external network > connection). > > Thanks. > > -greg > > -----Original Message----- > From: Bill Burke [mailto:bb...@re... <mailto:bb...@re...>] > Sent: Sunday, February 13, 2011 10:38 AM > To: res...@li... > <mailto:res...@li...> > Subject: EXTERNAL: Re: [Resteasy-developers] Getting runtime exception: > could not find writer for content-type text/xml > > need more info. > > On 2/11/11 6:10 PM, Totsline, Greg wrote: > > Hi - > > I am developing a simple client using RESTEasy (my 1^st attempt at using > > RESTEasy for client); each time I attempt to invoke it I get the subject > > exception. I have added the jaxb provider to my POM, and tried using > > @XmlSeeAlso on the client interface definition, but still no luck. Any > > help would be greatly appreciated. > > Thanks. > > -greg > > > > > > > > > ------------------------------------------------------------------------------ > > The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: > > Pinpoint memory and threading errors before they happen. > > Find and fix more than 250 security defects in the development cycle. > > Locate bottlenecks in serial and parallel code that limit performance. > > http://p.sf.net/sfu/intel-dev2devfeb > > > > > > > > _______________________________________________ > > Resteasy-developers mailing list > > Res...@li... > <mailto:Res...@li...> > > https://lists.sourceforge.net/lists/listinfo/resteasy-developers > > -- > Bill Burke > JBoss, a division of Red Hat > http://bill.burkecentral.com > > > ------------------------------------------------------------------------------ > The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: > Pinpoint memory and threading errors before they happen. > Find and fix more than 250 security defects in the development cycle. > Locate bottlenecks in serial and parallel code that limit performance. > http://p.sf.net/sfu/intel-dev2devfeb > _______________________________________________ > Resteasy-developers mailing list > Res...@li... > <mailto:Res...@li...> > https://lists.sourceforge.net/lists/listinfo/resteasy-developers > > ------------------------------------------------------------------------------ > The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: > Pinpoint memory and threading errors before they happen. > Find and fix more than 250 security defects in the development cycle. > Locate bottlenecks in serial and parallel code that limit performance. > http://p.sf.net/sfu/intel-dev2devfeb > _______________________________________________ > Resteasy-developers mailing list > Res...@li... > <mailto:Res...@li...> > https://lists.sourceforge.net/lists/listinfo/resteasy-developers > > > > ------------------------------------------------------------------------------ > The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: > Pinpoint memory and threading errors before they happen. > Find and fix more than 250 security defects in the development cycle. > Locate bottlenecks in serial and parallel code that limit performance. > http://p.sf.net/sfu/intel-dev2devfeb > > > > _______________________________________________ > Resteasy-developers mailing list > Res...@li... > https://lists.sourceforge.net/lists/listinfo/resteasy-developers -- Bill Burke JBoss, a division of Red Hat http://bill.burkecentral.com |