This is an automated email from the ASF dual-hosted git repository.

machristie pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/airavata.git


The following commit(s) were added to refs/heads/develop by this push:
     new 73d52c9  AIRAVATA-2667 Throw error if JobModel not found
73d52c9 is described below

commit 73d52c9ee4c98eddb878a8975b734b9cfc6d1079
Author: Marcus Christie <machris...@apache.org>
AuthorDate: Fri Feb 2 09:39:43 2018 -0500

    AIRAVATA-2667 Throw error if JobModel not found
---
 .../src/main/java/org/apache/airavata/gfac/impl/GFacEngineImpl.java     | 1 -
 .../airavata/registry/api/service/handler/RegistryServerHandler.java    | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git 
a/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/GFacEngineImpl.java
 
b/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/GFacEngineImpl.java
index 392e6dc..c8c2504 100644
--- 
a/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/GFacEngineImpl.java
+++ 
b/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/GFacEngineImpl.java
@@ -69,7 +69,6 @@ import org.apache.airavata.model.task.MonitorTaskModel;
 import org.apache.airavata.model.task.TaskModel;
 import org.apache.airavata.model.task.TaskTypes;
 import org.apache.airavata.registry.api.RegistryService;
-import org.apache.airavata.registry.api.client.RegistryServiceClientFactory;
 import org.apache.airavata.registry.api.exception.RegistryServiceException;
 import org.apache.curator.framework.CuratorFramework;
 import org.apache.curator.utils.ZKPaths;
diff --git 
a/modules/registry/registry-server/registry-api-service/src/main/java/org/apache/airavata/registry/api/service/handler/RegistryServerHandler.java
 
b/modules/registry/registry-server/registry-api-service/src/main/java/org/apache/airavata/registry/api/service/handler/RegistryServerHandler.java
index bf412e9..64e4222 100644
--- 
a/modules/registry/registry-server/registry-api-service/src/main/java/org/apache/airavata/registry/api/service/handler/RegistryServerHandler.java
+++ 
b/modules/registry/registry-server/registry-api-service/src/main/java/org/apache/airavata/registry/api/service/handler/RegistryServerHandler.java
@@ -1024,7 +1024,7 @@ public class RegistryServerHandler implements 
RegistryService.Iface {
                     }
                 }
             }
-            return null;
+            throw new Exception("Job not found for queryType: " + queryType + 
", id: " + id);
         } catch (Exception e) {
             logger.error(id, "Error while retrieving job", e);
             AiravataSystemException exception = new AiravataSystemException();

-- 
To stop receiving notification emails like this one, please contact
machris...@apache.org.

Reply via email to