【发布时间】:2015-04-07 11:47:07
【问题描述】:
我在使用 MS JDBC 驱动程序连接 Lotus Domino 9.0.1FP3 和 MSSQL 数据库时遇到问题,this question 中详述了同样的问题。在 9.0.1 中一切正常,但 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
我已经尝试升级 JDBC 驱动程序,但它似乎没有像 TomSta 在他的 cmets 中那样产生任何影响
我尝试设置 encrypt=true 和 trustServerCertificate=true 似乎也没有任何区别。
是否需要对 Domino / SQL / Windows 服务器进行更改才能解决此问题?
我的代码和错误位置如下图:
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;
}
【问题讨论】:
标签: xpages lotus-notes lotus-domino xpinc