You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ya...@apache.org on 2012/06/19 20:47:47 UTC

git commit: CS-15241: static NAT is not working when provider is set to Juniper SRX

Updated Branches:
  refs/heads/master e5db0ebc0 -> fe76cf8a6


CS-15241: static NAT is not working when provider is set to Juniper SRX

Description:

	Checking in fix for the exception seen due to the absence of
	the AsyncCommandQueued exception in the map of CSExceptionErrorCode
	which is used to look up the error code corresponding to a
	cloudstack exception. Also printing the stack trace in case
	an exception is not found in the map.


Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/fe76cf8a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/fe76cf8a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/fe76cf8a

Branch: refs/heads/master
Commit: fe76cf8a60799ea4579c1036253c16e4ef09c922
Parents: e5db0eb
Author: Vijayendra Bhamidipati <vi...@citrix.com>
Authored: Mon Jun 18 17:50:07 2012 -0700
Committer: Sheng Yang <sh...@citrix.com>
Committed: Tue Jun 19 11:44:48 2012 -0700

----------------------------------------------------------------------
 .../utils/exception/CSExceptionErrorCode.java      |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/fe76cf8a/utils/src/com/cloud/utils/exception/CSExceptionErrorCode.java
----------------------------------------------------------------------
diff --git a/utils/src/com/cloud/utils/exception/CSExceptionErrorCode.java b/utils/src/com/cloud/utils/exception/CSExceptionErrorCode.java
index 03565bb..74e42a6 100755
--- a/utils/src/com/cloud/utils/exception/CSExceptionErrorCode.java
+++ b/utils/src/com/cloud/utils/exception/CSExceptionErrorCode.java
@@ -92,13 +92,15 @@ public class CSExceptionErrorCode {
 			ExceptionErrorCodeMap.put("com.cloud.exception.ResourceUnavailableException", 4520);
 			ExceptionErrorCodeMap.put("com.cloud.exception.StorageUnavailableException", 4525);
 			ExceptionErrorCodeMap.put("com.cloud.exception.UnsupportedServiceException", 4530);
-			ExceptionErrorCodeMap.put("com.cloud.exception.VirtualMachineMigrationException", 4535);			
+			ExceptionErrorCodeMap.put("com.cloud.exception.VirtualMachineMigrationException", 4535);
+			ExceptionErrorCodeMap.put("com.cloud.async.AsyncCommandQueued", 4540);
 			
 			// Have a special error code for ServerApiException when it is
 			// thrown in a standalone manner when failing to detect any of the above
 			// standard exceptions.
 			ExceptionErrorCodeMap.put("com.cloud.api.ServerApiException", 9999);
 		} catch (Exception e) {
+			e.printStackTrace();
 			throw new ExceptionInInitializerError(e);
 		}
 	}