servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r387862 - /incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/framework/EndpointRegistry.java
Date Wed, 22 Mar 2006 13:50:39 GMT
Author: gnodet
Date: Wed Mar 22 05:50:38 2006
New Revision: 387862

URL: http://svn.apache.org/viewcvs?rev=387862&view=rev
Log:
Log meaningful statements instead of NPE when failing to retrieve the wsdl port type

Modified:
    incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/framework/EndpointRegistry.java

Modified: incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/framework/EndpointRegistry.java
URL: http://svn.apache.org/viewcvs/incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/framework/EndpointRegistry.java?rev=387862&r1=387861&r2=387862&view=diff
==============================================================================
--- incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/framework/EndpointRegistry.java
(original)
+++ incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/framework/EndpointRegistry.java
Wed Mar 22 05:50:38 2006
@@ -241,6 +241,12 @@
                 logger.info("Endpoint " + serviceEndpoint + " has a service description,
but no matching endpoint found in " + service.getPorts().keySet());
                 return;
             }
+            if (port.getBinding() == null) {
+                logger.info("Endpoint " + serviceEndpoint + " has a service description,
but no binding found");
+            }
+            if (port.getBinding().getPortType() == null) {
+                logger.info("Endpoint " + serviceEndpoint + " has a service description,
but no port type found");
+            }
             QName interfaceName = port.getBinding().getPortType().getQName();
             if (logger.isDebugEnabled()) {
                 logger.debug("Endpoint " + serviceEndpoint + " implements interface " + interfaceName);



Mime
View raw message