Can't open a view with db.getView()

Opened a view with Java, I got the following error:

at lotus.priv.CORBA.portable.ObjectImpl._invoke(Unknown Source)

at lotus.domino.corba._IDatabaseStub.getView(Unknown Source)

at lotus.domino.cso.Database.getView(Unknown Source)

at de.tad.Import.Teilnehmer.add(Teilnehmer.java:51)

at de.tad.Import.MainApp.main(MainApp.java:41)

Exception in thread “main”

This is my sourcecode:

public void add(String Ident) throws NotesException {

	vw = db.getView("LookupMitarbeiterByKey");

	dc = vw.getAllDocumentsByKey(Ident);

	doc = dc.getFirstDocument();

	if (doc != null) {

	this.Ident = Ident;

	this.ADMName = doc.getItemValueString("ADMName");

	}

}

The Database is opened with DIIOP running on the server, so I have to use NSCO.jar.

Any help?

Thx, Dirk

Subject: Can’t open a view with db.getView()

Looks like your db handle is invalid. That that it’s not null.System.out.println(db==null);

vw = db.getView(“LookupMitarbeiterByKey”);