users@jersey.java.net

Re: [Jersey] Thread waits indefinitely using Apache HTTP based Jersey Client[WAS]Re: Problem switching to ApacheHttpClient in Jersey 1.0.2

From: Imran M Yousuf <imran_at_smartitengineering.com>
Date: Tue, 24 Feb 2009 09:19:33 +0600

On Mon, Feb 23, 2009 at 8:57 PM, Paul Sandoz <Paul.Sandoz_at_sun.com> wrote:
>
> On Feb 23, 2009, at 12:53 PM, Paul Sandoz wrote:
>
>> Hi Imran,
>>
>> Drat. Are you also catching UniformInterfaceException?
>>

Yes and thats where the problem lied :). I checked the discussion and
it seemed logical :). Thanks a lot.

Best regards,

Imran

>> I am guessing you might need to because i see:
>>
>> try {
>> final Builder type =
>> -
>> webResource.path("pub-house").type("application/xml");
>> +
>> getWebResource().path("pub-house").type("application/xml");
>> type.post(houseElement);
>> fail("Should not succeed!"); <------
>> } catch (Exception ex) { <----- Need to catch
>> UniformInterfaceException ?
>>
>>
>> In that case you currently have to explicitly call close on the
>> ClientResponse obtained from UniformInterfaceException.
>>
>> Note that there is another issue [1] open related to this. In such cases
>> we need to buffer the response entity if such exceptions are thrown to avoid
>> the thread locking issue.
>>
>
> I have fixed issue 224 in the trunk.
>
> Paul.
>
>> Paul.
>>
>> [1] https://jersey.dev.java.net/issues/show_bug.cgi?id=224
>>
>> On Feb 23, 2009, at 11:28 AM, Imran M Yousuf wrote:
>>
>>> On Fri, Feb 20, 2009 at 4:54 PM, Paul Sandoz <Paul.Sandoz_at_sun.com> wrote:
>>>>
>>>> On Feb 20, 2009, at 11:44 AM, Imran M Yousuf wrote:
>>>>
>>>>> On Fri, Feb 20, 2009 at 3:19 PM, Paul Sandoz <Paul.Sandoz_at_sun.com>
>>>>> wrote:
>>>>>>
>>>>>> <snip />
>>>>>
>>>>> Thanks for the documentation. I had a question regarding this, when
>>>>> can I expect the SNAPSHOT to be available for testing?
>>>>>
>>>>
>>>> Now, it is continuously built. Usually, if all goes well and there are
>>>> no
>>>> test failures or networking issues, Hudson pushes out new artifacts
>>>> about 1
>>>> to 2 hours after a commit.
>>>>
>>>
>>> Great to learn about the build process. I have upgraded to
>>> 1.0.3-SNAPSHOT but the error still remains. Please find the diffs and
>>> thread dump in the attached files.
>>>
>>> Best regards,
>>>
>>> Imran
>>>
>>>> You can see results here:
>>>>
>>>> http://hudson.glassfish.org/job/Jersey/
>>>>
>>>> Paul.
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
>>>> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> Imran M Yousuf
>>> Entrepreneur & Software Engineer
>>> Smart IT Engineering
>>> Dhaka, Bangladesh
>>> Email: imran_at_smartitengineering.com
>>> Blog: http://imyousuf-tech.blogs.smartitengineering.com/
>>> Mobile: +880-1711402557
>>>
>>> <dump.txt><0001-Change-to-apache-http-based-jersey-client.patch><0002-Test-freezes.patch><0003-Update-test-version-to-SNAPSHOT-version-of-Jersey.patch>---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
>>> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
>> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>
>



-- 
Imran M Yousuf
Entrepreneur & Software Engineer
Smart IT Engineering
Dhaka, Bangladesh
Email: imran_at_smartitengineering.com
Blog: http://imyousuf-tech.blogs.smartitengineering.com/
Mobile: +880-1711402557