We have two servers A and B. Server A is holding the servlet application to download the pdf files which are located on server B. The path of the file is URL with https protocol. It was working ok in 11g weblogic server. After deploying the servlet code in 12.2.1.3 weblogic server, error is throwing from the getInputStream() method. Please find below the stacktrace.
Please find here the code snippet.
String urlPath = filePath;
URL url = new URL(urlPath);
HttpURLConnection httpConn = (HttpURLConnection) url.openConnection();
InputStream inStream = httpConn.getInputStream();
String mimeType = httpConn.getContentType();
mimeType = "application/pdf";
response.setContentType(mimeType + "; charset=UTF-8");
response.setContentLength(httpConn.getContentLength());
setContentHeader(request, response);
ServletOutputSt