Project:
| View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
| ID | ||||||||
| 0030120 | ||||||||
| Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
| defect | [Openbravo ERP] 09. Financial management | minor | have not tried | 2015-06-07 15:28 | 2015-06-11 00:49 | |||
| Reporter | mtaal | View Status | public | |||||
| Assigned To | AtulOpenbravo | |||||||
| Priority | normal | Resolution | fixed | Fixed in Version | ||||
| Status | closed | Fix in branch | Fixed in SCM revision | ba00fcc9d5bf | ||||
| Projection | none | ETA | none | Target Version | 3.0PR15Q3 | |||
| OS | Any | Database | Any | Java version | ||||
| OS Version | Database version | Ant version | ||||||
| Product Version | SCM revision | |||||||
| 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(); } | |||||||
| Tags | No tags attached. | |||||||
| Attached Files | ||||||||
Relationships [ Relation Graph ]
[ Dependency Graph ]
|
|||||||||||||||||
|
|||||||||||||||||
Notes |
|
|
(0078186) hgbot (developer) 2015-06-10 17:04 |
Repository: erp/devel/pi Changeset: ba00fcc9d5bf81ba13af873a3ba95a9af9131009 Author: Atul Gaware <atul.gaware <at> openbravo.com> Date: Wed Jun 10 09:56:13 2015 +0530 URL: http://code.openbravo.com/erp/devel/pi/rev/ba00fcc9d5bf81ba13af873a3ba95a9af9131009 [^] Fixes Issue 30120:ScrollableResults object should be closed ScrollableResults objects are closed in a finally block. --- M src/org/openbravo/costing/LCMatchingProcess.java M src/org/openbravo/costing/LandedCostDistributionByAmount.java M src/org/openbravo/costing/LandedCostProcess.java M src/org/openbravo/costing/StandardCostAdjustment.java M src/org/openbravo/event/GLJournalEventHandler.java --- |
|
(0078187) hgbot (developer) 2015-06-10 17:05 |
Repository: erp/devel/pi Changeset: 4c6de7a747e1edb3d396337d066e3676286b675c Author: Víctor Martínez Romanos <victor.martinez <at> openbravo.com> Date: Wed Jun 10 17:02:19 2015 +0200 URL: http://code.openbravo.com/erp/devel/pi/rev/4c6de7a747e1edb3d396337d066e3676286b675c [^] Related to issue 30120: Applied OB code format --- M src/org/openbravo/costing/StandardCostAdjustment.java M src/org/openbravo/event/GLJournalEventHandler.java --- |
|
(0078188) vmromanos (viewer) 2015-06-10 17:06 |
Code review OK |
|
(0078201) hudsonbot (viewer) 2015-06-11 00:49 |
A changeset related to this issue has been promoted main and to the Central Repository, after passing a series of tests. Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/29888743cfde [^] Maturity status: Test |
|
(0078202) hudsonbot (viewer) 2015-06-11 00:49 |
A changeset related to this issue has been promoted main and to the Central Repository, after passing a series of tests. Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/29888743cfde [^] Maturity status: Test |
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 | |
| Copyright © 2000 - 2009 MantisBT Group |