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

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

Tested from the trunk. Still failing when trying to communicate with 
Cloudwatch. Stacktrace:

Exception in thread "Thread-337" com.amazonaws.AmazonClientException: Unable to 
unmarshall response (Connection not obtained from this manager)
        at 
com.amazonaws.http.AmazonHttpClient.handleResponse(AmazonHttpClient.java:555)
        at 
com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:293)
        at 
com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:165)
        at 
com.amazonaws.services.cloudwatch.AmazonCloudWatchClient.invoke(AmazonCloudWatchClient.java:782)
        at 
com.amazonaws.services.cloudwatch.AmazonCloudWatchClient.putMetricData(AmazonCloudWatchClient.java:310)
Caused by: java.lang.IllegalStateException: Connection not obtained from this 
manager
        at org.apache.http.util.Asserts.check(Asserts.java:34)
        at 
org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager.releaseConnection(ThreadSafeClientConnManager.java:252)
        at 
org.apache.http.impl.conn.AbstractClientConnAdapter.releaseConnection(AbstractClientConnAdapter.java:325)
        at 
org.apache.http.conn.BasicManagedEntity.releaseManagedConnection(BasicManagedEntity.java:191)
        at 
org.apache.http.conn.BasicManagedEntity.eofDetected(BasicManagedEntity.java:145)
        at 
org.apache.http.conn.EofSensorInputStream.checkEOF(EofSensorInputStream.java:199)
        at 
org.apache.http.conn.EofSensorInputStream.read(EofSensorInputStream.java:138)
        at 
com.sun.org.apache.xerces.internal.impl.XMLEntityManager$RewindableInputStream.read(Unknown
 Source)
        at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(Unknown 
Source)
        at 
com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(Unknown Source)
        at 
com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.skipSpaces(Unknown 
Source)
        at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$TrailingMiscDriver.next(Unknown
 Source)
        at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown 
Source)
        at 
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown 
Source)
        at 
com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.next(Unknown Source)
        at com.sun.xml.internal.stream.XMLEventReaderImpl.peek(Unknown Source)
        at 
com.amazonaws.transform.StaxUnmarshallerContext.nextEvent(StaxUnmarshallerContext.java:207)
        at 
com.amazonaws.transform.VoidStaxUnmarshaller.unmarshall(VoidStaxUnmarshaller.java:23)
        at 
com.amazonaws.transform.VoidStaxUnmarshaller.unmarshall(VoidStaxUnmarshaller.java:21)
        at 
com.amazonaws.http.StaxResponseHandler.handle(StaxResponseHandler.java:93)
        at 
com.amazonaws.http.StaxResponseHandler.handle(StaxResponseHandler.java:41)
        at 
com.amazonaws.http.AmazonHttpClient.handleResponse(AmazonHttpClient.java:532)
                
> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to