Openbravo Issue Tracking System - Retail Modules | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0028056 | Retail Modules | Web POS | public | 2014-11-03 15:10 | 2016-03-10 20:25 | |||||||
Reporter | guilleaer | |||||||||||
Assigned To | Orekaria | |||||||||||
Priority | normal | Severity | major | Reproducibility | sometimes | |||||||
Status | closed | Resolution | unable to reproduce | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | RR14Q3.1 | |||||||||||
Target Version | Fixed in Version | RR16Q2 | ||||||||||
Merge Request Status | ||||||||||||
Review Assigned To | Orekaria | |||||||||||
OBNetwork customer | ||||||||||||
Support ticket | ||||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0028056: Sometimes login gets stucked because asyncrony problems | |||||||||||
Description | Using 3.0RR14Q3.1 the login is not completed because asynchronous problems. It only happens in the first login just after clean the cache. If I try to debug the problem never happens. | |||||||||||
Steps To Reproduce | Login into web POS. A database error is shown in the console. [SQLTransaction, SQLError] "could not execute statement due to a constaint failure (19 constraint failed)" After some research I've detected that session model is loaded twice. That generate the problem. here the log. keypressHandler - keyCode: 13 - keyIdentifier: Enter - charCode: 0 - which: 13 http://localhost:8080/openbravo/web/js/gen/6d5c7e946bc374a2a9712dcd12e903c4_OBMOBCR.js:159:24 [^] 6d5c7e946bc374a2a9712dcd12e903c4_OBMOBCR.js:335 inside setUserModelOnline 6d5c7e946bc374a2a9712dcd12e903c4_OBMOBCR.js:210 initCache for user 6d5c7e946bc374a2a9712dcd12e903c4_OBMOBCR.js:210 inside initcache for model: x {modelName: "User", tableName: "ad_user", entityName: "User", source: "org.openbravo.retail.posterminal.User", properties: Array[8]…} 6d5c7e946bc374a2a9712dcd12e903c4_OBMOBCR.js:122 initCache for LogClient 6d5c7e946bc374a2a9712dcd12e903c4_OBMOBCR.js:210 inside initcache for model: x {modelName: "LogClient", tableName: "obmobc_logclient", entityName: "LogClient", source: "org.openbravo.mobile.core.master.LogClient", local: true…} 6d5c7e946bc374a2a9712dcd12e903c4_OBMOBCR.js:122 initCache for session 6d5c7e946bc374a2a9712dcd12e903c4_OBMOBCR.js:210 inside initcache for model: x {modelName: "Session", tableName: "ad_session", entityName: "Session", source: "org.openbravo.retail.posterminal.Session", properties: Array[6]…} 6d5c7e946bc374a2a9712dcd12e903c4_OBMOBCR.js:122 execute create statement for model: x {modelName: "User", tableName: "ad_user", entityName: "User", source: "org.openbravo.retail.posterminal.User", properties: Array[8]…} 6d5c7e946bc374a2a9712dcd12e903c4_OBMOBCR.js:125 execute create statement for model: x {modelName: "LogClient", tableName: "obmobc_logclient", entityName: "LogClient", source: "org.openbravo.mobile.core.master.LogClient", local: true…} 6d5c7e946bc374a2a9712dcd12e903c4_OBMOBCR.js:125 execute create statement for model: x {modelName: "Session", tableName: "ad_session", entityName: "Session", source: "org.openbravo.retail.posterminal.Session", properties: Array[6]…} 6d5c7e946bc374a2a9712dcd12e903c4_OBMOBCR.js:125 inside loadTerminalInfo 6d5c7e946bc374a2a9712dcd12e903c4_OBMOBCR.js:176 this.initLocalDB 6d5c7e946bc374a2a9712dcd12e903c4_OBMOBCR.js:177 init local db 6d5c7e946bc374a2a9712dcd12e903c4_OBMOBCR.js:180 init local db - opened 6d5c7e946bc374a2a9712dcd12e903c4_OBMOBCR.js:180 init local db - execute change version 6d5c7e946bc374a2a9712dcd12e903c4_OBMOBCR.js:182 init local db - execute change version but version are equals 6d5c7e946bc374a2a9712dcd12e903c4_OBMOBCR.js:182 init local db - trigger terminal info ready 6d5c7e946bc374a2a9712dcd12e903c4_OBMOBCR.js:183 inside triggerLoadTerminalInfoReady 6d5c7e946bc374a2a9712dcd12e903c4_OBMOBCR.js:176 inside triggerLoadTerminalInfoReady 6d5c7e946bc374a2a9712dcd12e903c4_OBMOBCR.js:176 inside triggerLoadTerminalInfoReady 6d5c7e946bc374a2a9712dcd12e903c4_OBMOBCR.js:176 inside setUserModelOnline 6d5c7e946bc374a2a9712dcd12e903c4_OBMOBCR.js:210 initCache for user 6d5c7e946bc374a2a9712dcd12e903c4_OBMOBCR.js:210 inside initcache for model: x {modelName: "User", tableName: "ad_user", entityName: "User", source: "org.openbravo.retail.posterminal.User", properties: Array[8]…} 6d5c7e946bc374a2a9712dcd12e903c4_OBMOBCR.js:122 initCache for LogClient 6d5c7e946bc374a2a9712dcd12e903c4_OBMOBCR.js:210 inside initcache for model: x {modelName: "LogClient", tableName: "obmobc_logclient", entityName: "LogClient", source: "org.openbravo.mobile.core.master.LogClient", local: true…} 6d5c7e946bc374a2a9712dcd12e903c4_OBMOBCR.js:122 initCache for session 6d5c7e946bc374a2a9712dcd12e903c4_OBMOBCR.js:210 inside initcache for model: x {modelName: "Session", tableName: "ad_session", entityName: "Session", source: "org.openbravo.retail.posterminal.Session", properties: Array[6]…} 6d5c7e946bc374a2a9712dcd12e903c4_OBMOBCR.js:122 execute create statement for model: x {modelName: "User", tableName: "ad_user", entityName: "User", source: "org.openbravo.retail.posterminal.User", properties: Array[8]…} 6d5c7e946bc374a2a9712dcd12e903c4_OBMOBCR.js:125 execute create statement for model: x {modelName: "LogClient", tableName: "obmobc_logclient", entityName: "LogClient", source: "org.openbravo.mobile.core.master.LogClient", local: true…} 6d5c7e946bc374a2a9712dcd12e903c4_OBMOBCR.js:125 execute create statement for model: x {modelName: "Session", tableName: "ad_session", entityName: "Session", source: "org.openbravo.retail.posterminal.Session", properties: Array[6]…} 6d5c7e946bc374a2a9712dcd12e903c4_OBMOBCR.js:125 -> error!! -> [SQLTransaction, SQLError] "" | |||||||||||
Proposed Solution | init cache one by one. Attached a patch provided by Rafa Alonso | |||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | diffAsyncIssue.diff (5,164) 2014-11-03 15:10 https://issues.openbravo.com/file_download.php?file_id=7461&type=bug | |||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2014-11-03 15:10 | guilleaer | New Issue | ||||||||||
2014-11-03 15:10 | guilleaer | Assigned To | => Orekaria | |||||||||
2014-11-03 15:10 | guilleaer | File Added: diffAsyncIssue.diff | ||||||||||
2014-11-03 15:10 | guilleaer | Triggers an Emergency Pack | => No | |||||||||
2014-11-25 15:10 | Orekaria | Relationship added | depends on 0027465 | |||||||||
2016-03-10 20:25 | Orekaria | Review Assigned To | => Orekaria | |||||||||
2016-03-10 20:25 | Orekaria | Note Added: 0084884 | ||||||||||
2016-03-10 20:25 | Orekaria | Status | new => closed | |||||||||
2016-03-10 20:25 | Orekaria | Resolution | open => unable to reproduce | |||||||||
2016-03-10 20:25 | Orekaria | Fixed in Version | => RR16Q2 |
Notes | |||||
|
|||||
|
|