import-bot (20211) [Avatar] Offline
#1
[Originally posted by dominodivine]

Hello Tony, I wonder have you ever seen this problem. I have written a simple
application that access Domino server through corba but I am having problems
with the Dbdirectory class. Here is the code and errors. I've search Notes.net
and I found something about you http clients needs to be able to browse
database for this to work. Maybe you could shed some light on my problem.

Here is the code: I am using visual age for java as my IDE.

import lotus.domino.*;
/**
* Insert the type's description here.
* Creation date: (3/15/2001 9:21:20 PM)
* @author: Administrator
*/
public class An_2 {
/**
* An_1 constructor comment.
*/
public An_2() {
super();
}
public static void main(String args[]){
An_2 a = new An_2();
try{
NotesThread.sinitThread();
Session s = NotesFactory.createSession("Monster","Troin Artis", "welcome1");
DbDirectory dir = s.getDbDirectory(null);
Database db = dir.getFirstDatabase(DbDirectory.DATABASE);
while ( db != null) {
db.open();
System.out.println("Database Name: " + db.getFileName());
System.out.println("Database Path: " + db.getFilePath());
System.out.println("This database was last modified on " +
db.getLastModified());
db = dir.getNextDatabase();
}

}
catch(NotesException e){
System.err.println("ERROR ID: " + e.id);
System.err.println("ERROR NAME: " + e.text);
e.printStackTrace();
}
catch(Exception e){
e.printStackTrace();
}
finally{
NotesThread.stermThread();
}
}
}




Here is the error

org.omg.CORBA.BAD_PARAM: minor code: 1 completed: Maybe
java.lang.Throwable(java.lang.String)
java.lang.Exception(java.lang.String)
java.lang.RuntimeException(java.lang.String)
org.omg.CORBA.SystemException(java.lang.String, int,
org.omg.CORBA.CompletionStatus)
org.omg.CORBA.BAD_PARAM(java.lang.String, int, org.omg.CORBA.CompletionStatus)
org.omg.CORBA.BAD_PARAM(int, org.omg.CORBA.CompletionStatus)
void com.ibm.rmi.iiop.CDROutputStream.write_wstring(java.lang.String)
lotus.domino.corba.IDbDirectory
lotus.domino.corba._ISessionStub.getDbDirectory(java.lang.String)
lotus.domino.DbDirectory
lotus.domino.cso.Session.getDbDirectory(java.lang.String)
void An_2.main(java.lang.String [])
import-bot (20211) [Avatar] Offline
#2
Re: DbDirectory with Corba
[Originally posted by aspatton]

The code runs fine on my machine (Domino 5.06a). I assume you have the DIIOP
server task running, and the file NCSO.jar is in the classpath.

Tony.
import-bot (20211) [Avatar] Offline
#3
Re: DbDirectory with Corba
[Originally posted by dominodivine]

Yes , I have that in place on the client machine. Would I need to also have it
in the classpath of the server.

> The code runs fine on my machine (Domino 5.06a). I assume you have the DIIOP
> server task running, and the file NCSO.jar is in the classpath.
>
> Tony.
import-bot (20211) [Avatar] Offline
#4
Re: DbDirectory with Corba
[Originally posted by aspatton]

It depends on where the code actually runs. If you are calling the code from
a browser, then the code is running in an agent on the server. On the other
hand, your code is a standalone application so it runs on the client. I
apologize for my confusion....

It is difficult because I couldn't reproduce your error message, what Domino
version are you using?

Tony.
import-bot (20211) [Avatar] Offline
#5
Re: DbDirectory with Corba
[Originally posted by dominodivine]

> It depends on where the code actually runs. If you are calling the code from
> a browser, then the code is running in an agent on the server. On the other
> hand, your code is a standalone application so it runs on the client. I
> apologize for my confusion....
>
> It is difficult because I couldn't reproduce your error message, what Domino
> version are you using?
>
> Tony.

I am using 5.0.6a at the client and 5.0.5 on the server.
import-bot (20211) [Avatar] Offline
#6
Re: DbDirectory with Corba
[Originally posted by aspatton]

I have 5.06a server and client, and it runs okay.

Tony.
import-bot (20211) [Avatar] Offline
#7
Re: DbDirectory with Corba
[Originally posted by dominodivine]

> I have 5.06a server and client, and it runs okay.
>
> Tony.

Thanks Tony. I will keep trying to find out what's causing my problem.
import-bot (20211) [Avatar] Offline
#8
Re: DbDirectory with Corba
[Originally posted by aspatton]

I am sorry I haven't been more helpful. You may want to try the Looseleaf
Forum, it is located at http://www.looseleaf.net/looseleaf/forum.nsf

Tony.