axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kei...@apache.org
Subject svn commit: r541179 - /webservices/axis2/branches/java/1_2/modules/kernel/src/org/apache/axis2/deployment/repository/util/ArchiveReader.java
Date Thu, 24 May 2007 05:33:31 GMT
Author: keithc
Date: Wed May 23 22:33:30 2007
New Revision: 541179

URL: http://svn.apache.org/viewvc?view=rev&rev=541179
Log:
Fixing NPE when a WSDL with a incorrect namespace is deployed.

Modified:
    webservices/axis2/branches/java/1_2/modules/kernel/src/org/apache/axis2/deployment/repository/util/ArchiveReader.java

Modified: webservices/axis2/branches/java/1_2/modules/kernel/src/org/apache/axis2/deployment/repository/util/ArchiveReader.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_2/modules/kernel/src/org/apache/axis2/deployment/repository/util/ArchiveReader.java?view=diff&rev=541179&r1=541178&r2=541179
==============================================================================
--- webservices/axis2/branches/java/1_2/modules/kernel/src/org/apache/axis2/deployment/repository/util/ArchiveReader.java
(original)
+++ webservices/axis2/branches/java/1_2/modules/kernel/src/org/apache/axis2/deployment/repository/util/ArchiveReader.java
Wed May 23 22:33:30 2007
@@ -386,7 +386,7 @@
                         new WarFileBasedURIResolver(loader));
                 return wsdlToAxisServiceBuilder.populateService();
             } else {
-                new DeploymentException(Messages.getMessage("invalidWSDLFound"));
+                throw new DeploymentException(Messages.getMessage("invalidWSDLFound"));
             }
         }
         return null;
@@ -418,7 +418,7 @@
                         in2 = new FileInputStream(file1);
                         wsdlToAxisServiceBuilder = new WSDL11ToAxisServiceBuilder(in2, null,
null);
                     } else {
-                        new DeploymentException(Messages.getMessage("invalidWSDLFound"));
+                        throw new DeploymentException(Messages.getMessage("invalidWSDLFound"));
                     }
 
                     FileInputStream in3 = new FileInputStream(file1);



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message