java.net.HttpRetryException: cannot retry due to server authentication, in streaming mode
Hmm. A google on that exact string turned up nothing. After some searching around, I got to a solution. It has to do with "chunked transfer encoding", which can be set on HttpURLConnection. In my case, I turned this off in code, by doing this against the CXF API:
FooService service = new FooService();It is the last three lines, that did the trick. It turns off the use of chunking inside HTTPConduit.
Foo port = service.getFoo();
Client client = ClientProxy.getClient(port);
HTTPConduit httpConduit = (HTTPConduit) client.getConduit();
HTTPClientPolicy httpClientPolicy = new HTTPClientPolicy();