Openbravo Issue Tracking System - Retail Modules
View Issue Details
0028837Retail ModulesWeb POSpublic2015-02-02 13:042015-02-04 13:41
rafademiguel 
rafademiguel 
normalminorhave not tried
closedfixed 
5
 
RR15Q2 
marvintm
No
0028837: Order Loader does not show the real error in openbravo.log
Sometimes the order Loader does not show the real error in openbravo.log

If you get an error on method saveRecord of OrderLoader you will see in the log:

Could not execute JDBC batch update. But you don't see the real error even in the NextException method.

This is because the finally statement performs a flush and, if the flush raise an exception, the real exception get lost.
Get an error in the saveRecord of OrderLoader.

Look at openbravo.log
Catch the exception and log it before the flush.
No tags attached.
Issue History
2015-02-02 13:04rafademiguelNew Issue
2015-02-02 13:04rafademiguelAssigned To => marvintm
2015-02-02 13:04rafademiguelTriggers an Emergency Pack => No
2015-02-02 13:08hgbotCheckin
2015-02-02 13:08hgbotNote Added: 0073984
2015-02-02 13:08hgbotStatusnew => resolved
2015-02-02 13:08hgbotResolutionopen => fixed
2015-02-02 13:08hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/c6b9fda1c1fcd3a6802f9ac5c80997bae81ac7ba [^]
2015-02-04 13:41marvintmAssigned Tomarvintm => rafademiguel
2015-02-04 13:41marvintmReview Assigned To => marvintm
2015-02-04 13:41marvintmStatusresolved => closed
2015-02-04 13:41marvintmFixed in Version => RR15Q2

Notes
(0073984)
hgbot   
2015-02-02 13:08   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: c6b9fda1c1fcd3a6802f9ac5c80997bae81ac7ba
Author: Rafa de Miguel <rafael.demiguel <at> openbravo.com>
Date: Mon Feb 02 13:07:43 2015 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/c6b9fda1c1fcd3a6802f9ac5c80997bae81ac7ba [^]

Fixed issue 28837: Order Loader does not show the real error in openbravo.log

---
M src/org/openbravo/retail/posterminal/OrderLoader.java
---