Hi,
I’ve read other posts on this but have not been able to solve this one.
I’m trying to do the very basic thing of creating a remote DIIOP Session from a Java stand alone program.
My set up:
Domino Server running on my development machine
-
DIIOP running on default port
-
Anonymous and Name/Password connections to DIIOP allowed
-
Permission to run restricted/unrestricted programs (Java/JavaScript/COM etc) given to “Admin” user.
-
I verified that this user can log in over the web
Simple Java client on the same machine.
Session notesSession = NotesFactory.createSession(“111.22.33.44”,“Admin”,“pwd”);
Result:
Domino Server reports:
DIIOP Server: 111.22.33.44 connected
DIIOP Server: 111.22.33.44 disconnected
Java client reports:
NotesException: Could not open Notes session: org.omg.CORBA.COMM_FAILURE: minor code: 6 completed: No
at lotus.domino.cso.Session.initSession(Session.java:976)
at lotus.domino.cso.Session.<init>(Session.java:77)
at lotus.domino.cso.Session.createSession(Session.java:41)
at lotus.domino.NotesFactory.createSession(NotesFactory.java:153)
at lotus.domino.NotesFactory.createSession(NotesFactory.java:116)
Some Notes:
-
I get the same error whether or not I use a valid username/password and
-
I get the same error if I attempt an anonymous connection: (createSession(“111.22.33.44”,“”,“”)
-
I get the same error if I attempt to connect to another Domino server.
-
I can make local connection no problem
Thanks for any help!
Terrence
Subject: NotesException: “Could not open Notes session”
Permission to run restricted/unrestricted programs (Java/JavaScript/COM etc) given to “Admin” user.
Is this the only place where you specified permissions? Java/JavaScript/COM is no longer used in 6.0, it is only used for backwards compatability. Use the programability section for specifying restrictions. You will find more details in on-line help or the article that goes over security changes for ND6 “Decoding agents in ND6” - direct link is Agent FAQ under #0 or you can also find it in article archive.
Subject: RE: NotesException: “Could not open Notes session”
Thanks Julie,
Actually in the name of overkill I have the Admin user given access to do everything in programability section!
Paul
Subject: RE: NotesException: “Could not open Notes session”
Terrence,could you please help me coz i m getting the “server access denied” error, when i run my java program, i m using the domino 6…could you please tell me where should i make the changes in domino administrator to run my java application…
Subject: NotesException: “Could not open Notes session”
Terrence -
Make sure the fully qualified host name of the server you’re connecting to resolves to an ip address by way of a hosts file entry or a DNS entry. It needs to be the same as the field labeled “Fully qualified Internet host name:” on the “Basics” tab of the server document. This has never made a whole lot of sense to me, but it’s the only way I’ve ever been able to get remote connections to work.
regards,
dgg
Subject: RE: NotesException: “Could not open Notes session”
Thanks Dallas, though I’m afraid it didn’t resolve my issue.
Terrence
Subject: one small detail I left out . . .
You’ll need to restart the server or at least the task. If it still doesn’t work, try changing the log level on DIIOP – maybe that’ll point you to the problem – sounds fairly low-level though.dgg