Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0008327Openbravo ERPA. Platformpublic2009-03-27 15:572009-09-30 00:00
villind 
shuehner 
normalmajoralways
closedno change required 
5
2.40MP3 
 
No
Core
No
0008327: Setting log level to DEBUG causes connection leak in AcctServer.
The array bonds are not checked before it is used (AcctServer.java:281). This causes connection leak.


Exception:
java.lang.ArrayIndexOutOfBoundsException: 0
        at org.openbravo.erpCommon.ad_forms.AcctServer.run(AcctServer.java:281)
        at org.openbravo.erpCommon.ad_background.PeriodicAcctServer.processPL(PeriodicAcctServer.java:100)
        at org.openbravo.erpCommon.ad_background.PeriodicBackground.process(PeriodicBackground.java:209)
        at org.openbravo.erpCommon.ad_background.PeriodicBackground.run(PeriodicBackground.java:160)
        at java.lang.Thread.run(Thread.java:619)
Set log level to debug for org.openbravo.erpCommon.ad_forms.AcctServer

Fix the logging statement and also move connection closing to finally block.
No tags attached.
depends on backport 0008363 closed shuehner Setting log level to DEBUG causes connection leak in AcctServer. 
Issue History
2009-03-27 15:57villindNew Issue
2009-03-27 15:57villindAssigned To => rafaroda
2009-03-27 15:57villindOBNetwork customer => No
2009-03-27 15:57villindRegression testing => No
2009-03-31 12:34psarobeStatusnew => scheduled
2009-03-31 12:34psarobeAssigned Torafaroda => shuehner
2009-03-31 12:34psarobefix_in_branch => pi
2009-09-29 15:19shuehnerStatusscheduled => closed
2009-09-29 15:19shuehnerNote Added: 0020529
2009-09-29 15:19shuehnerResolutionopen => no change required
2009-09-30 00:00anonymoussf_bug_id0 => 2870158

Notes
(0020529)
shuehner   
2009-09-29 15:19   
No change is required in pi as this commit '4841:e60855cb6805' for issue 9984 did add the missing array bounds check.