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 2007/03/30 07:05:15 UTC

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

Author: dims
Date: Thu Mar 29 22:05:14 2007
New Revision: 523940

URL: http://svn.apache.org/viewvc?view=rev&rev=523940
Log:
print a warning if the handler xml file is not found

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=523940&r1=523939&r2=523940
==============================================================================
--- 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 Thu Mar 29 22:05:14 2007
@@ -1214,21 +1214,25 @@
                         className,
                         classLoader);
 
-                try {
-                    // All the classes we need should be part of this package
-                    JAXBContext jc = JAXBContext
-                            .newInstance("org.apache.axis2.jaxws.description.xml.handler",
-                                         this.getClass().getClassLoader());
-
-                    Unmarshaller u = jc.createUnmarshaller();
-
-                    JAXBElement<?> o = (JAXBElement<?>)u.unmarshal(is);
-                    handlerChainsType = (HandlerChainsType)o.getValue();
-
-                } catch (Exception e) {
-                    throw ExceptionFactory
-                            .makeWebServiceException(
-                                    "EndpointDescriptionImpl: getHandlerList: thrown when attempting to unmarshall JAXB content");
+                if(is == null) {
+                    log.warn("Unable to load handlers from file: " + handlerFileName);                    
+                } else {
+                    try {
+                        // All the classes we need should be part of this package
+                        JAXBContext jc = JAXBContext
+                                .newInstance("org.apache.axis2.jaxws.description.xml.handler",
+                                             this.getClass().getClassLoader());
+    
+                        Unmarshaller u = jc.createUnmarshaller();
+    
+                        JAXBElement<?> o = (JAXBElement<?>)u.unmarshal(is);
+                        handlerChainsType = (HandlerChainsType)o.getValue();
+    
+                    } catch (Exception e) {
+                        throw ExceptionFactory
+                                .makeWebServiceException(
+                                        "EndpointDescriptionImpl: getHandlerList: thrown when attempting to unmarshall JAXB content");
+                    }
                 }
             }
         }



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