Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0010560Openbravo ERP09. Financial managementpublic2009-09-11 11:222011-07-05 10:38
villind 
eduardo_Argal 
normalmajorsometimes
closedduplicate 
5
2.40MP8 
 
Core
No
0010560: Connection leak in AcctServer if anything goes wrong
AcctServer does not close connections if exceprions occur.
Add finally block that closes connections.

See the attached patch.
No tags attached.
duplicate of backport 0017876 closed jonalegriaesarte DB connection gets lost without any reason 
diff AcctServerConnectionLeakFix.diff (1,484) 2009-09-11 11:22
https://issues.openbravo.com/file_download.php?file_id=1737&type=bug
Issue History
2009-09-11 11:22villindNew Issue
2009-09-11 11:22villindAssigned To => rafaroda
2009-09-11 11:22villindFile Added: AcctServerConnectionLeakFix.diff
2009-09-18 14:01rafarodaNote Added: 0020206
2009-09-18 14:01rafarodaAssigned Torafaroda => eduardo_Argal
2009-09-18 14:01rafarodaStatusnew => feedback
2009-09-18 14:09villindNote Added: 0020209
2009-09-22 17:19villindNote Added: 0020277
2009-09-22 17:19villindStatusfeedback => new
2009-09-29 23:00psarobeStatusnew => scheduled
2009-09-29 23:00psarobefix_in_branch => pi
2011-07-05 10:38adrianromeroRelationship addedduplicate of 0017876
2011-07-05 10:38adrianromeroStatusscheduled => closed
2011-07-05 10:38adrianromeroResolutionopen => duplicate

Notes
(0020206)
rafaroda   
2009-09-18 14:01   
Thanks Ville for the patch, but could you please provide some steps to reproduce this issue?

Thanks.
(0020209)
villind   
2009-09-18 14:09   
Anything that causes exception to be thrown. For example accounting definition for a table that AcctServer cannot handle.

As the connection closing is not in the finally block there is always possiblity for a connection leak.
(0020277)
villind   
2009-09-22 17:19   
Feedback provided