Openbravo Issue Tracking System - Openbravo ERP | |||||||||||||||||||||
| View Issue Details | |||||||||||||||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||||||||||
| 0030120 | Openbravo ERP | 09. Financial management | public | 2015-06-07 15:28 | 2015-06-11 00:49 | ||||||||||||||||
| Reporter | mtaal | ||||||||||||||||||||
| Assigned To | AtulOpenbravo | ||||||||||||||||||||
| Priority | normal | Severity | minor | Reproducibility | have not tried | ||||||||||||||||
| Status | closed | Resolution | fixed | ||||||||||||||||||
| Platform | OS | 5 | OS Version | ||||||||||||||||||
| Product Version | |||||||||||||||||||||
| Target Version | 3.0PR15Q3 | Fixed in Version | |||||||||||||||||||
| Merge Request Status | |||||||||||||||||||||
| Review Assigned To | vmromanos | ||||||||||||||||||||
| OBNetwork customer | No | ||||||||||||||||||||
| Web browser | |||||||||||||||||||||
| Modules | Core | ||||||||||||||||||||
| Support ticket | |||||||||||||||||||||
| Regression level | |||||||||||||||||||||
| Regression date | |||||||||||||||||||||
| Regression introduced in release | |||||||||||||||||||||
| Regression introduced by commit | |||||||||||||||||||||
| Triggers an Emergency Pack | No | ||||||||||||||||||||
| Summary | 0030120: ScrollableResults object should be closed | ||||||||||||||||||||
| Description | In Oracle not closing a ScrollableResults results in a memory leak. I found several places in the functional code where this was indeed not done. These are listed below. | ||||||||||||||||||||
| Steps To Reproduce | See these classes: org.openbravo.costing.LandedCostDistributionByAmount org.openbravo.costing.LandedCostProcess org.openbravo.costing.LCMatchingProcess org.openbravo.costing.StandardCostAdjustment org.openbravo.event.GLJournalEventHandler (close is within if block, should not) | ||||||||||||||||||||
| Proposed Solution | close the ScrollableResults in a finally block: ScrollableResults receiptamts = qryLCRLA.scroll(ScrollMode.FORWARD_ONLY); int i = 0; try { while (receiptamts.next()) { log.debug("Process receipt amounts"); Object[] receiptAmt = receiptamts.get(); } } finally { receiptamts.close(); } | ||||||||||||||||||||
| Additional Information | |||||||||||||||||||||
| Tags | No tags attached. | ||||||||||||||||||||
| Relationships |
| ||||||||||||||||||||
| Attached Files | |||||||||||||||||||||
| Issue History | |||||||||||||||||||||
| Date Modified | Username | Field | Change | ||||||||||||||||||
| 2015-06-07 15:28 | mtaal | New Issue | |||||||||||||||||||
| 2015-06-07 15:28 | mtaal | Assigned To | => Triage Finance | ||||||||||||||||||
| 2015-06-07 15:28 | mtaal | OBNetwork customer | => No | ||||||||||||||||||
| 2015-06-07 15:28 | mtaal | Modules | => Core | ||||||||||||||||||
| 2015-06-07 15:28 | mtaal | Triggers an Emergency Pack | => No | ||||||||||||||||||
| 2015-06-07 15:29 | mtaal | Relationship added | related to 0030119 | ||||||||||||||||||
| 2015-06-07 15:33 | mtaal | Relationship added | related to 0030118 | ||||||||||||||||||
| 2015-06-10 06:02 | AtulOpenbravo | Assigned To | Triage Finance => AtulOpenbravo | ||||||||||||||||||
| 2015-06-10 06:02 | AtulOpenbravo | Status | new => scheduled | ||||||||||||||||||
| 2015-06-10 17:04 | hgbot | Checkin | |||||||||||||||||||
| 2015-06-10 17:04 | hgbot | Note Added: 0078186 | |||||||||||||||||||
| 2015-06-10 17:04 | hgbot | Status | scheduled => resolved | ||||||||||||||||||
| 2015-06-10 17:04 | hgbot | Resolution | open => fixed | ||||||||||||||||||
| 2015-06-10 17:04 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/ba00fcc9d5bf81ba13af873a3ba95a9af9131009 [^] | ||||||||||||||||||
| 2015-06-10 17:05 | hgbot | Checkin | |||||||||||||||||||
| 2015-06-10 17:05 | hgbot | Note Added: 0078187 | |||||||||||||||||||
| 2015-06-10 17:06 | vmromanos | Review Assigned To | => vmromanos | ||||||||||||||||||
| 2015-06-10 17:06 | vmromanos | Note Added: 0078188 | |||||||||||||||||||
| 2015-06-10 17:06 | vmromanos | Status | resolved => closed | ||||||||||||||||||
| 2015-06-11 00:49 | hudsonbot | Checkin | |||||||||||||||||||
| 2015-06-11 00:49 | hudsonbot | Note Added: 0078201 | |||||||||||||||||||
| 2015-06-11 00:49 | hudsonbot | Checkin | |||||||||||||||||||
| 2015-06-11 00:49 | hudsonbot | Note Added: 0078202 | |||||||||||||||||||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||