Openbravo Issue Tracking System - Retail Modules
View Issue Details
0038332Retail ModulesWeb POSpublic2018-04-11 13:282018-05-10 17:02
gorka_gil 
gorka_gil 
highminorsometimes
closedfixed 
5
 
RR18Q3 
marvintm
No
0038332: In jenkins somtimes fails the the logClientLoader
The log of the error:

(1) errors in the browser log:
[2018-04-09T09:23:59+0000] [SEVERE] http://127.0.0.1/ret-qa-test-oracle-suite3/web/js/gen/2ebc3912de8ee1c62d947e20dc0681e4.js [^] 1298:18 "servicePOST error: 0, source: org.openbravo.mobile.core.utils.LogClientLoader"

Example build:
http://ci.openbravo.com/view/retail-qa/job/ret-qa-test-oracle-suite3/3750/testReport/junit/org.openbravo.test.mobile.retail.pack.selenium.tests.receipts/I34968_ReceiptPayOpenTicket/test/ [^]
-
No tags attached.
Issue History
2018-04-11 13:28gorka_gilNew Issue
2018-04-11 13:28gorka_gilAssigned To => gorka_gil
2018-04-11 13:28gorka_gilTriggers an Emergency Pack => No
2018-04-11 14:00hgbotCheckin
2018-04-11 14:00hgbotNote Added: 0103809
2018-04-11 14:00gorka_gilStatusnew => scheduled
2018-04-18 19:57hgbotCheckin
2018-04-18 19:57hgbotNote Added: 0103982
2018-04-18 19:57hgbotStatusscheduled => resolved
2018-04-18 19:57hgbotResolutionopen => fixed
2018-04-18 19:57hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/ad2318f5a6d62d7e6d29bef93864442866925a30 [^]
2018-04-27 14:15gorka_gilNote Added: 0104164
2018-04-27 14:15gorka_gilStatusresolved => closed
2018-04-27 14:16gorka_gilNote Deleted: 0104164
2018-04-27 14:16gorka_gilStatusclosed => new
2018-04-27 14:16gorka_gilResolutionfixed => open
2018-04-27 14:16gorka_gilStatusnew => scheduled
2018-04-27 14:16gorka_gilStatusscheduled => resolved
2018-04-27 14:16gorka_gilResolutionopen => fixed
2018-05-10 17:02marvintmReview Assigned To => marvintm
2018-05-10 17:02marvintmStatusresolved => closed
2018-05-10 17:02marvintmFixed in Version => RR18Q3

Notes
(0103809)
hgbot   
2018-04-11 14:00   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: b961ba7b88a91daf671aeac1145c87c89bdeea22
Author: Gorka Gil <gorka.gil <at> openbravo.com>
Date: Wed Apr 11 13:59:25 2018 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/b961ba7b88a91daf671aeac1145c87c89bdeea22 [^]

Related to issue 38332: Improve manage and logging of logClientLoader errors

---
M src/org/openbravo/mobile/core/utils/LogClientLoader.java
---
(0103982)
hgbot   
2018-04-18 19:57   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: ad2318f5a6d62d7e6d29bef93864442866925a30
Author: Gorka Gil <gorka.gil <at> openbravo.com>
Date: Wed Apr 18 19:55:09 2018 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/ad2318f5a6d62d7e6d29bef93864442866925a30 [^]

Fixes issue 38332: Remove log line

Not clear what is the problem, but this console line is only printed in debug,
so only is print in jenkins tests but not in any production instance,
also the situation of retry when fail to send the logClient is working correctly.
So disabled this log since adds no value.

Note that for add more info to this error is needed to edit the enyo library (enyo.js - line 1034):
receive: function(e, t) {
!this.failed && !this.destroyed && (this.isFailure(t) ? this.fail(t.status) : this.respond(this.xhrToResponse(t)));
},

And change this:
  "? this.fail(t.status)"
to something like this:
  "? this.fail(t)"

So instead to have only the error code, we can get the error message, but this change is in the code used by all
pos requests so totally discarded this option, and since it is not a problem it self, just removed the log
in the console of this error.

---
M web/org.openbravo.mobile.core/source/data/ob-datasource.js
---