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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0034463
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] StoreServerminorhave not tried2016-11-10 14:522016-12-07 10:16
ReporterAugustoMauchView Statuspublic 
Assigned Tomtaal 
PrioritynormalResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision44131a16d4ec
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned ToAugustoMauch
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0034463: NPE in multi server if mobile server key property is not defined

DescriptionIf 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)
Steps To ReproduceIn 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
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0091336)
AugustoMauch (manager)
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 (developer)
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 (manager)
2016-12-07 10:16

Code reviewed and verified in [1]@4b9f3131a589

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

- Issue History
Date Modified Username Field Change
2016-11-10 14:52 AugustoMauch New Issue
2016-11-10 14:52 AugustoMauch Assigned To => StoreServer
2016-11-10 14:52 AugustoMauch Triggers an Emergency Pack => No
2016-11-10 14:53 shuehner Issue Monitored: shuehner
2016-11-10 15:22 AugustoMauch Note Added: 0091336
2016-11-21 11:57 mtaal Assigned To StoreServer => mtaal
2016-11-28 01:12 hgbot Checkin
2016-11-28 01:12 hgbot Note Added: 0091872
2016-11-28 01:12 hgbot Status new => resolved
2016-11-28 01:12 hgbot Resolution open => fixed
2016-11-28 01:12 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/44131a16d4ec36a6c7bd94acbed4566c5ddc3015 [^]
2016-12-02 10:35 mtaal Review Assigned To => AugustoMauch
2016-12-07 10:16 AugustoMauch Note Added: 0092162
2016-12-07 10:16 AugustoMauch Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker