Xpages 无法使用NotesFactory访问Notes应用程序
直到最近,我才能够通过Java和NotesFactory在Designer中访问Notes应用程序,无论是在本地机器上还是在服务器上。我现在在这两种情况下都有如下错误。如果我尝试用db.open()打开数据库,它将不成功,达到1%并失败。除了几周前最近增加的官方发展援助之外,我想不出有什么原因可以解释为什么几年来行之有效的措施现在失败了 任何帮助都将不胜感激 使用这两个方法和相关参数的错误示例Xpages 无法使用NotesFactory访问Notes应用程序,xpages,domino-designer-eclipse,Xpages,Domino Designer Eclipse,直到最近,我才能够通过Java和NotesFactory在Designer中访问Notes应用程序,无论是在本地机器上还是在服务器上。我现在在这两种情况下都有如下错误。如果我尝试用db.open()打开数据库,它将不成功,达到1%并失败。除了几周前最近增加的官方发展援助之外,我想不出有什么原因可以解释为什么几年来行之有效的措施现在失败了 任何帮助都将不胜感激 使用这两个方法和相关参数的错误示例 Session s = NotesFactory.createSessionWithFullAcces
Session s = NotesFactory.createSessionWithFullAccess();
线程“main”中的异常NotesException:数据库Ganymede!!NCLCMS.nsf尚未打开
Session s = NotesFactory.createSessionWithFullAccess("mypassword");
Session s = NotesFactory.createSession((String)null, (String)null,(String)null);
线程“main”注释异常异常:ID文件被另一个进程锁定。请稍后再试
Session s = NotesFactory.createSession((String)null, (String)null, "mypassword");
Session s = NotesFactory.createSession()
线程“main”注释异常异常:ID文件被另一个进程锁定。请稍后再试
Session s = NotesFactory.createSession((String)null, (String)null, "mypassword");
Session s = NotesFactory.createSession()
线程“main”中的异常NotesException:数据库Ganymede!!NCLCMS.nsf尚未打开
Session s = NotesFactory.createSessionWithFullAccess("mypassword");
Session s = NotesFactory.createSession((String)null, (String)null,(String)null);
线程“main”中的异常NotesException:数据库Ganymede!!NCLCMS.nsf尚未打开
Session s = NotesFactory.createSessionWithFullAccess("mypassword");
Session s = NotesFactory.createSession((String)null, (String)null,(String)null);
作为一个例子,直到最近,以下方法都很有效
import lotus.domino.Database;
import lotus.domino.Document;
import lotus.domino.NotesException;
import lotus.domino.NotesFactory;
import lotus.domino.Session;
import lotus.domino.View;
import lotus.notes.NotesThread;
public class AssignItemParentType {
public static void main(String[] args) throws NotesException{
assignItemParentType();
}
public static void assignItemParentType() throws NotesException{
NotesThread.sinitThread();
Session s = NotesFactory.createSessionWithFullAccess();
Database db = s.getDatabase("Ganymede","NCLCMS.nsf");
View itmView = db.getView("Itm Sales Order Form Internal");
String parentID = null;
String docType = null;
Document parentDoc = null;
Document itmDoc = itmView.getFirstDocument();
Document oldDoc = null;
int cnt=0;
int x=0;
while (itmDoc !=null){
try{
parentID = itmDoc.getItemValueString("ItmParentUID");
parentDoc = db.getDocumentByUNID(parentID);
docType = parentDoc.getItemValueString("Form");
if (docType.equals("SOFInt")){
cnt++;
itmDoc.replaceItemValue("ItmParentType","Core");
itmDoc.save();
}
parentDoc.recycle();
}
catch (Exception e){System.out.println("Error with ID");
}
x++;
oldDoc = itmView.getNextDocument(itmDoc);
itmDoc.recycle();
itmDoc = oldDoc;
}
itmView.recycle();
db.recycle();
System.out.println("Matches ="+cnt + " Records = "+x);
NotesThread.stermThread();
}
排序为
Session s = NotesFactory.createSessionWithFullAccess("mypassword");
如果您尝试在没有密码的情况下(以前有效)重新启动Notes和Designer,然后进行更改。也许对某些人来说是显而易见的,就像4个小时后的今天对我一样 以…排序
Session s = NotesFactory.createSessionWithFullAccess("mypassword");
如果您尝试在没有密码的情况下(以前有效)重新启动Notes和Designer,然后进行更改。也许对某些人来说是显而易见的,就像4个小时后的今天对我一样 如何在服务器上安装ODA?如果是通过更新站点,则不能用于代理,只能通过HTTP任务加载,因此不会影响Java代理。ODA本身使用
NotesFactory.createSession()
。Notes9客户端和可能的修复包版本对Java安全性进行了更改。我不记得细节了,但是客户最近更新了吗?嗨,保罗。ODA是使用和更新站点安装的。我使用Java是一个“测试项目”,而不是nsf。服务器在几周前被转移到FP7。我在本地客户端数据库上遇到了同样的问题,该数据库尚未升级,即仍然在9.0.1无FPs上,以前工作正常。ODA是如何安装在服务器上的?如果是通过更新站点,则不能用于代理,只能通过HTTP任务加载,因此不会影响Java代理。ODA本身使用NotesFactory.createSession()
。Notes9客户端和可能的修复包版本对Java安全性进行了更改。我不记得细节了,但是客户最近更新了吗?嗨,保罗。ODA是使用和更新站点安装的。我使用Java是一个“测试项目”,而不是nsf。服务器在几周前被转移到FP7。我在本地客户端数据库上也遇到了同样的问题,该数据库尚未升级,即仍然在9.0.1无FPs上,以前工作正常。