[cdi-dev] org.jboss.cdi.tck.tests.context.conversation.ClientConversationContextTest#testNonexistentConversationExceptionThrown and exception handling

Romain Manni-Bucau rmannibucau at gmail.com
Fri Jan 2 03:37:25 EST 2015


Cause JSF layer set response code to 500


Romain Manni-Bucau
@rmannibucau
http://www.tomitribe.com
http://rmannibucau.wordpress.com
https://github.com/rmannibucau


2015-01-02 9:15 GMT+01:00 Jozef Hartinger <jharting at redhat.com>:
> If the exception is handled why is then status set to 500?
>
>
> On 12/24/2014 06:57 PM, Romain Manni-Bucau wrote:
>>
>> there is a NonexistentConversationException (sorry dont have the exact
>> name right now). It is what is expected then the outermostfilter write
>> few things in the response but it is "too late" status is 500. All
>> other tests relying on the same thing do the set to avoid the
>> exception but not this one.
>>
>>
>> Romain Manni-Bucau
>> @rmannibucau
>> http://www.tomitribe.com
>> http://rmannibucau.wordpress.com
>> https://github.com/rmannibucau
>>
>>
>> 2014-12-24 18:39 GMT+01:00 John D. Ament <john.d.ament at gmail.com>:
>>>
>>> Why is the http client throwing an exception? AFAIK http client is just
>>> making requests and generating the responding response as string or
>>> otherwise.  html unit is trying to then convert it to a page to process
>>> the
>>> content.
>>>
>>> On Wed Dec 24 2014 at 12:14:15 PM Romain Manni-Bucau
>>> <rmannibucau at gmail.com>
>>> wrote:
>>>>
>>>> Hi
>>>>
>>>> isnt "client.setThrowExceptionOnFailingStatusCode(false);" missing in
>>>>
>>>>
>>>> org.jboss.cdi.tck.tests.context.conversation.ClientConversationContextTest#testNonexistentConversationExceptionThrown?
>>>>
>>>> Cause it expects an exception but by default httpclient will throw an
>>>> exception before any validation is done
>>>>
>>>> what do I miss?
>>>>
>>>> Romain Manni-Bucau
>>>> @rmannibucau
>>>> http://www.tomitribe.com
>>>> http://rmannibucau.wordpress.com
>>>> https://github.com/rmannibucau
>>>> _______________________________________________
>>>> cdi-dev mailing list
>>>> cdi-dev at lists.jboss.org
>>>> https://lists.jboss.org/mailman/listinfo/cdi-dev
>>>>
>>>> Note that for all code provided on this list, the provider licenses the
>>>> code under the Apache License, Version 2
>>>> (http://www.apache.org/licenses/LICENSE-2.0.html). For all other ideas
>>>> provided on this list, the provider waives all patent and other
>>>> intellectual
>>>> property rights inherent in such information.
>>
>> _______________________________________________
>> cdi-dev mailing list
>> cdi-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/cdi-dev
>>
>> Note that for all code provided on this list, the provider licenses the
>> code under the Apache License, Version 2
>> (http://www.apache.org/licenses/LICENSE-2.0.html). For all other ideas
>> provided on this list, the provider waives all patent and other intellectual
>> property rights inherent in such information.
>
>


More information about the cdi-dev mailing list