On Thu, Mar 11, 2010 at 9:55 PM, Kiran Ayyagari <[email protected]> wrote: > can you paste the code for your getDN() and cleanUp() methods too
private String getDN(Cursor<SearchResponse> cursor) throws Exception {
Entry entry = ((SearchResultEntry) cursor.get()).getEntry();
DN dn = entry.getDn();
return dn.toString();
}
private void cleanUp(Cursor<SearchResponse> cursor) {
if (cursor != null) {
try {
cursor.close();
} catch (Exception e) {
logger.error("Error closing cursor");
}
}
}
