Problem
- Product: VisiBroker
- Product Version: 6.0 & later
Exception "Storage is null" is thrown when running Server Manager example.
When starting up “Server”, via script or command line with "-Dvbroker.orb.enableServerManager=true" of VisiBroker server manager example (/examples/vbroker/ServerManager/basic), ServerManagerClient encouters following exception was thrown during runtime.
exception com.inprise.vbroker.ServerManager.StorageException {
java.lang.String reason="Storage is null"
}
When starting up “Server”, via script or command line with "-Dvbroker.orb.enableServerManager=true" of VisiBroker server manager example (/examples/vbroker/ServerManager/basic), ServerManagerClient encouters following exception was thrown during runtime.
exception com.inprise.vbroker.ServerManager.StorageException {
java.lang.String reason="Storage is null"
}
Resolution
The exception is thrown because "persist_properties" is set to true in Server Manager client (i.e. ServerManagerClient), which means ORB will persist the property changes of server manager to a storage. If the property cannot be updated, the exception is seen.
To avoid this issue, you have two options:
1. User can either not persist the property changes (by remove line "orbCont.persist_properties(true);" from ServerManagerClient.java file).
2. Create a new property file(say server.properties) and set the vbroker.orb.enableServerManger=true property in it and start the application with "Server -DORBpropStorage=server.properties".
To avoid this issue, you have two options:
1. User can either not persist the property changes (by remove line "orbCont.persist_properties(true);" from ServerManagerClient.java file).
2. Create a new property file(say server.properties) and set the vbroker.orb.enableServerManger=true property in it and start the application with "Server -DORBpropStorage=server.properties".
Incident #2523261
Old KB# 34203
#Storageisnull
#Security
#ServerManager
#VisiBroker




