问题描述
IamaQAtester,whenIusedominojavaAPItoopenadatabase.Sometimetherewillbeanexception.WhenIwenttoopenadatabase,thisdatabaseisinlocalandnotinrootdirectory.Forexamplethisdatabaseisinc:testtesttest.nsf.getDatabasewillreturnaexception,thisdatabaseisnotopenedyet.SoIputthisdatabaseintherootdirectory,itworksfine.Stringlocalpath=System.getProperty("user.dir")+"\localData\";Sessionlocal_session=NotesFactory.createSessionWithFullAccess();DatabasecurDB=local_session.getDatabase(null,localpath+"Server\tools.nsf");Couldyougivemesomesuggestionorworkaroundmethod?Thanks.
解决方案
解决方案二:
F1
时间: 2025-01-01 23:26:16