Java and DIIOP

Please, I need help with DIIOP and Domino Java agent (server to server).

I think I have everything configured correctly; but I receive the following

error when I try to get a view from the database.

Notes Exception: 4000 Notes error: You are not authorized to perform that

operation

Here is a code snipet…

Session s2 = NotesFactory.createSession(

"myserver.rr.com:63148",

"My UserID/Houston/RR","password");

log.action("Domino " + (String)s2.getNotesVersion() + " running on " +

(String)s2.getPlatform());

log.action("Opening database");

Database db = s2.getDatabase("","mydatabase.nsf");

log.action("Get View");

View viewProj = db.getView( "AllByProjectID" );     <<< Exception

The ID and password are setup in the names.nsf. The ID has manager access

to the database. View has “Reader and above” access.

What next?

Thanks, Neil

Subject: Java and DIIOP

Neil,Are you using the users Internet password to create the session?

On the server you are connecting to, try setting the log level up to get the server to report additional information - may turn up something useful:

tell diiop log=4

Cathal.

Subject: RE: Java and DIIOP

Thanks for the response.

The remote server console has…

02/17/2005 02:55:57 PM DIIOP Server: 9.35.32.9 connected

02/17/2005 02:55:57 PM DIIOP Server: Executing createSession

02/17/2005 02:55:57 PM DIIOP Session SN0005E6E79: Opened for My UserID/Houston/RR (v1.11)

02/17/2005 02:55:57 PM DIIOP Session SN0005E6E79: Executing getSessionData_U

02/17/2005 02:55:58 PM DIIOP Session SN0005E6E79: Executing getDatabase

02/17/2005 02:55:58 PM DIIOP Session SN0005E6E79: Executing getDbDesign

02/17/2005 02:55:58 PM DIIOP Session SN0005E6E79: Executing getServer

02/17/2005 02:55:58 PM DIIOP Session SN0005E6E79: Executing getView

My requesting server prints…

02/17/2005 03:07:41 PM Agent error: NotesException: Notes error: You are not authorized to perform that operation

02/17/2005 03:07:41 PM Agent error: at lotus.domino.NotesExceptionHelper.read(Unknown Source)

02/17/2005 03:07:41 PM Agent error: at lotus.domino.NotesExceptionHolder._read(Unknown Source)

02/17/2005 03:07:41 PM Agent error: at lotus.priv.CORBA.iiop.RepImpl.invoke(Unknown Source)

02/17/2005 03:07:41 PM Agent error: at lotus.priv.CORBA.portable.ObjectImpl._invoke(Unknown Source)

02/17/2005 03:07:41 PM Agent error: at lotus.domino.corba._IDatabaseStub.getView(Unknown Source)

02/17/2005 03:07:41 PM Agent error: at lotus.domino.cso.Database.getView(Unknown Source)

02/17/2005 03:07:41 PM Agent error: at JavaAgent.NotesMain(JavaAgent.java:42)

02/17/2005 03:07:41 PM Agent error: at lotus.domino.AgentBase.runNotes(Unknown Source)

02/17/2005 03:07:41 PM Agent error: at lotus.domino.NotesThread.run(Unknown Source)

02/17/2005 03:07:42 PM Agent error: Error cleaning up agent threads