You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by ma...@apache.org on 2014/02/21 09:59:10 UTC
git commit: Handle autoscaler connection refeused error in backend
Repository: incubator-stratos
Updated Branches:
refs/heads/master f4ded09d0 -> 5c5964130
Handle autoscaler connection refeused error in backend
Project: http://git-wip-us.apache.org/repos/asf/incubator-stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-stratos/commit/5c596413
Tree: http://git-wip-us.apache.org/repos/asf/incubator-stratos/tree/5c596413
Diff: http://git-wip-us.apache.org/repos/asf/incubator-stratos/diff/5c596413
Branch: refs/heads/master
Commit: 5c5964130c41620087a9632e667e89bcc38764a9
Parents: f4ded09
Author: Manula Thantriwatte <ma...@apache.org>
Authored: Fri Feb 21 14:28:27 2014 +0530
Committer: Manula Thantriwatte <ma...@apache.org>
Committed: Fri Feb 21 14:28:27 2014 +0530
----------------------------------------------------------------------
.../apache/stratos/manager/client/AutoscalerServiceClient.java | 4 ++++
.../org/apache/stratos/rest/endpoint/services/ServiceUtils.java | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/5c596413/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 b5352f9..4639a6c 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
@@ -163,6 +163,10 @@ public class AutoscalerServiceClient {
try {
autoscalePolicies = stub.getAllAutoScalingPolicy();
+ } catch (AxisFault e) {
+ String errorMsg = e.getMessage();
+ log.error(errorMsg, e);
+ throw new Exception(errorMsg, e);
} catch (RemoteException e) {
String errorMsg = "Error in getting available partitions";
log.error(errorMsg, e);
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/5c596413/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/services/ServiceUtils.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/services/ServiceUtils.java b/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/services/ServiceUtils.java
index bdfaa50..630a1ae 100644
--- a/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/services/ServiceUtils.java
+++ b/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/services/ServiceUtils.java
@@ -330,7 +330,7 @@ public class ServiceUtils {
autoscalePolicies = autoscalerServiceClient.getAutoScalePolicies();
} catch (Exception e) {
- String errorMsg = "Error getting available autoscaling policies";
+ String errorMsg = "Error getting available autoscaling policies. " + "Backend error is : " + e.getMessage();
log.error(errorMsg, e);
throw new RestAPIException(errorMsg);
}