我正在嘗試使用以下 java 代碼連接 IBM Domino DB,但出現(xiàn)異常。 import lotus.domino.Database; import lotus.domino.NotesFactory; import lotus.domino.Session; public class JavaAgent { public static void main(String[] args) { try { String host = "test.xxx.xxx.com:63148"; Session s = NotesFactory.createSession(host); String p = s.getCommonUserName(); System.out.println(p); Database db = s.getDatabase("test.xxx.xxx.com", "s.nsf"); System.out.println(db.getFilePath()); } catch (Exception e) { e.printStackTrace(); } } }## 例外 : ##NotesException:無法從 Domino 服務(wù)器獲取 IOR:http ://test.xxx.xxx.com : 63148/diiop_ior.txt at lotus.domino.NotesFactory.requestIORPlain(Unknown Source) at lotus.domino.NotesFactory.requestIORUsingArgs(Unknown Source) ) at lotus.domino.NotesFactory.getIOR(Unknown Source) at lotus.domino.NotesFactory.createSessionUP(Unknown Source) at lotus.domino.NotesFactory.createSession(Unknown Source) at lotus.domino.NotesFactory.createSession(Unknown Source)I tried to open the URL from browser using port 80 then it loading the file mentioned in error http://test.xxx.xxx.com:80/diiop_ior.txtDIIOP 配置如下tell diiop show config[167FC:0002-16B70] Dump of Domino IIOP (DIIOP) Configuration Settings[167FC:0002-16B70] Full Server Name: CN=xxx/O=xxxDEV[167FC:0002-16B70] Common Server Name: xxx/xxxDEV[167FC:0002-16B70] Refresh Interval: 3 minutes我正在使用 NCSO.jar 進(jìn)行此連接。我正在按照以下 IBM 官方網(wǎng)址https://www.ibm.com/developerworks/lotus/library/ls-Java_access_pt1/index.html 中提到的步驟操作
添加回答
舉報
0/150
提交
取消