I have it fixed on the trunk so if for whatever reasons the providers have
been proxified then it will still work as expected
cheers, Sergey
Sergey Beryozkin-2 wrote:
>
> Hi Xavier
>
> I was about to start looking into it....(and in to some other open user
> queries).
> Thanks a lot for helping me - I'd spend a lot of time on it trying to
> reproduce the issue otherwise :-)...
>
>>
>> Hello Sergey,
>>
>> Well, as I wanted to help you identify the problem this morning, I
>> quickly
>> setup up a sample project with 1 service bean that throws CustomException
>> or
>> CustomRuntimeException for a given {id}.
>> I added ExceptionMappers for those 2 custom exceptions, tested the whole
>> application (quickly, with my browser), and found that it worked!
>>
>> Step by step, I removed layers of my webapp (based on CXF + Spring +
>> Hibernate) and finally identified that the problem was in the AOP aspects
>> a
>> team member had configured in a sub module...
>> The tx aspects weaved almost every beans, including my jaxrs service bean
>> :-(
>>
>> I guess there must have been some kind of confusion between the CXF bus
>> and
>> the AOP proxy when an exception was thrown...
>
> Hmm... I'll look into it. It is probably not a bug that a CXF does not
> recognize an AOP-weaved ExceptionMapper - but may be it
> should - I'll see if I can enhance the providers registraion code a bit...
>
> thanks, Sergey
>
>>
>> Sorry if you lost some time trying to figure out what the problem was and
>> thank you very much for this great product !
>>
>> Regards
>> Xavier
>>
>>
>>
>>
>>
>>
>> Xavier wrote:
>>>
>>> Hello Sergey,
>>>
>>> Thank you for your reply.
>>> I tried both cases before posting this message and i both cases, I did
>>> not
>>> reach any breakpoint (in debug mode) I had put in my ExceptionMappers
>>>
>>>
>>> Regards,
>>> Xavier
>>>
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/-JAXRS--ExceptionMappers-not-called-tp25136326p25149135.html
>> Sent from the cxf-user mailing list archive at Nabble.com.
>>
>
>
>
--
View this message in context:
http://www.nabble.com/-JAXRS--ExceptionMappers-not-called-tp25136326p25151444.html
Sent from the cxf-user mailing list archive at Nabble.com.