Tests for JAX-RS Client API sample at:
https://github.com/arun-gupta/javaee7-samples/tree/master/jaxrs/jaxrs-client
is failing with:
Caused by: java.lang.IllegalStateException: Invalid use of
BasicClientConnManager: connection still allocated.
Make sure to release the connection before allocating another one.
at
org.apache.http.impl.conn.BasicClientConnectionManager.getConnection(BasicClientConnectionManager.java:161)
at
org.apache.http.impl.conn.BasicClientConnectionManager$1.getConnection(BasicClientConnectionManager.java:138)
at
org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:455)
at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)
at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805)
at
org.jboss.resteasy.client.jaxrs.engines.ApacheHttpClient4Engine.invoke(ApacheHttpClient4Engine.java:245)
... 33 more
The instructions to run the test are described at:
https://github.com/arun-gupta/javaee7-samples
Any suggestions ?
Arun
--
http://blog.arungupta.me
http://twitter.com/arungupta