我一直在尝试从SessionManager创建会话,以便对Documentum应用程序执行一些操作。我的应用程序无法连接到服务器,导致出现javax.net.ssl.SSLHandshakeException引起的“服务器通信故障”:收到致命警报:handshake_failure。我查看了应用程序的日志,意识到dfc.globalregistry(用户名,密码和存储库)存在问题。是否有任何默认的globalregistry值以便与服务器建立连接?
private static void createSession() throws Exception {
DfClientX clientx = new DfClientX();
IDfClient localClient = clientx.getLocalClient();
sessionManager = localClient.newSessionManager();
IDfLoginInfo loginInfo = clientx.getLoginInfo();
loginInfo.setUser(USERNAME);
loginInfo.setPassword(PASSWORD);
if (sessionManager.hasIdentity(REPOSITORY)) {
sessionManager.clearIdentity(REPOSITORY);
}
sessionManager.setIdentity(REPOSITORY, loginInfo);
session = sessionManager.getSession(REPOSITORY);
}
此方法被调用,并在session = sessionManager.getSession(REPOSITORY)处失败; 有什么建议吗?
完整的堆栈跟踪:
DfIOException:: THREAD: main; MSG: [DM_SESSION_E_RPC_ERROR]error: "Server communication failure"; ERRORCODE: 100; NEXT: null
at com.documentum.fc.client.DfIOException.newCommunicationFailureException(DfIOException.java:16)
at com.documentum.fc.client.impl.connection.netwise.AbstractNetwiseRpcClient.sendMessage(AbstractNetwiseRpcClient.java:216)
at com.documentum.fc.client.impl.connection.docbase.netwise.NetwiseDocbaseRpcClient.newSessionByAddr(NetwiseDocbaseRpcClient.java:102)
at com.documentum.fc.client.impl.connection.docbase.DocbaseConnection.beginSession(DocbaseConnection.java:298)
at com.documentum.fc.client.impl.connection.docbase.DocbaseConnection.open(DocbaseConnection.java:129)
at com.documentum.fc.client.impl.connection.docbase.DocbaseConnection.<init>(DocbaseConnection.java:99)
at com.documentum.fc.client.impl.connection.docbase.DocbaseConnection.<init>(DocbaseConnection.java:59)
at com.documentum.fc.client.impl.connection.docbase.DocbaseConnectionFactory.newDocbaseConnection(DocbaseConnectionFactory.java:26)
at com.documentum.fc.client.impl.connection.docbase.DocbaseConnectionManager.createNewConnection(DocbaseConnectionManager.java:180)
at com.documentum.fc.client.impl.connection.docbase.DocbaseConnectionManager.getDocbaseConnection(DocbaseConnectionManager.java:110)
at com.documentum.fc.client.impl.session.SessionFactory.newSession(SessionFactory.java:23)
at com.documentum.fc.client.impl.session.PrincipalAwareSessionFactory.newSession(PrincipalAwareSessionFactory.java:44)
at com.documentum.fc.client.impl.session.PooledSessionFactory.newSession(PooledSessionFactory.java:49)
at com.documentum.fc.client.impl.session.SessionManager.getSessionFromFactory(SessionManager.java:134)
at com.documentum.fc.client.impl.session.SessionManager.newSession(SessionManager.java:72)
at com.documentum.fc.client.impl.session.SessionManager.getSession(SessionManager.java:191)
at training.sessions.SessionTest.createSession(SessionTest.java:72)
at training.sessions.SessionTest.main(SessionTest.java:29)
Caused by: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
at sun.security.ssl.Alerts.getSSLException(Unknown Source)
at sun.security.ssl.Alerts.getSSLException(Unknown Source)
at sun.security.ssl.SSLSocketImpl.recvAlert(Unknown Source)
at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
at sun.security.ssl.SSLSocketImpl.writeRecord(Unknown Source)
at sun.security.ssl.AppOutputStream.write(Unknown Source)
at com.documentum.fc.impl.util.io.MessageChannel.writeSocket(MessageChannel.java:261)
at com.documentum.fc.impl.util.io.MessageChannel.write(MessageChannel.java:219)
at com.documentum.fc.client.impl.connection.netwise.AbstractNetwiseRpcClient.sendMessage(AbstractNetwiseRpcClient.java:211)
... 16 more