Notes |
|
|
The problem seems to be that the query is cancelled in the backend because it times out, see https://issues.openbravo.com/view.php?id=36263 [^]
I executed the query without a timeout and it took 0000176:0000040 seconds. The query timeout in Openbravo is set to the timeout of the request, which in this case is 15 seconds. |
|
|
|
The cause of the problem is a combination of the retry mechanism, the change in 36263, and the fact that the enyo ajax request component can trigger the failure callback and then the success callback if the request returns a response after reaching the timeout.
The solution, as we did in other places, is to ensure that after the request has failed, it remains blocked and the success callback cannot be triggered. |
|
|
(0099768)
|
hgbot
|
2017-10-04 16:32
|
|
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: d00d2e25c258c06f94699ae44987fcd4370a8628
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Wed Oct 04 13:24:02 2017 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/d00d2e25c258c06f94699ae44987fcd4370a8628 [^]
Fixed issue 0036698: [RR17Q3][StoreServer][HighVol] Searching for Layaways only one record is shown and it is "Undefined"
- Handle exceptions when loading receipts from backend
---
M web/org.openbravo.retail.posterminal/js/components/modalmultiorders.js
M web/org.openbravo.retail.posterminal/js/components/modalpaidreceipts.js
---
|
|
|
|
It is happening in pi with high volumes. When PaidReceiptsHeader servlet returns an error or gives timeout we do not handle the error and it creates a row.
- Login in backend and enable remote preferences
- Add an Exception or a breakpoint in PaidReceiptsHeader.java
- Login in Web POS and select in the menu "Layaways" option
- Search without any filter and you get the error |
|
|
|
In case of error without exception (Should not happen but its better to be ready) web POS should show a generic error. |
|
|
(0100195)
|
hgbot
|
2017-10-31 16:13
|
|
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 07f9cb6f7e710725ff5906cccea9aeeb8c03b8e7
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Tue Oct 31 16:12:46 2017 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/07f9cb6f7e710725ff5906cccea9aeeb8c03b8e7 [^]
Fixed issue 0036698: [RR17Q3][StoreServer][HighVol] Searching for Layaways only one record is shown and it is "Undefined"
- If it fails we have to show the message always, not just when data.exception exists
---
M web/org.openbravo.retail.posterminal/js/components/modalmultiorders.js
M web/org.openbravo.retail.posterminal/js/components/modalpaidreceipts.js
---
|
|