我一直在使用 JAVA Lotus notes API 从外部服务器访问 Lotus Notes(.nsf) 数据,但是在访问 NSF 时,我收到了很多函数的以下错误。
NotesException: Not implemented
at lotus.domino.cso.Base.notImplemented(Unknown Source)
at lotus.domino.cso.View.getAllUnreadEntries(Unknown Source)
at com.lotus.GetName.runNotes(GetName.java:40)
at lotus.domino.NotesThread.run(Unknown Source)
观察:
- 我用类路径(Notes.jar)重新检查了我的设置
- 能够访问外部服务器。
- 能够在外部服务器上创建 Lotus Domino 会话
所以我想请大家提出任何建议或解决方案来解决这个问题。
感谢您的快速回复。我非常感谢。我正在使用 NCSO.jar ,是的,我正在拨打远程电话。我与管理员核对并要求提供相同的 NCSO.jar 和 Notes.jar 。他们使用的服务器是 8.5 。但它仍然抛出相同的错误。除此之外,我不知道如何使用 eclipse 编写和使用 java,因为我完全是 Notes Java Development 的新手。请尽快帮助我。谢谢。:)
我使用的代码是:
public class GetName
{
public static void main(String argv[])
{
try
{
Database db;
String ior = NotesFactory.getIOR("****");
Session s = NotesFactory.createSessionWithIOR(ior,"****","****");
db = s.getDatabase("****","mail/mail1/****");
View v = db.getView("$Inbox");
System.out.println(v.getAllUnreadEntries().getCount());// Getting error on this line
}
}