You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ra...@apache.org on 2014/05/26 21:44:03 UTC
git commit: did some expception handling to debug AIRAVATA-1275.
Repository: airavata
Updated Branches:
refs/heads/master 3dafb0067 -> 2884bda6d
did some expception handling to debug AIRAVATA-1275.
Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/2884bda6
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/2884bda6
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/2884bda6
Branch: refs/heads/master
Commit: 2884bda6dd06354a181c176080c54a9746264020
Parents: 3dafb00
Author: raminder <ra...@apache.org>
Authored: Mon May 26 15:43:34 2014 -0400
Committer: raminder <ra...@apache.org>
Committed: Mon May 26 15:43:34 2014 -0400
----------------------------------------------------------------------
.../airavata/gfac/gsissh/handler/GSISSHDirectorySetupHandler.java | 3 ++-
.../apache/airavata/gfac/gsissh/handler/GSISSHInputHandler.java | 1 +
.../apache/airavata/gfac/gsissh/handler/GSISSHOutputHandler.java | 1 +
.../org/apache/airavata/gfac/gsissh/util/GFACGSISSHUtils.java | 2 +-
4 files changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/airavata/blob/2884bda6/modules/gfac/gfac-gsissh/src/main/java/org/apache/airavata/gfac/gsissh/handler/GSISSHDirectorySetupHandler.java
----------------------------------------------------------------------
diff --git a/modules/gfac/gfac-gsissh/src/main/java/org/apache/airavata/gfac/gsissh/handler/GSISSHDirectorySetupHandler.java b/modules/gfac/gfac-gsissh/src/main/java/org/apache/airavata/gfac/gsissh/handler/GSISSHDirectorySetupHandler.java
index 7bbbc7e..1b1a6b9 100644
--- a/modules/gfac/gfac-gsissh/src/main/java/org/apache/airavata/gfac/gsissh/handler/GSISSHDirectorySetupHandler.java
+++ b/modules/gfac/gfac-gsissh/src/main/java/org/apache/airavata/gfac/gsissh/handler/GSISSHDirectorySetupHandler.java
@@ -50,7 +50,7 @@ public class GSISSHDirectorySetupHandler extends AbstractHandler {
log.error(e.getMessage());
throw new GFacHandlerException("Error while creating SSHSecurityContext", e, e.getLocalizedMessage());
} catch (GFacException e) {
- e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.
+ throw new GFacHandlerException("Error while creating SSHSecurityContext", e, e.getLocalizedMessage());
}
log.info("Setup SSH job directorties");
@@ -85,6 +85,7 @@ public class GSISSHDirectorySetupHandler extends AbstractHandler {
} catch (Exception e) {
DataTransferDetails detail = new DataTransferDetails();
TransferStatus status = new TransferStatus();
+ detail.setTransferDescription(e.getLocalizedMessage());
status.setTransferState(TransferState.FAILED);
detail.setTransferStatus(status);
try {
http://git-wip-us.apache.org/repos/asf/airavata/blob/2884bda6/modules/gfac/gfac-gsissh/src/main/java/org/apache/airavata/gfac/gsissh/handler/GSISSHInputHandler.java
----------------------------------------------------------------------
diff --git a/modules/gfac/gfac-gsissh/src/main/java/org/apache/airavata/gfac/gsissh/handler/GSISSHInputHandler.java b/modules/gfac/gfac-gsissh/src/main/java/org/apache/airavata/gfac/gsissh/handler/GSISSHInputHandler.java
index 6c08a59..3ac4d5e 100644
--- a/modules/gfac/gfac-gsissh/src/main/java/org/apache/airavata/gfac/gsissh/handler/GSISSHInputHandler.java
+++ b/modules/gfac/gfac-gsissh/src/main/java/org/apache/airavata/gfac/gsissh/handler/GSISSHInputHandler.java
@@ -93,6 +93,7 @@ public class GSISSHInputHandler extends AbstractHandler {
} catch (Exception e) {
log.error(e.getMessage());
status.setTransferState(TransferState.FAILED);
+ detail.setTransferDescription(e.getLocalizedMessage());
detail.setTransferStatus(status);
try {
GFacUtils.saveErrorDetails(jobExecutionContext, e.getLocalizedMessage(), CorrectiveAction.CONTACT_SUPPORT, ErrorCategory.FILE_SYSTEM_FAILURE);
http://git-wip-us.apache.org/repos/asf/airavata/blob/2884bda6/modules/gfac/gfac-gsissh/src/main/java/org/apache/airavata/gfac/gsissh/handler/GSISSHOutputHandler.java
----------------------------------------------------------------------
diff --git a/modules/gfac/gfac-gsissh/src/main/java/org/apache/airavata/gfac/gsissh/handler/GSISSHOutputHandler.java b/modules/gfac/gfac-gsissh/src/main/java/org/apache/airavata/gfac/gsissh/handler/GSISSHOutputHandler.java
index 6bcee88..f8c9a20 100644
--- a/modules/gfac/gfac-gsissh/src/main/java/org/apache/airavata/gfac/gsissh/handler/GSISSHOutputHandler.java
+++ b/modules/gfac/gfac-gsissh/src/main/java/org/apache/airavata/gfac/gsissh/handler/GSISSHOutputHandler.java
@@ -207,6 +207,7 @@ public class GSISSHOutputHandler extends AbstractHandler {
try {
status.setTransferState(TransferState.FAILED);
detail.setTransferStatus(status);
+ detail.setTransferDescription(e.getLocalizedMessage());
registry.add(ChildDataType.DATA_TRANSFER_DETAIL, detail, jobExecutionContext.getTaskData().getTaskID());
GFacUtils.saveErrorDetails(jobExecutionContext, e.getLocalizedMessage(), CorrectiveAction.CONTACT_SUPPORT, ErrorCategory.FILE_SYSTEM_FAILURE);
} catch (Exception e1) {
http://git-wip-us.apache.org/repos/asf/airavata/blob/2884bda6/modules/gfac/gfac-gsissh/src/main/java/org/apache/airavata/gfac/gsissh/util/GFACGSISSHUtils.java
----------------------------------------------------------------------
diff --git a/modules/gfac/gfac-gsissh/src/main/java/org/apache/airavata/gfac/gsissh/util/GFACGSISSHUtils.java b/modules/gfac/gfac-gsissh/src/main/java/org/apache/airavata/gfac/gsissh/util/GFACGSISSHUtils.java
index ac70bec..86bf3dd 100644
--- a/modules/gfac/gfac-gsissh/src/main/java/org/apache/airavata/gfac/gsissh/util/GFACGSISSHUtils.java
+++ b/modules/gfac/gfac-gsissh/src/main/java/org/apache/airavata/gfac/gsissh/util/GFACGSISSHUtils.java
@@ -97,7 +97,7 @@ public class GFACGSISSHUtils {
}
pbsCluster = new PBSCluster(serverInfo, authenticationInfo, jConfig);
} catch (SSHApiException e) {
- e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.
+ throw new GFacException("An error occurred while creating GSI security context", e);
}
context.setPbsCluster(pbsCluster);