Lotus notes 通过JAVA应用程序连接到远程DOMINO服务器时出现异常

Lotus notes 通过JAVA应用程序连接到远程DOMINO服务器时出现异常,lotus-notes,lotus-domino,lotus,Lotus Notes,Lotus Domino,Lotus,当我尝试从java应用程序连接到domino服务器时,出现如下异常: 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)

当我尝试从java应用程序连接到domino服务器时,出现如下异常:

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.createSession(Unknown Source)
at lotus.domino.NotesFactory.createSession(Unknown Source)
at com.nseit.email.ReadEmailRemotely.run(ReadEmailRem otely.java:23)
at java.lang.Thread.run(Unknown Source)
Caused by: org.omg.CORBA.COMM_FAILURE: java.net.ConnectException: Connection refused: connect Host: **127.0.0.1 Port: 63148** vmcid: 0x0 minor code: 1 completed: No
at lotus.priv.CORBA.iiop.ConnectionTable.get(Unknown Source)
at lotus.priv.CORBA.iiop.ConnectionTable.get(Unknown Source)
at lotus.priv.CORBA.iiop.Generic.getConnection(Unknow n Source)
at lotus.priv.CORBA.iiop.Generic.locate(Unknown Source)
at lotus.priv.CORBA.iiop.RepImpl.invokePreamble(Unkno wn Source)
at lotus.priv.CORBA.iiop.RepImpl.invoke(Unknown Source)
at lotus.priv.CORBA.portable.ObjectImpl._invoke(Unkno wn Source)
at lotus.domino.corba._IObjectServerStub.createSessio n(Unknown Source)
... 8 more
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at lotus.priv.CORBA.iiop.Connection.newSocket(Unknown Source)
... 16 more
我使用的是NCSO.jar,我已经验证了DIIOP连接的所有设置都是正确的

既然我提供了硬代码IP地址,为什么我的JAVA应用程序要连接本地主机IP(127.0.0.1)

关于这方面的任何建议都会有很大帮助。

在DOMINO服务器上执行以下命令时,控制台输出显示几个参数,其中两个参数显示为

主机地址:127.0.0.1 公共主机名/地址:127.0.0.1


这就是上述异常的原因吗?

我不确定您为什么会得到127.0.0.1,但错误“连接被拒绝”通常意味着DIIOP没有在该端口上运行

从Domino服务器类型

load diiop 
之后,请尝试直接连接到IOR_文本,以确保它正在运行(使用web浏览器)

例如:

http://xxx.xxx.xxx.xxx:63148/diiop_ior.txt

如果服务器工作正常,您应该会得到一个数字字符串。

我不确定您为什么会得到127.0.0.1,但是错误“连接被拒绝”通常意味着DIIOP没有在该端口上运行

从Domino服务器类型

load diiop 
之后,请尝试直接连接到IOR_文本,以确保它正在运行(使用web浏览器)

例如:

http://xxx.xxx.xxx.xxx:63148/diiop_ior.txt
如果服务器工作正常,您应该得到一个数字字符串