You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by ba...@apache.org on 2007/02/16 18:39:54 UTC

svn commit: r508515 - /webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/impl/EndpointDescriptionImpl.java

Author: barrettj
Date: Fri Feb 16 09:39:54 2007
New Revision: 508515

URL: http://svn.apache.org/viewvc?view=rev&rev=508515
Log:
Rethrow caught exceptions from ClientConfigurationFactory.completeAxis2Configuration and improve logging.

Modified:
    webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/impl/EndpointDescriptionImpl.java

Modified: webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/impl/EndpointDescriptionImpl.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/impl/EndpointDescriptionImpl.java?view=diff&rev=508515&r1=508514&r2=508515
==============================================================================
--- webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/impl/EndpointDescriptionImpl.java (original)
+++ webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/impl/EndpointDescriptionImpl.java Fri Feb 16 09:39:54 2007
@@ -196,7 +196,10 @@
         // At this point, there must be a port QName set, either as passed in, or determined from the WSDL and/or annotations.
         // If not, that is an error.
         if (this.portQName == null) {
-            throw ExceptionFactory.makeWebServiceException("EndpointDescription.EndpointDescription: portQName could not be determined");
+            if (log.isDebugEnabled()) {
+                log.debug("PortQName was null and could not be determined by runtime.  Class: " + theClass + "; ServiceDescription: " + parent);
+            }
+            throw ExceptionFactory.makeWebServiceException("EndpointDescription: portQName could not be determined for class " + theClass);
         }
         
         // TODO: Refactor this with the consideration of no WSDL/Generic Service/Annotated SEI
@@ -211,21 +214,19 @@
         try {
             getServiceDescriptionImpl().getClientConfigurationFactory().completeAxis2Configuration(axisService);
         } catch (DeploymentException e) {
-            // TODO RAS
-            // TODO NLS
+            // TODO RAS & NLS
             if (log.isDebugEnabled()) {
-                log.debug("Caught exception in ServiceDescription.ServiceDescription: " + e);
-                log.debug("Exception:", e);
+                log.debug("Caught DeploymentException attempting to complete configuration on AxisService: " 
+                        + axisService + " for ServiceDesription: " + parent, e);
             }
-//            throw ExceptionFactory.makeWebServiceException("ServiceDescription caught " + e);
+            throw ExceptionFactory.makeWebServiceException("Unable to complete configuration due to exception " + e, e);
         } catch (Exception e) {
-            // TODO RAS
-            // TODO NLS
+            // TODO RAS & NLS
             if (log.isDebugEnabled()) {
-                log.debug("Caught exception in ServiceDescription.ServiceDescription: " + e);
-                log.debug("Exception:", e);
+                log.debug("Caught Exception attempting to complete configuration on AxisService: " 
+                        + axisService + " for ServiceDesription: " + parent, e);
             }
-//            throw ExceptionFactory.makeWebServiceException("ServiceDescription caught " + e);
+            throw ExceptionFactory.makeWebServiceException("Unable to complete configuration due to exception " + e, e);
         }
     }
     



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