Author: sascharodekamp
Date: Wed Sep 21 07:39:43 2011
New Revision: 1173519
URL:
http://svn.apache.org/viewvc?rev=1173519&view=revLog:
EntityListIterator not being closed after storing incoming email (
https://issues.apache.org/jira/browse/OFBIZ-4424). A slightly modified patch from Varun Bhansaly which closes the entity Iterator after use: CommunicationEventServices.buildListOfWorkEffortInfoFromEmailAddresses() does not close the entity list iterator resulting in error messages.
Modified:
ofbiz/branches/release10.04/applications/party/src/org/ofbiz/party/communication/CommunicationEventServices.java
Modified: ofbiz/branches/release10.04/applications/party/src/org/ofbiz/party/communication/CommunicationEventServices.java
URL:
http://svn.apache.org/viewvc/ofbiz/branches/release10.04/applications/party/src/org/ofbiz/party/communication/CommunicationEventServices.java?rev=1173519&r1=1173518&r2=1173519&view=diff==============================================================================
--- ofbiz/branches/release10.04/applications/party/src/org/ofbiz/party/communication/CommunicationEventServices.java (original)
+++ ofbiz/branches/release10.04/applications/party/src/org/ofbiz/party/communication/CommunicationEventServices.java Wed Sep 21 07:39:43 2011
@@ -1106,6 +1106,12 @@ public class CommunicationEventServices
tempResults.addAll(filteredList);
} catch (GenericEntityException e) {
Debug.logError(e, module);
+ } finally {
+ try {
+ listIt.close();
+ } catch (GenericEntityException e) {
+ Debug.logError(e, module);
+ }
}
}
}