Openbravo Issue Tracking System - Retail Modules
View Issue Details
0034463Retail ModulesStoreServerpublic2016-11-10 14:522016-12-07 10:16
AugustoMauch 
mtaal 
normalminorhave not tried
closedfixed 
5
 
 
AugustoMauch
No
0034463: NPE in multi server if mobile server key property is not defined
If the multiserver modules are installed, but the mobile.server.key is not configured in Openbravo.properties, the following error appears in the log:

java.lang.NullPointerException
    at org.openbravo.mobile.core.servercontroller.ServerStateBackground.doExecute(ServerStateBackground.java:81)
    at org.openbravo.service.db.DalBaseProcess.execute(DalBaseProcess.java:82)
    at org.openbravo.scheduling.DefaultJob.execute(DefaultJob.java:62)
    at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)
In an environment with the multiserver modules installed:
- Make sure the mobile.server.key is not set in Openbravo.properties
- Start Tomcat, log in at Openbravo
- Open the Process Request window, execute the Server State Background process
- Check that the error appears in the log
No tags attached.
Issue History
2016-11-10 14:52AugustoMauchNew Issue
2016-11-10 14:52AugustoMauchAssigned To => StoreServer
2016-11-10 14:52AugustoMauchTriggers an Emergency Pack => No
2016-11-10 14:53shuehnerIssue Monitored: shuehner
2016-11-10 15:22AugustoMauchNote Added: 0091336
2016-11-21 11:57mtaalAssigned ToStoreServer => mtaal
2016-11-28 01:12hgbotCheckin
2016-11-28 01:12hgbotNote Added: 0091872
2016-11-28 01:12hgbotStatusnew => resolved
2016-11-28 01:12hgbotResolutionopen => fixed
2016-11-28 01:12hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/44131a16d4ec36a6c7bd94acbed4566c5ddc3015 [^]
2016-12-02 10:35mtaalReview Assigned To => AugustoMauch
2016-12-07 10:16AugustoMauchNote Added: 0092162
2016-12-07 10:16AugustoMauchStatusresolved => closed

Notes
(0091336)
AugustoMauch   
2016-11-10 15:22   
Another exception that occurs in the same conditions:

[15:05:28] Stefan Huehner: 22326 [localhost-startStop-1] INFO org.openbravo.base.OBSchedulerInitializerListener - Initalizing singleton instance of org.openbravo.scheduling.OBScheduler
23605 [localhost-startStop-1] ERROR org.openbravo.replication.symmetricds.SetupSymmetricListener - Error while setting up the SymmetricDS Engine
java.lang.NullPointerException
    at org.openbravo.replication.symmetricds.SetupSymmetricListener.getEngineProperties(SetupSymmetricListener.java:210)
    at org.openbravo.replication.symmetricds.SetupSymmetricListener.contextInitialized(SetupSymmetricListener.java:90)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5118)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5634)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1571)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1561)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745)
(0091872)
hgbot   
2016-11-28 01:12   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 44131a16d4ec36a6c7bd94acbed4566c5ddc3015
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Sun Nov 27 21:12:43 2016 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/44131a16d4ec36a6c7bd94acbed4566c5ddc3015 [^]

Fixes issue 34463: NPE in multi server if mobile server key property is not defined
Prevent NPE log a warning instead

---
M src/org/openbravo/mobile/core/servercontroller/ServerStateBackground.java
---
(0092162)
AugustoMauch   
2016-12-07 10:16   
Code reviewed and verified in [1]@4b9f3131a589

[1] https://code.openbravo.com/erp/pmods/org.openbravo.mobile.core [^]