Openbravo Issue Tracking System - Retail Modules
View Issue Details
0030793Retail ModulesWeb POSpublic2015-09-08 13:052015-09-23 11:58
mtaal 
mtaal 
normalminorhave not tried
closedfixed 
5
 
RR15Q4RR15Q4 
migueldejuana
No
0030793: Message in log: Session handler present after processing import entry, this indicates that the process
The message appears and is displayed when there is a customer in the import entry table to be processed and an order is then processed.

In the order loader runnable there is this check and return:
https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/file/f0e2cb00d01a/src/org/openbravo/retail/posterminal/importprocess/OrderImportEntryProcessor.java#l55 [^]

In this case the method returns but does not close the hibernate session, causing this code to be log the warn:
https://code.openbravo.com/erp/devel/pi/file/2e489927aed8/src/org/openbravo/service/importprocess/ImportEntryProcessor.java#l335 [^]
Put a breakpoint in the CustomerLoader
Run server in debug mode
Create customer in webpos, breakpoint on the server gets hit, let this thread wait
Create order from webpos
Check the log
Close and commit when returning if there are customers in the import queue
No tags attached.
Issue History
2015-09-08 13:05mtaalNew Issue
2015-09-08 13:05mtaalAssigned To => mtaal
2015-09-08 13:05mtaalTriggers an Emergency Pack => No
2015-09-09 08:53hgbotCheckin
2015-09-09 08:53hgbotNote Added: 0080259
2015-09-09 08:53hgbotStatusnew => resolved
2015-09-09 08:53hgbotResolutionopen => fixed
2015-09-09 08:53hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/58a82e2b60ad2ea404b9353b70a67517e5437e9a [^]
2015-09-23 09:05mtaalReview Assigned To => migueldejuana
2015-09-23 11:58migueldejuanaNote Added: 0080575
2015-09-23 11:58migueldejuanaStatusresolved => closed
2015-09-23 11:58migueldejuanaFixed in Version => RR15Q4

Notes
(0080259)
hgbot   
2015-09-09 08:53   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 58a82e2b60ad2ea404b9353b70a67517e5437e9a
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Tue Sep 08 13:12:06 2015 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/58a82e2b60ad2ea404b9353b70a67517e5437e9a [^]

Fixes issue 30793: Message in log: Session handler present after processing import entry, this indicates that the process
Close hb session when handling order

---
M src/org/openbravo/retail/posterminal/importprocess/OrderImportEntryProcessor.java
---
(0080575)
migueldejuana   
2015-09-23 11:58   
Tested and reviewed in 33b888e3001b