Openbravo Issue Tracking System - Openbravo ERP | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0022737 | Openbravo ERP | A. Platform | public | 2013-01-08 13:22 | 2013-01-18 20:26 | |||||||
Reporter | mtaal | |||||||||||
Assigned To | mtaal | |||||||||||
Priority | normal | Severity | minor | Reproducibility | have not tried | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | 3.0MP18.1 | |||||||||||
Target Version | 3.0MP20 | Fixed in Version | 3.0MP20 | |||||||||
Merge Request Status | ||||||||||||
Review Assigned To | AugustoMauch | |||||||||||
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 | 0022737: Close preparedstatement in DalSessionFactory | |||||||||||
Description | The DalSessionFactory.openSession creates a preparedstatement but does not close it. This should be done. | |||||||||||
Steps To Reproduce | DalSessionFactory.openSession check the code | |||||||||||
Proposed Solution | Close the preparedstatement in a finally statement: PreparedStatement pstmt = null; try { final String dbSessionConfig = props.getProperty("bbdd.sessionConfig"); pstmt = conn.prepareStatement(dbSessionConfig); pstmt.executeQuery(); } catch (Exception e) { throw new IllegalStateException(e); } finally { try { if (pstmt != null && !pstmt.isClosed()) { pstmt.close(); } } catch (SQLException e) { throw new OBException(e); } } | |||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | ||||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2013-01-08 13:22 | mtaal | New Issue | ||||||||||
2013-01-08 13:22 | mtaal | Assigned To | => mtaal | |||||||||
2013-01-08 13:22 | mtaal | Modules | => Core | |||||||||
2013-01-08 13:22 | mtaal | OBNetwork customer | => No | |||||||||
2013-01-08 13:22 | mtaal | Triggers an Emergency Pack | => No | |||||||||
2013-01-08 13:22 | mtaal | Review Assigned To | => AugustoMauch | |||||||||
2013-01-09 09:28 | AugustoMauch | Target Version | 3.0MP19 => 3.0MP20 | |||||||||
2013-01-14 10:48 | AugustoMauch | Status | new => scheduled | |||||||||
2013-01-14 10:48 | AugustoMauch | fix_in_branch | => pi | |||||||||
2013-01-16 13:37 | hgbot | Checkin | ||||||||||
2013-01-16 13:37 | hgbot | Note Added: 0055545 | ||||||||||
2013-01-16 13:37 | hgbot | Status | scheduled => resolved | |||||||||
2013-01-16 13:37 | hgbot | Resolution | open => fixed | |||||||||
2013-01-16 13:37 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/9b99a04c51e9ff85b095f7b1eb7bdb2f8a26e7e1 [^] | |||||||||
2013-01-17 16:21 | AugustoMauch | Note Added: 0055572 | ||||||||||
2013-01-17 16:21 | AugustoMauch | Status | resolved => closed | |||||||||
2013-01-17 16:21 | AugustoMauch | Fixed in Version | => 3.0MP20 | |||||||||
2013-01-18 20:26 | hudsonbot | Checkin | ||||||||||
2013-01-18 20:26 | hudsonbot | Note Added: 0055634 | ||||||||||
2013-01-29 15:55 | egoitz | Relationship added | related to 0022923 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|