Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0015360 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] A. Platform | major | always | 2010-12-02 17:59 | 2010-12-30 13:13 | |||
Reporter | iperdomo | View Status | public | |||||
Assigned To | iperdomo | |||||||
Priority | urgent | Resolution | fixed | Fixed in Version | ||||
Status | closed | Fix in branch | pi | Fixed in SCM revision | a9676a2a9f36 | |||
Projection | none | ETA | none | Target Version | 2.50MP25 | |||
OS | Linux 32 bit | Database | PostgreSQL | Java version | 1.6.0_22 | |||
OS Version | 2.6.35-gentoo-r12 | Database version | 8.3.12 | Ant version | 1.7.1 | |||
Product Version | 2.50MP24 | SCM revision | ||||||
Review Assigned To | ||||||||
Web browser | ||||||||
Modules | Core | |||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0015360: ModelProvider.getTable() throws a NPE when using it after tomcat startup | |||||||
Description | The Hash holding a Map<tableName, Table> in ModelProvider is cleared at the end of initialize method. If in the application you use ModelProvider.getInstance().getTable("someTable") throws a NPE, because the cache is null | |||||||
Proposed Solution | Don't clear the cache Map<tableName, Table> at the end of initialize(). Note: The difference in memory usage is just around 1MB. | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | |
Notes | |
(0033017) hgbot (developer) 2010-12-02 18:03 |
Repository: erp/devel/pi Changeset: a9676a2a9f3611c3a6a0b53bb625e0735d256bd3 Author: Iván Perdomo <ivan.perdomo <at> openbravo.com> Date: Thu Dec 02 18:02:57 2010 +0100 URL: http://code.openbravo.com/erp/devel/pi/rev/a9676a2a9f3611c3a6a0b53bb625e0735d256bd3 [^] Fixes issue 15360: Fixes NPE when using ModelProvider.getTable() --- M src/org/openbravo/base/model/ModelProvider.java --- |
(0033022) hudsonbot (developer) 2010-12-02 22:39 |
A changeset related to this issue has been promoted to main after passing a series of tests and an OBX has been generated: Changeset: http://code.openbravo.com/erp/devel/main/rev/a9676a2a9f36 [^] Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/b6b73cb61471 [^] Tests: http://builds.openbravo.com/view/int/ [^] OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.19065.obx [^] |
(0033147) hgbot (developer) 2010-12-14 09:51 |
Repository: erp/devel/pi Changeset: 49e9e8c160024ba8bd89059cbae1803525e75310 Author: Antonio Moreno <antonio.moreno <at> openbravo.com> Date: Tue Dec 14 09:49:50 2010 +0100 URL: http://code.openbravo.com/erp/devel/pi/rev/49e9e8c160024ba8bd89059cbae1803525e75310 [^] Related to issue 15360. Added test --- M src-test/org/openbravo/test/dal/IssuesTest.java --- |
(0033148) marvintm (developer) 2010-12-14 09:51 |
The fix is correct. |
(0033439) hudsonbot (developer) 2010-12-30 13:13 |
A changeset related to this issue has been promoted to main after passing a series of tests and an OBX has been generated: Changeset: http://code.openbravo.com/erp/devel/main/rev/49e9e8c16002 [^] Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/7d7e5eebcc62 [^] Tests: http://builds.openbravo.com/view/int/ [^] OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.19448.obx [^] |
Issue History | |||
Date Modified | Username | Field | Change |
2010-12-02 17:59 | iperdomo | New Issue | |
2010-12-02 17:59 | iperdomo | Assigned To | => iperdomo |
2010-12-02 17:59 | iperdomo | Modules | => Core |
2010-12-02 17:59 | iperdomo | Status | new => scheduled |
2010-12-02 17:59 | iperdomo | fix_in_branch | => pi |
2010-12-02 18:03 | hgbot | Checkin | |
2010-12-02 18:03 | hgbot | Note Added: 0033017 | |
2010-12-02 18:03 | hgbot | Status | scheduled => resolved |
2010-12-02 18:03 | hgbot | Resolution | open => fixed |
2010-12-02 18:03 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/a9676a2a9f3611c3a6a0b53bb625e0735d256bd3 [^] |
2010-12-02 22:39 | hudsonbot | Checkin | |
2010-12-02 22:39 | hudsonbot | Note Added: 0033022 | |
2010-12-14 09:51 | hgbot | Checkin | |
2010-12-14 09:51 | hgbot | Note Added: 0033147 | |
2010-12-14 09:51 | marvintm | Note Added: 0033148 | |
2010-12-14 09:51 | marvintm | Status | resolved => closed |
2010-12-16 22:16 | anonymous | sf_bug_id | 0 => 3138803 |
2010-12-30 13:13 | hudsonbot | Checkin | |
2010-12-30 13:13 | hudsonbot | Note Added: 0033439 |
Copyright © 2000 - 2009 MantisBT Group |