cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergey Beryozkin <sberyoz...@gmail.com>
Subject Re: CXF 3.21 and bean validation
Date Thu, 30 Nov 2017 14:31:07 GMT
Can you please debug ?

Sergey
On 30/11/17 14:08, Sergey Beryozkin wrote:
> I'm sorry but I don't have time for dealing with some indirect 
> assumptions that ValidationExceptionMapper which is typed with
> toResponse(ValidationException) somehow accepts your custom
> NotAcceptableException.
> 
> Unless it is an instance of ValidationException ?
> On 30/11/17 14:02, nino martinez wael wrote:
>> When my app throws:
>>
>> throw new NotAcceptableException("Client tried with wrong format <" +
>> orgImportRecord.toString() + ">");
>>
>>
>> the client gets an 500.. looking in the log I can see that the
>> ValidationExceptionMapper is "responsible"..
>>
>>
>> I can come with an more complete example. if you want?
>>
>>
>>
>> On Thu, Nov 30, 2017 at 2:27 PM, Sergey Beryozkin <sberyozkin@gmail.com>
>> wrote:
>>
>>> How did you come to this conclusion ?
>>>
>>> Sergey
>>> On 30/11/17 13:22, nino martinez wael wrote:
>>>
>>>> Hi
>>>>
>>>> Is it possible to use both
>>>>
>>>> org.apache.cxf.jaxrs.impl.WebApplicationExceptionMapper
>>>>
>>>> And
>>>>
>>>> org.apache.cxf.jaxrs.validation.JAXRSBeanValidationFeature/o
>>>> rg.apache.cxf.jaxrs.validation.ValidationExceptionMapper
>>>>
>>>> together.. Currently is seems the ValidationExceptionMapper are
>>>> catching my NotAcceptableException etc and coughing up 500's
>>>>
>>>>
>>>>
>>>
>>> -- 
>>> Sergey Beryozkin
>>>
>>> Talend Community Coders
>>> http://coders.talend.com/
>>>
>>
>>
>>
> 
> 


-- 
Sergey Beryozkin

Talend Community Coders
http://coders.talend.com/

Mime
View raw message