Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0029952 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
backport | [Openbravo ERP] A. Platform | major | have not tried | 2015-05-15 14:03 | 2015-05-25 11:11 | |||
Reporter | yogaskarnik | View Status | public | |||||
Assigned To | alostale | |||||||
Priority | immediate | Resolution | fixed | Fixed in Version | 3.0PR15Q1.5 | |||
Status | closed | Fix in branch | Fixed in SCM revision | 44696cd0caad | ||||
Projection | none | ETA | none | Target Version | 3.0PR15Q1.5 | |||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Merge Request Status | ||||||||
Review Assigned To | AugustoMauch | |||||||
OBNetwork customer | OBPS | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Support ticket | 36197 | |||||||
Regression level | Production - Confirmed Stable | |||||||
Regression date | 2014-10-28 | |||||||
Regression introduced in release | 3.0PR15Q1 | |||||||
Regression introduced by commit | https://code.openbravo.com/erp/devel/pi/rev/205fdc530e408b51a16a4d596c639339c607af95 [^] | |||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0029952: ProcessBundle.setCloseConnection(false) has no impact when using DalBaseProcess, the connection is always closed | |||||||
Description | DalBaseProcess closes the connection when called from another process. When you explicitly set the value to false for closeConnection method of bundle object, following error occurs: javax.servlet.ServletException: @CODE=@connnection proxy not usable after transaction completion at org.openbravo.scheduling.ProcessRequestData.update(ProcessRequestData.java:26 9) at org.openbravo.scheduling.ProcessRunner.execute(ProcessRunner.java:93) | |||||||
Steps To Reproduce | 1. Write a custom process extending DalBaseProcess 2. set bundle.setCloseConnection() to false | |||||||
Tags | Approved | |||||||
Attached Files | ||||||||
![]() |
||||||||
|
![]() |
|
(0077654) hgbot (developer) 2015-05-22 10:45 |
Repository: erp/backports/3.0PR15Q1.5 Changeset: 44696cd0caad9435f8df5e9db1a90fc0b501a252 Author: Asier Lostalé <asier.lostale <at> openbravo.com> Date: Thu May 21 09:39:04 2015 +0200 URL: http://code.openbravo.com/erp/backports/3.0PR15Q1.5/rev/44696cd0caad9435f8df5e9db1a90fc0b501a252 [^] fixed bug 29952: ProcessBundle.setCloseConnection(false) closes connection When a process is invoked through ProcessRunner and its bundle is set as setCloseConnection(false) there were 2 problems: - connection was close after execution so it could not be reused by another process invoking it - ProcessRunner tried to update the process run status on a closed connection causing an error The problem is caused by the fix for issue 0027878 which correctly closes the connection in DalConnectionProvider when invoking releaseCommitConnection. But when setCloseConnection it relied in that bug not closing the connection to leave it open. The solution consists in doing directly the commit or rollback in DalBaseProcess without closing the connection. --- M src/org/openbravo/service/db/DalBaseProcess.java --- |
(0077692) AugustoMauch (administrator) 2015-05-25 11:11 |
Code reviewed and verified in [1]@3847b902dc3f [1] https://code.openbravo.com/erp/backports/3.0PR15Q1.5/ [^] |
![]() |
|||
Date Modified | Username | Field | Change |
2015-05-21 09:30 | alostale | Type | defect => backport |
2015-05-21 09:30 | alostale | Target Version | 3.0PR15Q3 => 3.0PR15Q1.4 |
2015-05-22 08:43 | alostale | Target Version | 3.0PR15Q1.4 => 3.0PR15Q1.5 |
2015-05-22 08:44 | alostale | Review Assigned To | => AugustoMauch |
2015-05-22 08:44 | alostale | OBNetwork customer | No => Yes |
2015-05-22 09:43 | dmitry_mezentsev | Tag Attached: Approved | |
2015-05-22 10:45 | hgbot | Checkin | |
2015-05-22 10:45 | hgbot | Note Added: 0077654 | |
2015-05-22 10:45 | hgbot | Status | scheduled => resolved |
2015-05-22 10:45 | hgbot | Resolution | open => fixed |
2015-05-22 10:45 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/backports/3.0PR15Q1.5/rev/44696cd0caad9435f8df5e9db1a90fc0b501a252 [^] |
2015-05-25 11:11 | AugustoMauch | Note Added: 0077692 | |
2015-05-25 11:11 | AugustoMauch | Status | resolved => closed |
2015-05-25 11:11 | AugustoMauch | Fixed in Version | => 3.0PR15Q1.5 |
Copyright © 2000 - 2009 MantisBT Group |