Author: mriou
Date: Wed Jun 11 07:25:32 2008
New Revision: 666679

URL: http://svn.apache.org/viewvc?rev=666679&view=rev
Log:
Slightly better error reporting on wrong message exchange status for receives 
(usually people just didn't put a reply at the right place).

Modified:
    ode/trunk/bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/PICK.java

Modified: 
ode/trunk/bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/PICK.java
URL: 
http://svn.apache.org/viewvc/ode/trunk/bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/PICK.java?rev=666679&r1=666678&r2=666679&view=diff
==============================================================================
--- ode/trunk/bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/PICK.java 
(original)
+++ ode/trunk/bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/PICK.java 
Wed Jun 11 07:25:32 2008
@@ -152,6 +152,18 @@
         // This is allowed, if there is no parts in the message for example.
         if (onMessage.variable == null) return;
 
+        Element msgEl;
+        try {
+            // At this point, not being able to get the request is most 
probably
+            // a mex that hasn't properly replied to (process issue).
+            msgEl = getBpelRuntimeContext().getMyRequest(mexId);
+        } catch (ExternalVariableModuleException e) {
+            __log.error("The message exchange seems to be in an unconsistent 
state, you're " +
+                "probably missing a reply on a request/response interaction.");
+            _self.parent.failure(e.toString(), null);
+            return;
+        }
+
         Element msgEl = getBpelRuntimeContext().getMyRequest(mexId);
         Collection<String> partNames = (Collection<String>) 
onMessage.operation.getInput().getMessage().getParts().keySet();
 


Reply via email to