Author: mszefler
Date: Thu Sep 28 13:17:27 2006
New Revision: 451009

URL: http://svn.apache.org/viewvc?view=rev&rev=451009
Log:
Fixed null debugger support issue.

Modified:
    
incubator/ode/trunk/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/ProcessAndInstanceManagementImpl.java

Modified: 
incubator/ode/trunk/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/ProcessAndInstanceManagementImpl.java
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/ProcessAndInstanceManagementImpl.java?view=diff&rev=451009&r1=451008&r2=451009
==============================================================================
--- 
incubator/ode/trunk/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/ProcessAndInstanceManagementImpl.java
 (original)
+++ 
incubator/ode/trunk/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/ProcessAndInstanceManagementImpl.java
 Thu Sep 28 13:17:27 2006
@@ -74,7 +74,6 @@
     protected BpelEngineImpl _engine;
     protected BpelServerImpl _server;
     protected BpelDatabase _db;
-    private DebuggerSupport _debugSupport;
 
     public ProcessAndInstanceManagementImpl(BpelDatabase db, BpelEngineImpl 
engine, BpelServerImpl server) {
         _db = db;
@@ -82,7 +81,6 @@
         _server = server;
     }
 
-
     public ProcessInfoListDocument listProcessesCustom(String filter, String 
orderKeys, final ProcessInfoCustomizer custom) {
         ProcessInfoListDocument ret = 
ProcessInfoListDocument.Factory.newInstance();
         final TProcessInfoList procInfoList = ret.addNewProcessInfoList();
@@ -293,7 +291,7 @@
         // We need debugger support in order to resume (since we have to force
         // a reduction. If one is not available the getDebugger() method should
         // throw a ProcessingException
-        _debugSupport.resume(iid);
+        getDebugger(iid).resume(iid);
 
         return genInstanceInfoDocument(iid);
     }
@@ -440,14 +438,12 @@
      * @throws ManagementException
      */
     protected final DebuggerSupport getDebugger(QName procid) throws 
ManagementException {
-        if (_debugSupport == null)
-            throw new ProcessingException("DebugSupport required for debugger 
operation.");
 
         BpelProcess process = _engine._activeProcesses.get(procid);
         if (process == null)
             throw new InvalidRequestException("The process \"" + procid + "\" 
is available." );
 
-        return _debugSupport;
+        return process._debugger;
     }
 
 


Reply via email to