1
votes

I have been working for accessing the Lotus Notes(.nsf) data from the external server using JAVA Lotus notes API, but I'm getting the following error for DocumentCollection:

"NotesException: Not implemented\r\n\tat lotus.domino.cso.Base.notImplemented(Unknown Source)\r\n\tat lotus.domino.cso.DocumentCollection.merge(Unknown Source)

The Code i am using is :

Document docParent = docColParents.getFirstDocument();
while(docParent != null){
        docColResponses.merge(docParent.getResponses());
        docTemp = docColParents.getNextDocument();
        docParent.recycle();
        docParent = docTemp;
}
1
Precisely as Knut said in his answer, your import looks to be attempting to pull lotus.domino.cso.DocumentCollection when you should be importing lotus.domino.DocumentCollection. The lotus.domino package is where you want to import from. - Eric McCormick

1 Answers

3
votes

Use/import class

lotus.domino.DocumentCollection

(not lotus.domino.cso.DocumentCollection).

Update

Initialize docColResponses with null and assign responses for first document to it and merge responses for the next documents:

import lotus.domino.DocumentCollection;
...
    DocumentCollection docColResponses = null;
    ...
    while (docParent != null) {
        if (docColResponses == null) {
            docColResponses = docParent.getResponses();
        } else {
            docColResponses.merge(docParent.getResponses());
        }
        ...
    }