I am trying to use a standalone java application to connect to a domino server using DIIOP. I have set up the server as correctly as far as I can see, and have the DIIOP task running. I can telnet the server on port 63148, so there don’t appear to be any firewall issues. My simple code is like this:
System.out.printn(“About to connect”);
String ior = NotesFactory.getIOR(“:63148”);
System.out.println(“IOR Retreived”);
Session s = NotesFactory.createSessionWithIOR(ior,“”,“”);
System.out.println(“Session Created”);
My ouput is:
About to connect
IOR Retreived
Exception in thread “main” 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 au.com.auscript.NotesAccess.TestNotesAccess.main(TestNotesAccess.java:13)
Caused by: org.omg.CORBA.COMM_FAILURE: java.net.ConnectException: Connection timed out: connect Host: 150.101.72.114 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(Unknown Source)
at lotus.priv.CORBA.iiop.Generic.locate(Unknown Source)
at lotus.priv.CORBA.iiop.RepImpl.invokePreamble(Unknown Source)
at lotus.priv.CORBA.iiop.RepImpl.invoke(Unknown Source)
at lotus.priv.CORBA.portable.ObjectImpl._invoke(Unknown Source)
at lotus.domino.corba._IObjectServerStub.createSession(Unknown Source)
... 6 more
Caused by: java.net.ConnectException: Connection timed out: 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)
... 14 more
Any ideas? If I can retrieve the ior text file ok, why can’t I connect?
Thanks.