It looks like you're using the correct Provider so I don't think any 
changes to Resteasy code is the problem.  The Jackson version was bumped 
so this may be the issue.  Might want to see if reverting to older 
version of Jackson included in 2.2.1 does the trick.

On 12/20/11 3:29 PM, Robert Moskal wrote:
> I have a service method that returns a String:
>
> @GET
> @Path("test/for/{user}/stacked")
> String testStackedBarChart(@PathParam("user")String userId,
> @QueryParam("startDate") @DateFormat("yyyy-MM-dd")Date startDate,
> @QueryParam("endDate") @DateFormat("yyyy-MM-dd")Date endDate) ;
>
> When a call it using a ClientRequest like so:
>
> String url = host +
> String.format("test/for/foo/stacked?startDate=%1$s&endDate=%1$s&chunk=MONTH",s);
> ClientRequest request = new ClientRequest(url);
> JSONArray results = request.getTarget(JSONArray.class);
>
> I get an exception.  See following.  This was working fine with 2.2.1.
>   Any ideas?
>
> org.jboss.resteasy.spi.ReaderException:
> org.codehaus.jackson.map.JsonMappingException: Can not deserialize
> instance of org.codehaus.jettison.json.JSONArray out of START_ARRAY token
>
> The json being generated on the server is exactly the same in both cases:
>
> [{"axis":1296450000000,"Probable Migraine":2,"Migraine
> Headache":3,"Tension Headache":1,"Unclassified
> Headache":2},{"axis":1298869200000,"Probable Migraine":2,"Migraine
> Headache":5,"Tension Headache":5,"Unclassified Headache":5}]
>
> Thanks and regards!
>
> Robert
> ___________
> Robert Moskal
> Most Media
> Brooklyn, USA
> 214-799-1268
>
>
> ------------------------------------------------------------------------------
> Write once. Port to many.
> Get the SDK and tools to simplify cross-platform app development. Create
> new or port existing apps to sell to consumers worldwide. Explore the
> Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
> http://p.sf.net/sfu/intel-appdev
>
>
>
> _______________________________________________
> Resteasy-users mailing list
> Resteasy-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/resteasy-users

-- 
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com

------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Resteasy-users mailing list
Resteasy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/resteasy-users

Reply via email to