Hello All,
I hope someone can help me with this one because it has me totally confused.
I have created a servlet that is running in the Domino Servlet Manager. The servlet accesses a document in a database and is suppose to get the values from a field in the document, however this is where it blows up and gives me the error that is alluded to in the subject line.
The interesting thing is that the exception is being thrown when I call the hasItem method, however if I do a getUniversalID or a getItems I don’t get an error.
This is really confusing me and I would welcome any thoughts on what is going on here.
Thanks.
Subject: NotesException: Object no longer exists on server
The only time I’ve encountered that error is when I was attempting to recycle an object that had already been recycled but was not yet null. Any chance it (presumably the document) is inadvertently being scrapped elsewhere?dgg
Subject: NotesException: Object no longer exists on server
The Document instance has been recycled somewhere in your code prior to the offending call. This causes the light weight java object to release some of the back-end native resources to the actual document.
The reason why you can still access other properties/methods of the recycled document is simply because access to a notes object that has been recycled yields indeterminate results and is not guaranteed to throw an error.
This is described in detail in the designer help file.
Feel free to post some code for further troubleshooting.
cheers,
Bram