dominoExperts.com - Powered by Domino 8.5.2 Domino Accelerator Pack
- Serve faster pages for your users
Lotus Triple Search DominoExperts + Blogs + R8 forum
dominoExperts.com -> Script vault -> Java

 A little advice on using isValid()


Tomas NielsenPost date: 2007-11-28 22:04

In an application situation I used the

db.getDocumentByUNID

to read up documents (1000+) and then worked with them. The problem I ran into was that if the users session had expired and the code still ran but had no access to the documents any more.

The server then crashed with a "allochandle: out of private handles" filling up the console.
Apparently - even though I recycle() - trying to do operations on a document you do not have access to uses up private handles.

The solution was to test the doc.isValid() before attempting to use the document - and of course to recycle().




RSS feed
Subscribe to Forum

Share this page

Top posters
Tomas Nielsen212
Joacim Boive27
Fredrik Stöckel27
Danne14
Niklas Waller13
Kenneth Haggman11
Bryan Kuhn10
Daniel Lehtihet9
Jonas Israelsson8
dm997