this question에서 설명한 것과 동일한 문제가 발생하면 Lotus Domino 9.0.1FP3과 MS JDBC 드라이버를 사용하여 MSSQL 데이터베이스를 연결하는 동안 문제가 발생합니다. 9.0.1에서는 모든 것이 잘되었지만 FP3의 응용 프로그램은 링크를 끊었습니다.9.0.1로 업그레이드 한 후 XPage 용 JDBC 드라이버가 작동하지 않음 FP3
The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "SSLv3 SSLContext not available". SSLv3 SSLContext not available
가 나는
내가 암호화 설정을 시도했습니다= 사실 & trustServerCertificate = 자신의 의견 TomSta에 대해 갖고있는 것 같아요처럼 어떤 차이를 보이지 않았다 JDBC 드라이버의 업그레이드를 시도했다 어떤 차이도 보이지 않는 것은 사실입니다.
이 문제를 해결하려면 Domino/SQL/Windows 서버를 변경해야합니까?
내 코드와 오류의 위치는 다음과 같습니다 :이은 SSLv3/TLS 변경에 뿌리가있을 수 있습니다
public static ResultSet executeQuery(String connString, String userName, String pwd, String query) {
//example connString: "jdbc:sqlserver://10.203.32.16;DatabaseName=DBTest";
ResultSet rs = null;
Statement st = null;
Connection conn = null;
try {
Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver").newInstance();
conn = DriverManager.getConnection(connString, userName, pwd); //Error occurs here
st = conn.createStatement();
rs = st.executeQuery(query);
} catch (Exception e) {
if (query != null) {
System.out.println("Failed SQL query: " + query);
}
try {
if (rs != null) { rs.close(); }
} catch (SQLException sqlEx) { rs = null; }
try {
if (st != null) { st.close(); }
} catch (SQLException sqlEx) { st = null; }
try {
if (conn != null) { conn.close(); }
} catch (SQLException sqlEx) { conn = null; }
e.printStackTrace();
return null;
}
return rs;
}
java.policy 파일은 현재 서버에 기본적으로 남겨져 있으므로 문제가되지 않아야합니다. jDTS를 사용하기 위해 전환 시도했지만 오류 403 반환 -이 작업을 수행 할 수 없습니다. sqljdbc4.jar과 jtds-1.2.8.jar는 모두 8.5.3과 9.0.1 사이의 다른 서버 (FP3 제외)에서 작동합니다. 부여를 추가하려고 시도했습니다 {permission java.security.AllPermission; }; 성공하지 못한 java.policy 파일에. –