Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0028056
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSmajorsometimes2014-11-03 15:102016-03-10 20:25
ReporterguilleaerView Statuspublic 
Assigned ToOrekaria 
PrioritynormalResolutionunable to reproduceFixed in VersionRR16Q2
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionRR14Q3.1SCM revision 
Review Assigned ToOrekaria
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0028056: Sometimes login gets stucked because asyncrony problems

DescriptionUsing 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 ReproduceLogin 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 Solutioninit cache one by one. Attached a patch provided by Rafa Alonso
TagsNo tags attached.
Attached Filesdiff file icon diffAsyncIssue.diff [^] (5,164 bytes) 2014-11-03 15:10 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]
depends on defect 0027465RR14Q4 closedOrekaria Stabilization: When 'setUserModelOnline' fails to save the current user info, the loading process fails 

-  Notes
(0084884)
Orekaria (administrator)
2016-03-10 20:25

no longer reproducible

- 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
Powered by Mantis Bugtracker