That exception throw in com.sun.jersey.api.client.ClientResponse
/**
* Close the response.
* <p>
* The entity input stream is closed.
*
* @throws ClientHandlerException if there is an error closing the response.
*/
public void close() throws ClientHandlerException {
try {
entity.close();
} catch (IOException e) {
throw new ClientHandlerException(e);
}
}
The InputStream implementation in Weblogic 12 by this time is weblogic.net.http.KeepAliveStream
The code 204 return No Content then weblogic mark it as not complete downloading the content.
The solution here is use -DUseSunHttpHandler=true when start your weblogic (bin/startWebLogic.cmd)
set JAVA_OPTIONS=%JAVA_OPTIONS% -DUseSunHttpHandler=true
Regards,
Tung