- Powered by Domino 8.5.2 Domino Accelerator Pack
- Reduce the number of HTTP requests
Lotus Triple Search DominoExperts + Blogs + R8 forum -> Script vault -> Java

 A little advice on using isValid()

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

In an application situation I used the


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
Niklas Waller13
Kenneth Haggman11
Bryan Kuhn10
Daniel Lehtihet9
Jonas Israelsson8