Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0028056 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Retail Modules] Web POS | major | sometimes | 2014-11-03 15:10 | 2016-03-10 20:25 | |||
Reporter | guilleaer | View Status | public | |||||
Assigned To | Orekaria | |||||||
Priority | normal | Resolution | unable to reproduce | Fixed in Version | RR16Q2 | |||
Status | closed | Fix in branch | Fixed in SCM revision | |||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | RR14Q3.1 | SCM revision | ||||||
Review Assigned To | Orekaria | |||||||
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 | |||||||
Tags | No tags attached. | |||||||
Attached Files | diffAsyncIssue.diff [^] (5,164 bytes) 2014-11-03 15:10 [Show Content] | |||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | ||||||||
|
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 |
Copyright © 2000 - 2009 MantisBT Group |