Repository: stratos Updated Branches: refs/heads/master 873f0969a -> 34726f2da
fixing compilation issue, missing exception handling Project: http://git-wip-us.apache.org/repos/asf/stratos/repo Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/34726f2d Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/34726f2d Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/34726f2d Branch: refs/heads/master Commit: 34726f2da7108976c6fda117cbb95fc5824595f2 Parents: 873f096 Author: Martin Eppel <[email protected]> Authored: Thu Nov 20 14:31:12 2014 -0800 Committer: Martin Eppel <[email protected]> Committed: Thu Nov 20 14:31:12 2014 -0800 ---------------------------------------------------------------------- .../apache/stratos/manager/client/AutoscalerServiceClient.java | 2 +- .../manager/grouping/deployer/DefaultServiceGroupDeployer.java | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/stratos/blob/34726f2d/components/org.apache.stratos.manager/src/main/java/org/apache/stratos/manager/client/AutoscalerServiceClient.java ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.manager/src/main/java/org/apache/stratos/manager/client/AutoscalerServiceClient.java b/components/org.apache.stratos.manager/src/main/java/org/apache/stratos/manager/client/AutoscalerServiceClient.java index 3d99fb1..32d77d4 100644 --- a/components/org.apache.stratos.manager/src/main/java/org/apache/stratos/manager/client/AutoscalerServiceClient.java +++ b/components/org.apache.stratos.manager/src/main/java/org/apache/stratos/manager/client/AutoscalerServiceClient.java @@ -231,7 +231,7 @@ public class AutoscalerServiceClient { return stub.getServiceGroup(serviceGroupDefinitionName); } - public ServiceGroup[] getServiceGroups() throws RemoteException { + public ServiceGroup[] getServiceGroups() throws RemoteException, AutoScalerServiceAutoScalerExceptionException { return stub.getServiceGroups(); } http://git-wip-us.apache.org/repos/asf/stratos/blob/34726f2d/components/org.apache.stratos.manager/src/main/java/org/apache/stratos/manager/grouping/deployer/DefaultServiceGroupDeployer.java ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.manager/src/main/java/org/apache/stratos/manager/grouping/deployer/DefaultServiceGroupDeployer.java b/components/org.apache.stratos.manager/src/main/java/org/apache/stratos/manager/grouping/deployer/DefaultServiceGroupDeployer.java index 6546df0..ff1d52b 100644 --- a/components/org.apache.stratos.manager/src/main/java/org/apache/stratos/manager/grouping/deployer/DefaultServiceGroupDeployer.java +++ b/components/org.apache.stratos.manager/src/main/java/org/apache/stratos/manager/grouping/deployer/DefaultServiceGroupDeployer.java @@ -229,7 +229,11 @@ public class DefaultServiceGroupDeployer implements ServiceGroupDeployer { throw new ADCException(axisFault); } catch (RemoteException e) { throw new ADCException(e); - } + } catch (AutoScalerServiceAutoScalerExceptionException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + return null; + } }
