Openbravo Issue Tracking System - Retail Modules
View Issue Details
0036318Retail ModulesWeb POSpublic2017-06-23 10:032017-06-29 12:20
nataliag 
mtaal 
normalmajorsometimes
closedfixed 
5
 
RR17Q3 
AugustoMauch
No
0036318: Error in log files caused by request trying to log in web POS
Using version 17Q1.1, sometimes, when tomcat is restarted and we try to access to a POS terminal, the error attached (logError.txt) appears and it is not possible to log in.
1- Stop and restart tomcat server.
2- Access the URL of the POS terminal
3- Try to log in and look at the log. The error attached (logError.txt) appears.
Line 118 of MobileServerUtils.java is:

      multiServerControllerEnabled = isMultiServerEnabled(
          OBContext.getOBContext().getCurrentClient(),
          OBContext.getOBContext().getCurrentOrganization());

it seems that OBContext.getOBContext() is null...
No tags attached.
has duplicate defect 0038391 closed AugustoMauch Under certain circumstances server log will start throwing null pointer exceptions. 
? logError (4,716) 2017-06-23 10:03
https://issues.openbravo.com/file_download.php?file_id=10865&type=bug
Issue History
2017-06-23 10:03nataliagNew Issue
2017-06-23 10:03nataliagAssigned To => Retail
2017-06-23 10:03nataliagFile Added: logError
2017-06-23 10:03nataliagResolution time => 1499983200
2017-06-23 10:03nataliagTriggers an Emergency Pack => No
2017-06-23 12:11mtaalAssigned ToRetail => mtaal
2017-06-27 21:19mtaalReview Assigned To => AugustoMauch
2017-06-27 21:20hgbotCheckin
2017-06-27 21:20hgbotNote Added: 0097725
2017-06-27 21:20hgbotStatusnew => resolved
2017-06-27 21:20hgbotResolutionopen => fixed
2017-06-27 21:20hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/5bf9edce0371a4ef84781c565201edcc39f7d01f [^]
2017-06-28 16:34maiteIssue Monitored: networkb
2017-06-28 22:48hgbotCheckin
2017-06-28 22:48hgbotNote Added: 0097745
2017-06-29 12:20AugustoMauchNote Added: 0097758
2017-06-29 12:20AugustoMauchStatusresolved => closed
2017-06-29 12:20AugustoMauchFixed in Version => RR17Q3
2018-06-08 08:19jorgewederagoRelationship addedhas duplicate 0038391

Notes
(0097725)
hgbot   
2017-06-27 21:20   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 5bf9edce0371a4ef84781c565201edcc39f7d01f
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Tue Jun 27 21:19:36 2017 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/5bf9edce0371a4ef84781c565201edcc39f7d01f [^]

Fixes issue 36318: Error in log files caused by request trying to log in web POS
Use admincontext to load the preference

---
M src/org/openbravo/mobile/core/servercontroller/MobileServerUtils.java
---
(0097745)
hgbot   
2017-06-28 22:48   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: cadda5be6be4136170b167f848923e169c7bd1fa
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Wed Jun 28 22:42:15 2017 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/cadda5be6be4136170b167f848923e169c7bd1fa [^]

Related to issue 36318: Error in log files caused by request trying to log in web POS
Use the setAdminMode with boolean parameter

---
M src/org/openbravo/mobile/core/servercontroller/MobileServerUtils.java
---
(0097758)
AugustoMauch   
2017-06-29 12:20   
Code reviewed and verified