fix JPred thread so job aborts if submission fails.
authorjprocter <Jim Procter>
Fri, 11 Apr 2008 12:28:17 +0000 (12:28 +0000)
committerjprocter <Jim Procter>
Fri, 11 Apr 2008 12:28:17 +0000 (12:28 +0000)
src/jalview/ws/JPredThread.java

index ba114f2..106bb53 100644 (file)
@@ -413,6 +413,7 @@ class JPredThread
           job.result = (vamsas.objects.simple.Result)new JpredResult();\r
           job.result.setInvalid(true);\r
           job.result.setStatus("Submission " + job.jobId);\r
+          throw new Exception(job.jobId); \r
         }\r
         else\r
         {\r
@@ -428,6 +429,8 @@ class JPredThread
     }\r
     catch (Exception e)\r
     {\r
+      // kill the whole job.\r
+      wsInfo.setStatus(WebserviceInfo.STATE_STOPPED_SERVERERROR);\r
       if (e.getMessage().indexOf("Exception") > -1)\r
       {\r
         wsInfo.setStatus(j.jobnum, WebserviceInfo.STATE_STOPPED_SERVERERROR);\r