airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lah...@apache.org
Subject svn commit: r1399431 - /airavata/trunk/modules/gfac-axis2/src/main/java/org/apache/airavata/services/gfac/axis2/reciever/GFacMessageReciever.java
Date Wed, 17 Oct 2012 21:06:13 GMT
Author: lahiru
Date: Wed Oct 17 21:06:12 2012
New Revision: 1399431

URL: http://svn.apache.org/viewvc?rev=1399431&view=rev
Log:
giving proper error message when parameter doesn't exist

Modified:
    airavata/trunk/modules/gfac-axis2/src/main/java/org/apache/airavata/services/gfac/axis2/reciever/GFacMessageReciever.java

Modified: airavata/trunk/modules/gfac-axis2/src/main/java/org/apache/airavata/services/gfac/axis2/reciever/GFacMessageReciever.java
URL: http://svn.apache.org/viewvc/airavata/trunk/modules/gfac-axis2/src/main/java/org/apache/airavata/services/gfac/axis2/reciever/GFacMessageReciever.java?rev=1399431&r1=1399430&r2=1399431&view=diff
==============================================================================
--- airavata/trunk/modules/gfac-axis2/src/main/java/org/apache/airavata/services/gfac/axis2/reciever/GFacMessageReciever.java
(original)
+++ airavata/trunk/modules/gfac-axis2/src/main/java/org/apache/airavata/services/gfac/axis2/reciever/GFacMessageReciever.java
Wed Oct 17 21:06:12 2012
@@ -185,7 +185,7 @@ public class GFacMessageReciever impleme
                 element = input.getFirstChildWithName(new QName(GFacSchemaConstants.GFAC_NAMESPACE,parameter.getParameterName().replaceAll(WSDLConstants.HYPHEN,
WSDLConstants.HYPHEN_REPLACEMENT)));
             }
             if (element == null) {
-                throw new Exception("Parameter is not found in the message");
+                throw new Exception(parameter.getParameterName() + " Parameter is not found
in the message or Parameter have wrong charactor in it");
             }
             //todo this implementation doesn't work when there are n number of nodes connecting
.. need to fix
             actualParameters.put(parameter, GfacUtils.getInputActualParameter(parameter,
element));



Mime
View raw message