j***@gmail.com
2007-09-04 03:12:53 UTC
I want to design a program that start the cube of Alphablox,
the code is
public void StartCube(String cubeName){
Cube cube = null;
try
{
AdminBlox adminBlox = new AdminBlox();
cube = adminBlox.getCube(cubeName);
try
{
if(!cube.isStarted()){
cube.start();
}
}
catch(ServerBloxException sbe)
{
sbe.printStackTrace();
}
}catch(ServerBloxNotFoundException sbnfe)
{
sbnfe.printStackTrace();
}
}
the cubeName is "COST_CV",and the Cube works fine.
When I have stopped the "COST_CV" Cube,then the App runs error!
the error Message is
"B2 Alphablox has stopped?{1, date,MM/dd/yy kk:mm:ss}? ( DB2 Alphablox has stopped?{1, date,MM/dd/yy kk:mm:ss}? )
at com.alphablox.server.service.ServiceManager.getService(Unknown Source)
at com.alphablox.server.service.ServiceManager.getService(Unknown Source)
at com.alphablox.blox.AdminBlox.getCubeManager(Unknown Source)
at com.alphablox.blox.AdminBlox.getCube(Unknown Source)
at cn.flag.dbad.AdminCubes.ReStartCube(AdminCubes.java:112)
at cn.flag.dbad.AdminCubes.ReStartCubes(AdminCubes.java:61)
at cn.flag.dbad.AdminCubes.main(AdminCubes.java:48)
Caused by: DB2 Alphablox has stopped?{1, date,MM/dd/yy kk:mm:ss}?
at com.alphablox.server.Server.ping(Unknown Source)
... 7 more
Exception in thread "main" "
What can I do?
the code is
public void StartCube(String cubeName){
Cube cube = null;
try
{
AdminBlox adminBlox = new AdminBlox();
cube = adminBlox.getCube(cubeName);
try
{
if(!cube.isStarted()){
cube.start();
}
}
catch(ServerBloxException sbe)
{
sbe.printStackTrace();
}
}catch(ServerBloxNotFoundException sbnfe)
{
sbnfe.printStackTrace();
}
}
the cubeName is "COST_CV",and the Cube works fine.
When I have stopped the "COST_CV" Cube,then the App runs error!
the error Message is
"B2 Alphablox has stopped?{1, date,MM/dd/yy kk:mm:ss}? ( DB2 Alphablox has stopped?{1, date,MM/dd/yy kk:mm:ss}? )
at com.alphablox.server.service.ServiceManager.getService(Unknown Source)
at com.alphablox.server.service.ServiceManager.getService(Unknown Source)
at com.alphablox.blox.AdminBlox.getCubeManager(Unknown Source)
at com.alphablox.blox.AdminBlox.getCube(Unknown Source)
at cn.flag.dbad.AdminCubes.ReStartCube(AdminCubes.java:112)
at cn.flag.dbad.AdminCubes.ReStartCubes(AdminCubes.java:61)
at cn.flag.dbad.AdminCubes.main(AdminCubes.java:48)
Caused by: DB2 Alphablox has stopped?{1, date,MM/dd/yy kk:mm:ss}?
at com.alphablox.server.Server.ping(Unknown Source)
... 7 more
Exception in thread "main" "
What can I do?