引起原因:java.net.ConnectException
我正在尝试连接到 Lotus 多米诺骨牌服务器。为此,我通过以下方式通过 java 代码创建会话:
String ior = NotesFactory.getIOR("172.17.245.160");
Session s = NotesFactory.createSessionWithIOR(ior,"Test Mobility/MUM/TCSDEV","c@r33r");
我正在获取 ior 字符串 但即使我连接到 172.17.245.160,
我也会收到错误:
NotesException: Could not open Notes session
at lotus.domino.cso.Session.initSession(Unknown Source)
at lotus.domino.cso.Session.<init>(Unknown Source)
at lotus.domino.cso.Session.createSession(Unknown Source)
at lotus.domino.NotesFactory.createSessionUP(Unknown Source)
at lotus.domino.NotesFactory.createSessionWithIOR(Unknown Source)
at com.lotus.platform1.runNotes(platform1.java:29)
at lotus.domino.NotesThread.run(Unknown Source)
Caused by: org.omg.CORBA.COMM_FAILURE: java.net.ConnectException: Connection timed out: connect Host: 192.168.245.160 Port: 63148 vmcid: 0x0 minor code: 1 completed: No
我不知道为什么即使我在 getIOR 方法中将我的 IP 传递为 172.17.245.160,
我也会收到主机错误:192.168.245.160 端口:63148 请
Caused by: org.omg.CORBA.COMM_FAILURE: java.net.ConnectException: Connection timed out: connect Host: 192.168.245.160 Port: 63148 vmcid: 0x0 minor code: 1 completed: No
帮助我!
I am trying to connect to a lotus domino server . For which i am creating session through java code by following way :
String ior = NotesFactory.getIOR("172.17.245.160");
Session s = NotesFactory.createSessionWithIOR(ior,"Test Mobility/MUM/TCSDEV","c@r33r");
I am getting ior string
but even if i am connecting to 172.17.245.160
i am getting error:
NotesException: Could not open Notes session
at lotus.domino.cso.Session.initSession(Unknown Source)
at lotus.domino.cso.Session.<init>(Unknown Source)
at lotus.domino.cso.Session.createSession(Unknown Source)
at lotus.domino.NotesFactory.createSessionUP(Unknown Source)
at lotus.domino.NotesFactory.createSessionWithIOR(Unknown Source)
at com.lotus.platform1.runNotes(platform1.java:29)
at lotus.domino.NotesThread.run(Unknown Source)
Caused by: org.omg.CORBA.COMM_FAILURE: java.net.ConnectException: Connection timed out: connect Host: 192.168.245.160 Port: 63148 vmcid: 0x0 minor code: 1 completed: No
I dont know why even if i am passing my ip as 172.17.245.160 in my getIOR method
i am getting error for Host: 192.168.245.160 Port: 63148
as
Caused by: org.omg.CORBA.COMM_FAILURE: java.net.ConnectException: Connection timed out: connect Host: 192.168.245.160 Port: 63148 vmcid: 0x0 minor code: 1 completed: No
please help me !
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
diiop 服务器任务是否正在运行?
您是否有任何类型的文件墙阻止端口 63148?
对 getIOR 的初始请求通过端口 80,因此这可以解释为什么该部分似乎正常工作。
请参阅本文中的“获取 IOR”
Is the diiop server task running?
Do you have any type of filewall blocking port 63148?
The initial request for getIOR goes over port 80, so that could explain why that part seems to be working.
See 'Getting the IOR' in this article
就我而言,解决方案是定义 DIIOP 的主机名/地址。
您可以在 Domino 服务器上的 Domino Administrator 的 Internetprtocoll/DIIOP
部分执行此操作
In my case the solution was to define the Host name/Address for DIIOP.
You can do this at Domino Administrator on my Domino Server the section Internetprtocoll/DIIOP