You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by im...@apache.org on 2013/12/13 09:55:14 UTC
git commit: Fixed error log in autoascaler service component and null
pointer exception
Updated Branches:
refs/heads/master 377628d9c -> da8730c3d
Fixed error log in autoascaler service component and null pointer exception
Project: http://git-wip-us.apache.org/repos/asf/incubator-stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-stratos/commit/da8730c3
Tree: http://git-wip-us.apache.org/repos/asf/incubator-stratos/tree/da8730c3
Diff: http://git-wip-us.apache.org/repos/asf/incubator-stratos/diff/da8730c3
Branch: refs/heads/master
Commit: da8730c3dfcbbff8edf0d66d7318a5b288648fdb
Parents: 377628d
Author: Imesh Gunaratne <im...@apache.org>
Authored: Fri Dec 13 14:25:04 2013 +0530
Committer: Imesh Gunaratne <im...@apache.org>
Committed: Fri Dec 13 14:25:04 2013 +0530
----------------------------------------------------------------------
.../stratos/autoscaler/internal/AutoscalerServerComponent.java | 2 +-
.../org/apache/stratos/autoscaler/partition/PartitionManager.java | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/da8730c3/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/internal/AutoscalerServerComponent.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/internal/AutoscalerServerComponent.java b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/internal/AutoscalerServerComponent.java
index a9631f2..cdcee85 100644
--- a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/internal/AutoscalerServerComponent.java
+++ b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/internal/AutoscalerServerComponent.java
@@ -135,7 +135,7 @@ public class AutoscalerServerComponent {
log.info("Autoscaler Server Component activated");
}
} catch (Throwable e) {
- log.error("Error in Activating the AS component " + e.getStackTrace());
+ log.error("Error in activating the autoscaler component ", e);
}
}
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/da8730c3/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/partition/PartitionManager.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/partition/PartitionManager.java b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/partition/PartitionManager.java
index 90d6113..e73b6db 100644
--- a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/partition/PartitionManager.java
+++ b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/partition/PartitionManager.java
@@ -66,6 +66,7 @@ private static final Log log = LogFactory.getLog(PartitionManager.class);
+ AutoScalerConstants.PARTITION_RESOURCE + "/";
private PartitionManager(){
+ networkPartitionContexts = new HashMap<String, NetworkPartitionContext>();
// networkPartitions = new ArrayList<NetworkPartitionContext>();
// partitionIdToNetworkPartition = new HashMap<String, NetworkPartitionContext>();
}