hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Clinton Nielsen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HTTPCLIENT-1313) IllegalStateException when using AWS SDK
Date Fri, 01 Feb 2013 20:52:12 GMT

    [ https://issues.apache.org/jira/browse/HTTPCLIENT-1313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13569068#comment-13569068
] 

Clinton Nielsen commented on HTTPCLIENT-1313:
---------------------------------------------

I checked the source of org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager.releaseConnection
in 4.2.x against the trunk.

4.2.x:
  if ((hca.getPoolEntry() != null) && (hca.getManager() != this)) {
    throw new IllegalArgumentException ("Connection not obtained from this manager.");
  }

trunk:
  Asserts.check(hca.getPoolEntry() == null, "Connection not obtained from this manager");
  Asserts.check(hca.getManager() == this, "Connection not obtained from this manager");

The two are not logically equivalent. When I changed the trunk to the following, everything
worked:

  Asserts.check((hca.getPoolEntry() == null) || (hca.getManager() == this), "Conection not
obtained from this manager");

                
> IllegalStateException when using AWS SDK
> ----------------------------------------
>
>                 Key: HTTPCLIENT-1313
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1313
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpClient
>    Affects Versions: 4.3 Alpha1
>            Reporter: Clinton Nielsen
>             Fix For: 4.3 Alpha2
>
>
> As noted on the AWS developer forum here: https://forums.aws.amazon.com/message.jspa?messageID=417487,
an IllegalStateException occurs when attempting to connect to AWS while using 4.3-alpha1
> I stepped through the code, and found that the failure occurs at line 132 in the open(...)
function in org.apache.http.impl.conn.AbstractPoolEntry.
>     Asserts.notNull(this.tracker, "Route tracker");   <== FAILS | this.tracker is
null
> Commenting lines 132 and 133 made the problem go away (ie, I was able to communicate
succesfully with AWS, with no errors or warnings), though I've done no research into what
a proper fix might be.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Mime
View raw message