airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lah...@apache.org
Subject svn commit: r1430650 - /airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/invoker/AsynchronousInvoker.java
Date Wed, 09 Jan 2013 01:44:15 GMT
Author: lahiru
Date: Wed Jan  9 01:44:15 2013
New Revision: 1430650

URL: http://svn.apache.org/viewvc?rev=1430650&view=rev
Log:
fixing https://issues.apache.org/jira/browse/AIRAVATA-708.

Modified:
    airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/invoker/AsynchronousInvoker.java

Modified: airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/invoker/AsynchronousInvoker.java
URL: http://svn.apache.org/viewvc/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/invoker/AsynchronousInvoker.java?rev=1430650&r1=1430649&r2=1430650&view=diff
==============================================================================
--- airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/invoker/AsynchronousInvoker.java
(original)
+++ airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/invoker/AsynchronousInvoker.java
Wed Jan  9 01:44:15 2013
@@ -21,6 +21,7 @@
 
 package org.apache.airavata.xbaya.invoker;
 
+import org.apache.airavata.common.utils.XMLUtil;
 import org.apache.airavata.workflow.model.exceptions.WorkflowException;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
@@ -100,6 +101,11 @@ public class AsynchronousInvoker extends
                     logger.error("Error Waiting for the response from backend");
                 }
             }
+            // Gfac operation failed, so xbaya side throws this exception
+            if("ErrorResponse".equals(XMLUtil.stringToXmlElement3(this.getOutputMessage().toString()).getName())){
+                throw new WorkflowException((String) XMLUtil.stringToXmlElement3(this.getOutputMessage().toString()).children().next());
+            }
+
             return true;
         } catch (RuntimeException e) {
             String message = "Error in invoking a service.";



Mime
View raw message