Openbravo Issue Tracking System - Retail Modules | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0033692 | Retail Modules | StoreServer | public | 2016-08-11 18:25 | 2016-08-30 10:12 | |||||||
Reporter | mtaal | |||||||||||
Assigned To | mtaal | |||||||||||
Priority | normal | Severity | minor | Reproducibility | have not tried | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | ||||||||||||
Target Version | RR16Q4 | Fixed in Version | RR16Q4 | |||||||||
Merge Request Status | ||||||||||||
Review Assigned To | Sandrahuguet | |||||||||||
OBNetwork customer | No | |||||||||||
Support ticket | ||||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0033692: Prevent NPE in case no mobile server definition present but still server key is set | |||||||||||
Description | When there is no mobile server definition present but the server key is set in the Openbravo.properties then tomcat starts with a NPE shown below. It can be the case that this exception occurs because the query finds nothing. Although it seems to fail in another location, it that there is no context set. A solution can be to set admin mode so that there is an OBContext. [1] [12:36:52] Ioritz Cia: but when I start tomcat [12:36:58] Ioritz Cia: this error appears [12:37:03] Ioritz Cia: although tomcat starts [12:37:09] Ioritz Cia: and the environment works [12:37:23] Ioritz Cia: ERROR org.openbravo.mobile.core.listener.SetCurrentMobileServerListener - Error while set current mobile server listener java.lang.NullPointerException at org.openbravo.dal.service.OBDal.checkReadAccess(OBDal.java:597) at org.openbravo.dal.service.OBDal.checkReadAccess(OBDal.java:588) at org.openbravo.dal.service.OBDal.createCriteria(OBDal.java:435) at org.openbravo.mobile.core.listener.SetCurrentMobileServerListener.getCurrentServer(SetCurrentMobileServerListener.java:69) at org.openbravo.mobile.core.listener.SetCurrentMobileServerListener.contextInitialized(SetCurrentMobileServerListener.java:49) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4842) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5303) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1092) at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1834) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) | |||||||||||
Steps To Reproduce | Run standard retail Set mobile.server.key to any value in Openbravo.properties restart | |||||||||||
Proposed Solution | See description | |||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | ||||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2016-08-11 18:25 | mtaal | New Issue | ||||||||||
2016-08-11 18:25 | mtaal | Assigned To | => mtaal | |||||||||
2016-08-11 18:25 | mtaal | OBNetwork customer | => No | |||||||||
2016-08-11 18:25 | mtaal | Triggers an Emergency Pack | => No | |||||||||
2016-08-11 23:38 | mtaal | Review Assigned To | => Sandrahuguet | |||||||||
2016-08-11 23:39 | hgbot | Checkin | ||||||||||
2016-08-11 23:39 | hgbot | Note Added: 0089060 | ||||||||||
2016-08-11 23:39 | hgbot | Status | new => resolved | |||||||||
2016-08-11 23:39 | hgbot | Resolution | open => fixed | |||||||||
2016-08-11 23:39 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/7202f533b1ea8023df558f4a8f626f1555e57aa5 [^] | |||||||||
2016-08-12 10:01 | Sandrahuguet | Note Added: 0089078 | ||||||||||
2016-08-12 10:01 | Sandrahuguet | Status | resolved => closed | |||||||||
2016-08-12 10:01 | Sandrahuguet | Fixed in Version | => RR16Q4 | |||||||||
2016-08-18 13:56 | mtaal | Note Added: 0089213 | ||||||||||
2016-08-18 13:56 | mtaal | Status | closed => new | |||||||||
2016-08-18 13:56 | mtaal | Resolution | fixed => open | |||||||||
2016-08-18 13:56 | mtaal | Fixed in Version | RR16Q4 => | |||||||||
2016-08-19 10:55 | hgbot | Checkin | ||||||||||
2016-08-19 10:55 | hgbot | Note Added: 0089234 | ||||||||||
2016-08-19 10:55 | hgbot | Status | new => resolved | |||||||||
2016-08-19 10:55 | hgbot | Resolution | open => fixed | |||||||||
2016-08-19 10:55 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/7202f533b1ea8023df558f4a8f626f1555e57aa5 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/6ccbd09b41f4f63715b94809d5e0da61afbad69d [^] | |||||||||
2016-08-30 10:12 | Sandrahuguet | Note Added: 0089533 | ||||||||||
2016-08-30 10:12 | Sandrahuguet | Status | resolved => closed | |||||||||
2016-08-30 10:12 | Sandrahuguet | Fixed in Version | => RR16Q4 | |||||||||
2016-12-20 09:29 | dmitry_mezentsev | Relationship added | causes 0034756 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|