引起原因:java.net.ConnectException

发布于 2024-12-19 03:37:00 字数 1232 浏览 1 评论 0原文

我正在尝试连接到 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

素衣风尘叹 2024-12-26 03:37:00

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

轻拂→两袖风尘 2024-12-26 03:37:00

就我而言,解决方案是定义 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

enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文