Hi. I'm using a CXF JAX-RS 3.0.7 client proxy against a Jersey 2.19 JAX-RS endpoint. The client uses the interface from the server in proxy-mode. It is also configured to use the async http conduit. One of the REST endpoints returns an InputStream in the @GET method signature.
The client performs CRUD operations using 10 files with a payload of 10KB in a testcase. This testcase is executed 1000 times using 50 threads concurrently. The CXF client is created in the testcase, once per testcase execution, by using the JAXRSClientFactoryBean with a shared Bus. Now, from time to time it happens, that the CXF client proxy, invoking the GET method, gets an InputStream that is empty. The weird thing is, that it is very hard to reproduce and needs multiple executions of the load testcase to occur. Normally it takes 1-5 executions before the error occurs. I'm wondering where that comes from. I've already verified, that the server sends the right amount of bytes to the client. But somehow the client doesn't seem to get them. I've isolated the error in a separate testcase to show the problem. If anyone is interested, I can provide the test project. Thanks Veit
