You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by mr...@apache.org on 2006/11/15 18:37:12 UTC

svn commit: r475317 - /incubator/ode/trunk/bpel-store/src/main/java/org/apache/ode/store/ProcessStoreImpl.java

Author: mriou
Date: Wed Nov 15 09:37:10 2006
New Revision: 475317

URL: http://svn.apache.org/viewvc?view=rev&rev=475317
Log:
Throwing a specific exception when no process configuration can be found (even if theoretically it shouldn't happen).

Modified:
    incubator/ode/trunk/bpel-store/src/main/java/org/apache/ode/store/ProcessStoreImpl.java

Modified: incubator/ode/trunk/bpel-store/src/main/java/org/apache/ode/store/ProcessStoreImpl.java
URL: http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-store/src/main/java/org/apache/ode/store/ProcessStoreImpl.java?view=diff&rev=475317&r1=475316&r2=475317
==============================================================================
--- incubator/ode/trunk/bpel-store/src/main/java/org/apache/ode/store/ProcessStoreImpl.java (original)
+++ incubator/ode/trunk/bpel-store/src/main/java/org/apache/ode/store/ProcessStoreImpl.java Wed Nov 15 09:37:10 2006
@@ -364,6 +364,9 @@
             return _conn.exec(new ConfStoreConnection.Callable<ProcessConf>() {
                 public ProcessConf run() throws Exception {
                     ProcessConfDAO confDAO = _conn.getProcessConf(processId);
+                    if (confDAO == null)
+                        throw new RuntimeException("Couldn't find process " + processId + " configuration in " +
+                                "the process store!");
                     return buildConf(confDAO);
                 }
             });