Hi,
I’m trying my first java class using the NCSO.jar library.
I activated DIIOP on the server side and it seems that i can connect using a valid user/password.
by doing the below line of code
Session s = NotesFactory.createSession(serverName+“:63148”,“XXXXXX”,“XXXX”);
Then i’m getting my database:
Database db = s.getDatabase(serverName, baseName);
no error
then i get my agent ( i want to run it)
Agent agent = db.getAgent(agentName);
And here i get the following error:
NotesException: Database “mydatabase.nsf” has not been opened yet
at lotus.domino.NotesExceptionHelper.read(Unknown Source)
at lotus.domino.NotesExceptionHolder._read(Unknown Source)
at lotus.priv.CORBA.iiop.RepImpl.invoke(Unknown Source)
at lotus.priv.CORBA.portable.ObjectImpl._invoke(Unknown Source)
at lotus.domino.corba._IDatabaseStub.getAgent_U(Unknown Source)
at lotus.domino.cso.Database.getAgent(Unknown Source)
i tried to do an db.open() before but i get:
NotesException: File does not exist
at lotus.domino.NotesExceptionHelper.read(Unknown Source)
at lotus.domino.NotesExceptionHolder._read(Unknown Source)
at lotus.priv.CORBA.iiop.RepImpl.invoke(Unknown Source)
at lotus.priv.CORBA.portable.ObjectImpl._invoke(Unknown Source)
at lotus.domino.corba._IDatabaseStub.open(Unknown Source)
at lotus.domino.cso.Database.open(Unknown Source)
however the database file exist.
If anyones has any idea please do tell.
If you know of an example of java class using the NCSO.jar and manupilating NotesDocument or executing agent please share.
Thanks