Repository: airavata Updated Branches: refs/heads/master 4b51e7f6a -> b3f7b256f
Added check if the host and appliation name is not set in registry. Project: http://git-wip-us.apache.org/repos/asf/airavata/repo Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/92ddf3e4 Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/92ddf3e4 Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/92ddf3e4 Branch: refs/heads/master Commit: 92ddf3e4e1b385da67a9503a0ae88ac95933c445 Parents: d918468 Author: raminder <[email protected]> Authored: Tue May 27 14:18:01 2014 -0400 Committer: raminder <[email protected]> Committed: Tue May 27 14:18:01 2014 -0400 ---------------------------------------------------------------------- .../main/java/org/apache/airavata/gfac/core/cpi/GFacImpl.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/airavata/blob/92ddf3e4/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/cpi/GFacImpl.java ---------------------------------------------------------------------- diff --git a/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/cpi/GFacImpl.java b/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/cpi/GFacImpl.java index bdc498f..e5f1864 100644 --- a/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/cpi/GFacImpl.java +++ b/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/cpi/GFacImpl.java @@ -212,7 +212,7 @@ public class GFacImpl implements GFac { // 2. Add another property to jobExecutionContext and read them inside the provider and use it. String serviceName = taskData.getApplicationId(); if (serviceName == null) { - throw new GFacException("Error executing the job because there is not Application Name in this Experiment"); + throw new GFacException("Error executing the job because there is not Application Name in this Experiment: " + serviceName); } ServiceDescription serviceDescription = airavataRegistry2.getServiceDescriptor(serviceName); @@ -232,7 +232,9 @@ public class GFacImpl implements GFac { hostDescription = hostScheduler.schedule(registeredHosts); hostName = hostDescription.getType().getHostName(); } - + if(hostDescription == null){ + throw new GFacException("Error executing the job as the host is not registered " + hostName); + } ApplicationDescription applicationDescription = airavataRegistry2.getApplicationDescriptors(serviceName, hostName); URL resource = GFacImpl.class.getClassLoader().getResource(org.apache.airavata.common.utils.Constants.GFAC_CONFIG_XML); Properties configurationProperties = ServerSettings.getProperties();
