cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sailendranath Kasavajjhula (JIRA)" <>
Subject [jira] [Commented] (CXF-5144) JAX-RS Client Proxy-based API connection leak
Date Tue, 24 Feb 2015 05:30:13 GMT


Sailendranath Kasavajjhula commented on CXF-5144:

I migrated my application from CXF 2.7.7 to CXF 3.0.4. I have set the Bus property ""
to "true". Then, I started getting the below error. The reason being the "entity" is becoming
"null", as part of "ResponseImpl.autoClose()" method. 

I don't get the below exception, if the bus property "" is set to
"false". However, if the bus property "" is set to "false", the
connection may not be reusable as the input stream is not closed.

Could you please suggest, how to proceed.

================================================================================= java.lang.IllegalStateException: Entity is not available
	at org.apache.cxf.jaxrs.client.WebClient.handleResponse(
	at org.apache.cxf.jaxrs.client.WebClient.doResponse(
	at org.apache.cxf.jaxrs.client.WebClient.doChainedInvocation(
	at org.apache.cxf.jaxrs.client.WebClient.doInvoke(
	at org.apache.cxf.jaxrs.client.WebClient.doInvoke(
	at org.apache.cxf.jaxrs.client.WebClient.invoke(
	at org.apache.cxf.jaxrs.client.WebClient.get(
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(
	at java.lang.reflect.Method.invoke(
	at org.testng.internal.MethodInvocationHelper.invokeMethod(
	at org.testng.internal.Invoker.invokeMethod(
	at org.testng.internal.Invoker.invokeTestMethod(
	at org.testng.internal.Invoker.invokeTestMethods(
	at org.testng.internal.TestMethodWorker.invokeTestMethods(
	at org.testng.TestRunner.privateRun(
	at org.testng.SuiteRunner.runTest(
	at org.testng.SuiteRunner.runSequentially(
	at org.testng.SuiteRunner.privateRun(
	at org.testng.SuiteRunnerWorker.runSuite(
	at org.testng.TestNG.runSuitesSequentially(
	at org.testng.TestNG.runSuitesLocally(
	at org.testng.remote.RemoteTestNG.initAndRun(
	at org.testng.remote.RemoteTestNG.main(
Caused by: java.lang.IllegalStateException: Entity is not available
	at org.apache.cxf.jaxrs.impl.ResponseImpl.checkEntityIsClosed(
	at org.apache.cxf.jaxrs.impl.ResponseImpl.getActualEntity(
	at org.apache.cxf.jaxrs.impl.ResponseImpl.getEntity(
	at org.apache.cxf.jaxrs.utils.JAXRSUtils.fromResponse(
	at org.apache.cxf.jaxrs.client.WebClient.handleResponse(
	... 31 more

> JAX-RS Client Proxy-based API connection leak
> ---------------------------------------------
>                 Key: CXF-5144
>                 URL:
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>            Reporter: James Wu
>            Assignee: Sergey Beryozkin
>             Fix For: 2.6.10, 2.7.7, 3.0.0-milestone1
> JAX-RS Client Proxy-based API could not reuse the TCP connection, even though with keep-alive.
The reason is the InputStream did not be closed when the response body had been handled in
ClientProxyImpl.handleResponse(), so do Webclient.handleResponse().

This message was sent by Atlassian JIRA

View raw message