You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by di...@apache.org on 2005/08/12 22:52:13 UTC
svn commit: r232388 - in /webservices/axis/trunk/java/modules:
common/src/org/apache/axis2/i18n/resource.properties
samples/src/sample/groovy/GroovyReceiver.java
Author: dims
Date: Fri Aug 12 13:52:09 2005
New Revision: 232388
URL: http://svn.apache.org/viewcvs?rev=232388&view=rev
Log:
Additional check and throw a fault. Also correct a spelling error.
Modified:
webservices/axis/trunk/java/modules/common/src/org/apache/axis2/i18n/resource.properties
webservices/axis/trunk/java/modules/samples/src/sample/groovy/GroovyReceiver.java
Modified: webservices/axis/trunk/java/modules/common/src/org/apache/axis2/i18n/resource.properties
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/common/src/org/apache/axis2/i18n/resource.properties?rev=232388&r1=232387&r2=232388&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/common/src/org/apache/axis2/i18n/resource.properties (original)
+++ webservices/axis/trunk/java/modules/common/src/org/apache/axis2/i18n/resource.properties Fri Aug 12 13:52:09 2005
@@ -29,7 +29,8 @@
inputstreamNull=Input stream is null while reading for incomming message
unknownTransport=Unknown transport {0}
paramIsNotSpecified={0} parameter is not specified
-groovryNoanswer=No answer received from groovy side!!!!
+groovyNoanswer=No answer received from groovy side!!!!
+groovyUnableToLoad=Cannot load {0}
outMessageNull=The out message is Null, nothing to write
canNotBeNull={0} can not be Null
notFound={0} not found
Modified: webservices/axis/trunk/java/modules/samples/src/sample/groovy/GroovyReceiver.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/src/sample/groovy/GroovyReceiver.java?rev=232388&r1=232387&r2=232388&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/src/sample/groovy/GroovyReceiver.java (original)
+++ webservices/axis/trunk/java/modules/samples/src/sample/groovy/GroovyReceiver.java Fri Aug 12 13:52:09 2005
@@ -73,6 +73,11 @@
this.getClass().getResourceAsStream(
implInfoParam.getValue().toString());
+ if (groovyFileStream == null) {
+ throw new AxisFault(
+ Messages.getMessage("groovyUnableToLoad", implInfoParam.getValue().toString()));
+ }
+
//look at the method name. if available this should be a groovy method
OperationDescription op =
inMessage.getOperationContext().getAxisOperation();
@@ -101,7 +106,7 @@
Object[] arg = { in };
Object obj = groovyObject.invokeMethod(methodName, arg);
if (obj == null) {
- throw new AxisFault(Messages.getMessage("groovryNoanswer"));
+ throw new AxisFault(Messages.getMessage("groovyNoanswer"));
}
SOAPFactory fac = null;