axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r394725 - /webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/client/ServiceClient.java
Date Mon, 17 Apr 2006 16:36:43 GMT
Author: dims
Date: Mon Apr 17 09:36:40 2006
New Revision: 394725

URL: http://svn.apache.org/viewcvs?rev=394725&view=rev
Log:
Fix for AXIS2-566 - Multiple ServiceClients using the same configurationContext causes NPE

Modified:
    webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/client/ServiceClient.java

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/client/ServiceClient.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/client/ServiceClient.java?rev=394725&r1=394724&r2=394725&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/client/ServiceClient.java
(original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/client/ServiceClient.java
Mon Apr 17 09:36:40 2006
@@ -156,6 +156,10 @@
             // already
             if (this.axisConfig.getService(this.axisService.getName()) == null) {
                 this.axisConfig.addService(this.axisService);
+            } else {
+                throw new AxisFault(Messages.getMessage(
+                        "twoservicecannothavesamename",
+                        this.axisService.getName()));
             }
             ServiceGroupContext sgc = new ServiceGroupContext(this.configContext,
                     (AxisServiceGroup) this.axisService.getParent());



Mime
View raw message