Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0003404Openbravo ERPC. Securitypublic2007-10-25 00:132009-05-20 07:21
roklenardic 
anthony_wolski 
normalminoralways
closedfixed 
5
 
2.50 
Core
No
0003404: Background processes
In HttpSecureAppServlet.java, line 130 we have the following code

          try {
          object = new PeriodicBackground(this, Long.parseLong(strPeriodicBackgroundTime), strLogFileAcctServer, backgroundData[countBack].id, backgroundData[countBack].classname);
          } catch (IOException ioe) {
            ioe.printStackTrace();
          }

In case tomcat cannot write in the folder where the strLogFileAcctServer is put, all background processes fail to initialize/execute and noone ever knows about this. In case of Background accounting process, this is a huge issue.
instead of ioe.printStackTrace(); there should at least be log4j logging there.

On the other hand, there should be some kind of special logging/alerting for system critical processes such as background accounting so that the admin can see if they fail. maybe Alerts could be used for that. regardless, the exception catch there should be logged better.
No tags attached.
blocks feature request 00041472.50 closed anthony_wolski Background process management 
Issue History
2008-06-27 16:16pjuvaraRelationship addedblocks 0004147
2008-06-27 16:17pjuvaraAssigned Touser71 => anthony_wolski
2008-06-27 16:17pjuvaraStatusnew => acknowledged
2008-11-03 13:25pjuvaraStatusacknowledged => scheduled
2008-11-03 13:25pjuvarafix_in_branch => trunk
2008-11-03 13:25pjuvaraStatusscheduled => resolved
2008-11-03 13:25pjuvaraFixed in Version => 2.50
2008-11-03 13:25pjuvarasvn_revision => na
2008-11-03 13:25pjuvaraResolutionopen => fixed
2009-05-20 07:21pjuvaraStatusresolved => closed

Notes
(0006993)
user71   
2005-06-01 00:00   
(edited on: 2008-06-12 09:44)
This bug was originally reported in SourceForge bug tracker and then migrated to Mantis.

You can see the original bug report in:
https://sourceforge.net/support/tracker.php?aid=1819619 [^]