Project:
View Revisions: Issue #45169 | [ Back to Issue ] | ||
Summary | 0045169: Sessions module uses bad logging (printStrackTrace) | ||
Revision | 2021-11-03 15:07 by shuehner | ||
Steps To Reproduce | pmods/org.openbravo.retail.sessions/src/org/openbravo/retail/sessions/CashUpDetailsDatasource.java: e.printStackTrace(); pmods/org.openbravo.retail.sessions/src/org/openbravo/retail/sessions/SetBusinessDate.java: e.printStackTrace(); |
||
Revision | 2021-11-03 15:07 by shuehner | ||
Description | Those bad logging example should be moved to proper log4j.error instead | ||
Revision | 2020-10-07 14:02 by shuehner | ||
Steps To Reproduce | unknown | ||
Revision | 2020-10-07 14:02 by shuehner | ||
Description | Any log info ending up in catalina.out is every bad - no date/time - no location - no info which webapp/context (i.e. livebuilds with many contexts at once) - File no rotated The following stacktrace (seen in livebuilds) ended up in catalina.out so apparently we miss some error handling catch all (if custom code for the entry type is not handling 'all possible exceptions' itself. java.text.ParseException: Unparseable date: "0NaN-NaN-NaN NaN:NaN:NaN.NaN" at java.base/java.text.DateFormat.parse(DateFormat.java:395) at org.openbravo.retail.sessions.SetBusinessDate.saveRecord(SetBusinessDate.java:41) at org.openbravo.mobile.core.process.DataSynchronizationProcess.saveRecord(DataSynchronizationProcess.java:201) at org.openbravo.mobile.core.process.DataSynchronizationProcess.exec(DataSynchronizationProcess.java:156) at org.openbravo.mobile.core.process.DataSynchronizationProcess.exec(DataSynchronizationProcess.java:88) at org.openbravo.mobile.core.process.MobileImportEntryProcessorRunnable.processEntry(MobileImportEntryProcessorRunnable.java:54) at org.openbravo.retail.sessions.SetBusinessDateEntryProcessor$SetBusinessDateRunnable.processEntry(SetBusinessDateEntryProcessor.java:73) at org.openbravo.service.importprocess.ImportEntryProcessor$ImportEntryProcessRunnable.doRunCycle(ImportEntryProcessor.java:372) at org.openbravo.service.importprocess.ImportEntryProcessor$ImportEntryProcessRunnable.run(ImportEntryProcessor.java:293) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:834) |
Copyright © 2000 - 2009 MantisBT Group |