Openbravo Issue Tracking System - Retail Modules
View Issue Details
0035933Retail ModulesStoreServerpublic2017-05-05 12:222017-05-07 22:35
AugustoMauch 
AugustoMauch 
normalminorhave not tried
closedfixed 
5
 
 
mtaal
No
0035933: Change log in ServerStateBackground from warn to debug
The ServerStateBackground class shows the following warning log when it is executed in a single server environment:

70305 [DefaultQuartzScheduler_Worker-1] WARN org.openbravo.mobile.core.servercontroller.ServerStateBackground - No server key defined or no Mobile Server Definitions with the defined server key. The ServerStateBackground process can only run if the server key is defined in Openbravo.properties

The job is executed periodically, so the logs ends up being repeated many times. If the server has been configured to be single server then there is nothing to warn about, a debug message informing that the process will not be executed should be enough.
In a multiserver environment, where the ServerStateBackground process is scheduled:
- Configure the central server to be a single server: Remove the Mobile Multi-Server Architecture Enablement preference, uninstall SymmetricDS and remove the mobile server key from Openbravo properties.
- Start Tomcat. Check that periodically the following warning is shown in the log:

70305 [DefaultQuartzScheduler_Worker-1] WARN org.openbravo.mobile.core.servercontroller.ServerStateBackground - No server key defined or no Mobile Server Definitions with the defined server key. The ServerStateBackground process can only run if the server key is defined in Openbravo.properties
No tags attached.
Issue History
2017-05-05 12:22AugustoMauchNew Issue
2017-05-05 12:22AugustoMauchAssigned To => AugustoMauch
2017-05-05 12:22AugustoMauchTriggers an Emergency Pack => No
2017-05-05 12:57AugustoMauchSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=15120#r15120
2017-05-05 13:01hgbotCheckin
2017-05-05 13:01hgbotNote Added: 0096418
2017-05-05 13:01hgbotStatusnew => resolved
2017-05-05 13:01hgbotResolutionopen => fixed
2017-05-05 13:01hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/7b669d4a10f78f28f7fab7c606b33fb0be26a3c6 [^]
2017-05-05 13:02AugustoMauchReview Assigned To => mtaal
2017-05-07 22:35mtaalNote Added: 0096439
2017-05-07 22:35mtaalStatusresolved => closed

Notes
(0096418)
hgbot   
2017-05-05 13:01   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 7b669d4a10f78f28f7fab7c606b33fb0be26a3c6
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Fri May 05 13:00:39 2017 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/7b669d4a10f78f28f7fab7c606b33fb0be26a3c6 [^]

Fixes issue 35933: Change log level to DEBUG in ServerStateBackground

If the ServerStateBackground is executed in a single server environment, there is no need to warn the user that the mobile server key is not defined, it is enough to just show a debug message.

---
M src/org/openbravo/mobile/core/servercontroller/ServerStateBackground.java
---
(0096439)
mtaal   
2017-05-07 22:35   
Reviewed