cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From antoine philippe chaker <philippe.cha...@gmail.com>
Subject Re: WebApplicationException
Date Thu, 24 Nov 2011 12:03:42 GMT
Ok,

Here is my config in my applicationContext file for Json :

<jaxrs:providers>
   <bean class="org.codehaus.jackson.jaxrs.JacksonJsonProvider"/>
</jaxrs:providers>

The json sequence is very big so i have put it in a joined file.



2011/11/24 Sergey Beryozkin <sberyozkin@gmail.com>

> Hi
>
>
> On 24/11/11 10:27, antoine philippe chaker wrote:
>
>> Hi everybody,
>>
>> i use CXF in my webapp to make REST service.
>> In my view i use JQuery to catch my service.
>>
>> Here is my problem :
>> - i have a pojo that i invoke via jquery in json (my object is mapped with
>> JAX-RS annotations) .
>> - when i want to resend the same object unchanged to the server via POST
>> with $.ajax (JQuery)
>> it throws this exception :
>>
>> "-Error deserializing input stream into target class FluxVO (my custom
>> wrapper with JAX-RS), content type : application/json;charset=UTF-8
>> - WebApplicationException has been caught : Unexpected character ('i',
>> (code 105)) : expected a valid value (number, String, array, object,
>> 'true', 'false' or 'null') at
>>
>
> Do you use a default JSONProvider or Jackson ?
> How does a json sequence which causes the problem look like, can you post
> a sample sequence ?
>
> Cheers, Sergey
>
>
>  [Source: org.apache.cxf.transport.http.**AbstractHTTPDestination (...);
>> line:
>> 1, column: 2]"
>>
>> Thx
>>
>>
>>
>


-- 
*CHAKER Antoine Philippe Chekry*
*Ingénieur en Informatique*
*DĂ©veloppeur Java J2EE **,
<http://www.blackbeltfactory.com/ui#!User/aphilippe>WebMaster*
*CNPS - Cote d'Ivoire*
*
*

Mime
View raw message