Error
------
de.bea.domingo.service.NotesServiceRuntimeException: de.bea.domingo.proxy.ViewEntryProxy: Cannot get document
at de.bea.domingo.service.NotesServiceFactory.invoke(NotesServiceFactory.java:382)
at de.bea.domingo.service.NotesInvocationHandler.invoke(NotesInvocationHandler.java:87)
at $Proxy4.getDocument(Unknown Source)
at de.bea.domingo.groupware.map.MailDatabase$MailIterator.next(MailDatabase.java:327)
at main.CheckMail.main(CheckMail.java:118)
Caused by: de.bea.domingo.proxy.NotesProxyRuntimeException: de.bea.domingo.proxy.ViewEntryProxy: Cannot get document
at de.bea.domingo.proxy.BaseProxy.newRuntimeException(BaseProxy.java:655)
at de.bea.domingo.proxy.ViewEntryProxy.getDocument(ViewEntryProxy.java:121)
at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at de.bea.domingo.service.InvocationTask.run(InvocationTask.java:102)
at de.bea.domingo.threadpool.SimpleThreadPool.run(SimpleThreadPool.java:369)
at de.bea.domingo.proxy.DNotesThread.run(DNotesThread.java:244)
Caused by: de.bea.domingo.exception.DominoException: [4000] Error while bulk recycling objects
at de.bea.domingo.proxy.BaseProxy.newRuntimeException(BaseProxy.java:654)
... 7 more
Sam
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am getting the below error while reading and moving emails from Lotus notes inbox.
Any help or recommendations would be greatly appreciated.
Source Code
------------------------------
EmailDigest mailDigest = (EmailDigest) inbox.next();
DDocument document = database.getDocumentByUNID(mailDigest.getUnid());
DDocument newMail = database.createDocument();
document.copyAllItems(newMail, true);
if (newMail.isValid()) {
newMail.save();
newMail.putInFolder(folderName, true);
------------------------------------------------------
Error
------
de.bea.domingo.service.NotesServiceRuntimeException: de.bea.domingo.proxy.ViewEntryProxy: Cannot get document
at de.bea.domingo.service.NotesServiceFactory.invoke(NotesServiceFactory.java:382)
at de.bea.domingo.service.NotesInvocationHandler.invoke(NotesInvocationHandler.java:87)
at $Proxy4.getDocument(Unknown Source)
at de.bea.domingo.groupware.map.MailDatabase$MailIterator.next(MailDatabase.java:327)
at main.CheckMail.main(CheckMail.java:118)
Caused by: de.bea.domingo.proxy.NotesProxyRuntimeException: de.bea.domingo.proxy.ViewEntryProxy: Cannot get document
at de.bea.domingo.proxy.BaseProxy.newRuntimeException(BaseProxy.java:655)
at de.bea.domingo.proxy.ViewEntryProxy.getDocument(ViewEntryProxy.java:121)
at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at de.bea.domingo.service.InvocationTask.run(InvocationTask.java:102)
at de.bea.domingo.threadpool.SimpleThreadPool.run(SimpleThreadPool.java:369)
at de.bea.domingo.proxy.DNotesThread.run(DNotesThread.java:244)
Caused by: de.bea.domingo.exception.DominoException: [4000] Error while bulk recycling objects
at de.bea.domingo.proxy.BaseProxy.newRuntimeException(BaseProxy.java:654)
... 7 more
Sam
I fixed this error...
Changed the code to use Domino.jar file
Java Code
------------------
View inbox = database.getView( "($Inbox)" );
Document document = inbox.getLastDocument();
while (document!= null )
{
//code to read the email body and subject
document.putInFolder(archiveFolder, true );
document.removeFromFolder( "($Inbox)" );
document = inbox.getPrevDocument(document);
}