Openbravo Issue Tracking System - Retail Modules
View Issue Details
0031350Retail ModulesWeb POSpublic2015-11-03 16:382015-11-05 14:05
mtaal 
Retail 
normalminorhave not tried
closedfixed 
5
 
RR15Q4RR15Q4 
marvintm
No
0031350: Many warnings in log generated by import entry code when a cashup can not be processed
See this log:

f760168d 2015-11-03 11:20:06,095 [Import Entry - 3] WARN org.openbravo.retail.posterminal.importprocess.CashUpImportEntryProcessor$CashUpRunnable - Session handler present after processing import entry, this indicates that the processing code does not correctly clean/close the session after its last actions. This should be fixed.
f760168d 2015-11-03 11:20:06,134 [Import Entry - 1] WARN org.openbravo.retail.posterminal.importprocess.CashUpImportEntryProcessor$CashUpRunnable - Session handler present after processing import entry, this indicates that the processing code does not correctly clean/close the session after its last actions. This should be fixed.
f760168d 2015-11-03 11:20:06,173 [Import Entry - 2] WARN org.openbravo.retail.posterminal.importprocess.CashUpImportEntryProcessor$CashUpRunnable - Session handler present after processing import entry, this indicates that the processing code does not correctly clean/close the session after its last actions. This should be fixed.
f760168d 2015-11-03 11:20:06,212 [Import Entry - 3] WARN org.openbravo.retail.posterminal.importprocess.CashUpImportEntryProcessor$CashUpRunnable - Session handler present after processing import entry, this indicates that the processing code does not correctly clean/close the session after its last actions. This should be fixed.
f760168d 2015-11-03 11:20:06,250 [Import Entry - 1] WARN org.openbravo.retail.posterminal.importprocess.CashUpImportEntryProcessor$CashUpRunnable - Session handler present after processing import entry, this indicates that the processing code does not correctly clean/close the session after its last actions. This should be fixed.
f760168d 2015-11-03 11:20:06,290 [Import Entry - 2] WARN org.openbravo.retail.posterminal.importprocess.CashUpImportEntryProcessor$CashUpRunnable - Session handler present after processing import entry, this indicates that the processing code does not correctly clean/close the session after its last actions. This should be fixed.
f760168d 2015-11-03 11:20:06,329 [Import Entry - 3] WARN org.openbravo.retail.posterminal.importprocess.CashUpImportEntryProcessor$CashUpRunnable - Session handler present after processing import entry, this indicates that the processing code does not correctly clean/close the session after its last actions. This should be fixed.
f760168d 2015-11-03 11:20:06,369 [Import Entry - 1] WARN org.openbravo.retail.posterminal.importprocess.CashUpImportEntryProcessor$CashUpRunnable - Session handler present after processing import entry, this indicates that the processing code does not correctly clean/close the session after its last actions. This should be fixed.
Create an entry manually in import entry window in error state
Do a cashup in webpos
it won't be processed instead the above message is shown in the code
Add this line:

        // close and commit
        OBDal.getInstance().commitAndClose();

In case the processor code returns without committing in the following classes in the processEntry method:

CashUpImportEntryProcessor
CustomerAddrImportEntryProcessor

See OrderImportEntryProcessor.processEntry as an example
No tags attached.
blocks defect 0031340RR16Q1 closed mtaal Many warnings in log generated by import entry code when a cashup can not be processed 
Issue History
2015-11-04 09:41mtaalTypedefect => backport
2015-11-04 09:41mtaalTarget VersionRR16Q1 => RR15Q4
2015-11-04 09:42mtaalAssigned Tomtaal => Retail
2015-11-05 12:18mtaalReview Assigned To => mtaal
2015-11-05 13:57hgbotCheckin
2015-11-05 13:57hgbotNote Added: 0081523
2015-11-05 13:57hgbotStatusscheduled => resolved
2015-11-05 13:57hgbotResolutionopen => fixed
2015-11-05 13:57hgbotFixed in SCM revision => http://code.openbravo.com/retail/backports/3.0RR15Q4/org.openbravo.retail.posterminal/rev/355649f6df32130bec9bc6acb5510487d217ab19 [^]
2015-11-05 14:05marvintmReview Assigned Tomtaal => marvintm
2015-11-05 14:05marvintmStatusresolved => closed
2015-11-05 14:05marvintmFixed in Version => RR15Q4

Notes
(0081523)
hgbot   
2015-11-05 13:57   
Repository: retail/backports/3.0RR15Q4/org.openbravo.retail.posterminal
Changeset: 355649f6df32130bec9bc6acb5510487d217ab19
Author: Guillermo Alvarez de Eulate <guillermo.alvarez <at> openbravo.com>
Date: Thu Nov 05 13:57:16 2015 +0100
URL: http://code.openbravo.com/retail/backports/3.0RR15Q4/org.openbravo.retail.posterminal/rev/355649f6df32130bec9bc6acb5510487d217ab19 [^]

Fixes issue 31350: Many warnings in log generated by import entry code when a cashup can not be processed

Commit and close when returning early from processing import entry

---
M src/org/openbravo/retail/posterminal/importprocess/CashUpImportEntryProcessor.java
M src/org/openbravo/retail/posterminal/importprocess/CustomerAddrImportEntryProcessor.java
---