While Downloading Files From External File Server Using Agile SDK From Custom Application, System Is Throwing Error "Class Not Found weblogic.security.SSL.jsseadapter.JaSSLContextImpl"
(Doc ID 2764595.1)
Last updated on JANUARY 19, 2023
Applies to:
Oracle Agile PLM Framework - Version 9.3.3.0 and laterInformation in this document applies to any platform.
Symptoms
While trying to download the file from external file server https://xxx.com/4/Sample.xlsx , using Agile SDK from Custom Application, the following error occurs
ERROR
Class Not Found weblogic.security.SSL.jsseadapter.JaSSLContextImpl
javax.net.ssl.SSLException: Received fatal alert: protocol_version
STEPS
The issue can be reproduced at will with the following steps:
1. Run the following sample code to download file from external file server
URL url = new URL("https://xxx.com/4/Sample.xlsx");
URLConnection uc = url.openConnection();
uc.setRequestProperty("Authorization", String.format("Basic %s", new BASE64Encoder().encode("xxxx".getBytes("UTF-8"))));
try (BufferedInputStream inputStream = new BufferedInputStream(uc.getInputStream());
FileOutputStream fileOS = new FileOutputStream("t.docx")) {
byte data[] = new byte[1024];
int byteContent;
while ((byteContent = inputStream.read(data, 0, 1024)) != -1) {
fileOS.write(data, 0, byteContent);
Changes
Implementing the functionality for the first time.
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Changes |
Cause |
Solution |