servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r412415 - /incubator/servicemix/trunk/servicemix-bpe/src/main/java/org/apache/servicemix/bpe/BPEDeployer.java
Date Wed, 07 Jun 2006 14:58:09 GMT
Author: gnodet
Date: Wed Jun  7 07:58:08 2006
New Revision: 412415

URL: http://svn.apache.org/viewvc?rev=412415&view=rev
Log:
Check that messages are well defined to avoid NoSuchElement exception at runtime

Modified:
    incubator/servicemix/trunk/servicemix-bpe/src/main/java/org/apache/servicemix/bpe/BPEDeployer.java

Modified: incubator/servicemix/trunk/servicemix-bpe/src/main/java/org/apache/servicemix/bpe/BPEDeployer.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/servicemix-bpe/src/main/java/org/apache/servicemix/bpe/BPEDeployer.java?rev=412415&r1=412414&r2=412415&view=diff
==============================================================================
--- incubator/servicemix/trunk/servicemix-bpe/src/main/java/org/apache/servicemix/bpe/BPEDeployer.java
(original)
+++ incubator/servicemix/trunk/servicemix-bpe/src/main/java/org/apache/servicemix/bpe/BPEDeployer.java
Wed Jun  7 07:58:08 2006
@@ -120,6 +120,10 @@
         Collection msgs = rootDef.getMessages().values();
         for (Iterator iter = msgs.iterator(); iter.hasNext();) {
             Message msg = (Message) iter.next();
+            if (msg.isUndefined()) {
+                throw failure("deploy", 
+                        "WSDL Message '" + msg.getQName() + "' is undefined. Check namespaces.",
null);
+            }
             if (msg.getParts().size() > 1) {
                 throw failure("deploy", 
                         "WSDL Message '" + msg.getQName() + "' has more than one part", null);



Mime
View raw message