camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r1064473 - /camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfProducer.java
Date Fri, 28 Jan 2011 07:33:28 GMT
Author: ningjiang
Date: Fri Jan 28 07:33:28 2011
New Revision: 1064473

URL: http://svn.apache.org/viewvc?rev=1064473&view=rev
Log:
CAMEL-3596  CxfProducer should throw a more meaningful exception when it can't find the binding
operation info

Modified:
    camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfProducer.java

Modified: camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfProducer.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfProducer.java?rev=1064473&r1=1064472&r2=1064473&view=diff
==============================================================================
--- camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfProducer.java
(original)
+++ camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfProducer.java
Fri Jan 28 07:33:28 2011
@@ -354,6 +354,10 @@ public class CxfProducer extends Default
             }
             
             answer = client.getEndpoint().getEndpointInfo().getBinding().getOperation(qname);
+            if (answer == null) {
+                throw new IllegalArgumentException("Can't find the BindingOperationInfo with
operation name " + qname
+                                                   + ". Please check the message headers
of operationName and operationNamespace."); 
+            }
         }
         return answer;
     }



Mime
View raw message