diff options
| author | Andrew Branson <andrew.branson@cern.ch> | 2014-10-09 22:34:53 +0200 |
|---|---|---|
| committer | Andrew Branson <andrew.branson@cern.ch> | 2014-10-09 22:34:53 +0200 |
| commit | ff6b40c02501f9ebd0ae1c38de4b38325fa616f2 (patch) | |
| tree | bba14ba77dfb54a9a90c5b36d1e179f6d00cc267 | |
| parent | dfb04b10e86ed78b907aa15b91f122224eca7c7c (diff) | |
CorbaServer startup failure should throw a CannotManage instead of an
InvalidData
| -rw-r--r-- | src/main/java/org/cristalise/kernel/entity/CorbaServer.java | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/main/java/org/cristalise/kernel/entity/CorbaServer.java b/src/main/java/org/cristalise/kernel/entity/CorbaServer.java index a16d3d1..69f9a5c 100644 --- a/src/main/java/org/cristalise/kernel/entity/CorbaServer.java +++ b/src/main/java/org/cristalise/kernel/entity/CorbaServer.java @@ -23,11 +23,8 @@ package org.cristalise.kernel.entity; import java.util.Map;
import org.cristalise.kernel.common.CannotManageException;
-import org.cristalise.kernel.common.InvalidDataException;
import org.cristalise.kernel.common.ObjectAlreadyExistsException;
import org.cristalise.kernel.common.ObjectNotFoundException;
-import org.cristalise.kernel.entity.AgentHelper;
-import org.cristalise.kernel.entity.ItemHelper;
import org.cristalise.kernel.entity.agent.ActiveEntity;
import org.cristalise.kernel.entity.agent.ActiveLocator;
import org.cristalise.kernel.lookup.AgentPath;
@@ -59,7 +56,7 @@ public class CorbaServer { private POA mAgentPOA;
private POAManager mPOAManager;
- public CorbaServer() throws InvalidDataException {
+ public CorbaServer() throws CannotManageException {
mItemCache = new SoftCache<ItemPath, Servant>(50);
// init POA
@@ -68,7 +65,7 @@ public class CorbaServer { mPOAManager.activate();
} catch (Exception ex) {
Logger.error(ex);
- throw new InvalidDataException("Error initialising POA");
+ throw new CannotManageException("Error initialising POA");
}
new Thread(new Runnable() {
|
