Openbravo Issue Tracking System - Retail Modules
View Issue Details
0026955Retail ModulesWeb POSpublic2014-06-26 21:542014-09-22 13:28
Orekaria 
Orekaria 
normalmajorsometimes
closedfixed 
5
 
RR14Q4 
migueldejuana
No
0026955: Sometimes the ad_user_id is sent null to the backend provoking an error
Sometimes the ad_user_id is sent null to the backend provoking an error
Clean cache
Load the WebPOS
Rinse and repeat

Note: You can also run the AHundredWebPageLoads test from pi-mobile and eventually will happen


Verify that these tomcat error are logged:

2014-08-19 02:01:36,400 [TP-Processor12] ERROR org.openbravo.base.VariablesBase - setSessionValue error: #FormatOutput|amountInform:...#,##0.00
...
2014-08-19 02:01:36,401 [TP-Processor12] ERROR org.openbravo.base.VariablesBase - setSessionObject error: #FormatMap:...java.lang.IllegalStateException: setAttribute: Session already invalidated
...
2014-08-19 02:01:36,401 [TP-Processor12] ERROR org.openbravo.mobile.core.process.MobileService - HTTPSecureAppServlet.service() - exception caught:
javax.servlet.ServletException: SessionLogin load - user is null
    at org.openbravo.erpCommon.security.SessionLogin.<init>(SessionLogin.java:76)
    at org.openbravo.base.secureApp.HttpSecureAppServlet.saveLoginBD(HttpSecureAppServlet.java:1178)
    at org.openbravo.base.secureApp.HttpSecureAppServlet.service(HttpSecureAppServlet.java:317)
    at org.openbravo.client.kernel.BaseKernelServlet.callServiceInSuper(BaseKernelServlet.java:92)
    at org.openbravo.mobile.core.process.WebServiceAuthenticatedServlet.service(WebServiceAuthenticatedServlet.java:52)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.openbravo.utils.SessionExpirationFilter.doFilter(SessionExpirationFilter.java:66)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.openbravo.utils.CharsetFilter.doFilter(CharsetFilter.java:35)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.openbravo.client.kernel.KernelFilter$1.doAction(KernelFilter.java:62)
    at org.openbravo.dal.core.ThreadHandler.run(ThreadHandler.java:46)
    at org.openbravo.client.kernel.KernelFilter.doFilter(KernelFilter.java:71)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.openbravo.dal.core.DalRequestFilter$1.doAction(DalRequestFilter.java:81)
    at org.openbravo.dal.core.ThreadHandler.run(ThreadHandler.java:46)
    at org.openbravo.dal.core.DalRequestFilter.doFilter(DalRequestFilter.java:103)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
    at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
    at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)
    at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:776)
    at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:705)
    at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:898)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
    at java.lang.Thread.run(Thread.java:701)
No tags attached.
depends on defect 0027370 closed Orekaria Openbravo ERP Stabilization: When the session is invalidated the backend should not try to retrieve session attributes 
depends on defect 0027200 closed Orekaria Retail Modules Stabilization: Current user/role has no access to class org.openbravo.retail.posterminal.term.Terminal 
blocks defect 0027337 acknowledged Retail Retail Modules Stabilization: No tomcat errors while running the WebPOS 
png 23:36:33 ERROR: The login process failed to load the WebPOS.png (47,994) 2014-06-26 21:54
https://issues.openbravo.com/file_download.php?file_id=7025&type=bug
png
Issue History
2014-06-26 21:54OrekariaNew Issue
2014-06-26 21:54OrekariaAssigned To => marvintm
2014-06-26 21:54OrekariaFile Added: 23:36:33 ERROR: The login process failed to load the WebPOS.png
2014-06-26 21:54OrekariaTriggers an Emergency Pack => No
2014-06-27 15:04OrekariaIssue Monitored: Orekaria
2014-06-27 15:05OrekariaIssue End Monitor: Orekaria
2014-06-27 18:56OrekariaNote Added: 0068425
2014-06-27 18:57OrekariaNote Edited: 0068425bug_revision_view_page.php?bugnote_id=0068425#r5997
2014-07-18 12:19shuehnerIssue Monitored: shuehner
2014-07-23 18:32hgbotCheckin
2014-07-23 18:32hgbotNote Added: 0068851
2014-07-23 20:03hgbotCheckin
2014-07-23 20:03hgbotNote Added: 0068852
2014-07-28 11:34hgbotCheckin
2014-07-28 11:34hgbotNote Added: 0068905
2014-08-19 09:00OrekariaSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=6345#r6345
2014-08-19 09:01OrekariaRelationship addeddepends on 0027248
2014-08-19 09:01OrekariaRelationship addedblocks 0027337
2014-08-19 09:35OrekariaSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=6346#r6346
2014-08-19 09:35OrekariaSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=6347#r6347
2014-08-19 11:51OrekariaRelationship addeddepends on 0027370
2014-08-23 01:14OrekariaStatusnew => scheduled
2014-08-23 01:14OrekariaNote Added: 0069629
2014-08-23 01:14OrekariaAssigned Tomarvintm => Orekaria
2014-08-23 01:14Orekariafix_in_branch => pi
2014-08-23 01:14OrekariaRelationship addeddepends on 0027200
2014-08-23 01:14OrekariaRelationship deleteddepends on 0027248
2014-09-02 22:18OrekariaStatusscheduled => resolved
2014-09-02 22:18OrekariaFixed in Version => RR14Q4
2014-09-02 22:18OrekariaResolutionopen => fixed
2014-09-22 13:28migueldejuanaReview Assigned To => migueldejuana
2014-09-22 13:28migueldejuanaNote Added: 0070235
2014-09-22 13:28migueldejuanaStatusresolved => closed

Notes
(0068425)
Orekaria   
2014-06-27 18:56   
(edited on: 2014-06-27 18:57)
Sometimes a javascript error is shown saying that getSelected() returns undefined in this code:

  changeRole: function (inSender, inEvent) {
    this.doSelectRole({
      newRoleId: this.children[this.getSelected()].getValue()
    });
  }

(0068851)
hgbot   
2014-07-23 18:32   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: a885a6401b851ae706b5b33d2498aa4576eade66
Author: Rafa Alonso <rafael.alonso <at> openbravo.com>
Date: Wed Jul 23 18:32:13 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/a885a6401b851ae706b5b33d2498aa4576eade66 [^]

Relate to issue 26955: a missing role will not cause the WebPOS to fail...
 this does not fix the error but, at least, does not break the WebPOS

---
M web/org.openbravo.mobile.core/source/component/dialog/ob-profile.js
---
(0068852)
hgbot   
2014-07-23 20:03   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: d9c9193a4a5930d0a5f4ec533057a5ebf267ca1c
Author: Rafa Alonso <rafael.alonso <at> openbravo.com>
Date: Wed Jul 23 20:03:22 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/d9c9193a4a5930d0a5f4ec533057a5ebf267ca1c [^]

Related to issue 26955: if there is no role, return

---
M web/org.openbravo.mobile.core/source/component/dialog/ob-profile.js
---
(0068905)
hgbot   
2014-07-28 11:34   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 215696b1521c22d94d4dc8634bc7d8f56cfccaff
Author: Rafa Alonso <rafael.alonso <at> openbravo.com>
Date: Mon Jul 28 11:34:40 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/215696b1521c22d94d4dc8634bc7d8f56cfccaff [^]

Related to issue 26955: changeRole and changeOrganization do not raise...
... exceptions if undefined values are trying to be computed

---
M web/org.openbravo.mobile.core/source/component/dialog/ob-profile.js
---
(0069629)
Orekaria   
2014-08-23 01:14   
These error is no longer shown because the fix for the issue 27200
(0070235)
migueldejuana   
2014-09-22 13:28   
Tested and reviewed in 79500303f4b7