Did a test trying to figure out where the problems came from when i used the recycle method for almost any object…
Now I really don’t know anymore.
I tried this using a jsp page, with an ncso-notesconnection:
<%@ page import=“com.jacobs.util.,java.util.,lotus.domino.*”%>
<%@ taglib uri=“domtags.tld” prefix=“domino” %>
<domino:session id=“mySession” duration=“session”>
<%
Database tmpdb=mySession.getDatabase(null, “somedatabase.nsf”);
Document tmpdoc=tmpdb.getDocumentByUNID(“B2D87D87CD9D3CF3C1256DF100354859”);
RichTextItem tmpri=(RichTextItem)tmpdoc.getFirstItem(“pictures”);
out.println(WebFunc.getUrlcontent(“http://somedomain/test2.jsp”));
// this jsp does the same as this jsp because i want to find out whether the
// recycling of the same objects interfere with each other.
out.println(tmpdoc.getItemValueString(“title”));
Vector pictures=tmpri.getEmbeddedObjects();
try {tmpri.recycle();} catch (Exception e) {}
try {tmpdoc.recycle();} catch (Exception e) {}
try {tmpdb.recycle();} catch (Exception e) {}
%>
</domino:session>
When i load the page normally this gives no errors, just prints the titles of the documents… no problems…
Now when i stresstest this page, refreshing many many times, i get lots of “NotesException: Object has been removed” errors on getEmbeddedObject()… ?
Is this a bug? Anybody have a clue on this recycling and when to use it and when not???