[jboss-user] [jBPM] - Re: MapBasedPersistenceTest issue

Donald Walters do-not-reply at jboss.com
Thu Oct 27 16:09:06 EDT 2011


Donald Walters [http://community.jboss.org/people/dondragon2] created the discussion

"Re: MapBasedPersistenceTest issue"

To view the discussion, visit: http://community.jboss.org/message/633943#633943

--------------------------------------------------------------
I have the following thread running but still nothing.

      private static class SessionExpirator extends Thread{
        @Override
        public void run() {
            while(RunningStatus.isRunning()){
                Enumeration<Integer> keys = ksessions.keys();
                while(keys.hasMoreElements()){
                    StatefulKnowledgeSession sess = getSession(keys.nextElement());
                    sess.fireUntilHalt();
                }
            }

            try{
                Thread.sleep(1000 * 60);
            }catch(Exception e){}
        }

In addition, I get the following when completing the task before the timer event.

java.util.concurrent.RejectedExecutionException
          at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(Unknown Source)
          at java.util.concurrent.ThreadPoolExecutor.reject(Unknown Source)
          at java.util.concurrent.ScheduledThreadPoolExecutor.delayedExecute(Unknown Source)
          at java.util.concurrent.ScheduledThreadPoolExecutor.schedule(Unknown Source)
          at org.drools.time.impl.JDKTimerService.schedule(JDKTimerService.java:115)
          at org.drools.time.impl.JDKTimerService.scheduleJob(JDKTimerService.java:80)
          at org.jbpm.process.instance.timer.TimerManager.registerTimer(TimerManager.java:61)
          at org.jbpm.workflow.instance.node.TimerNodeInstance.internalTrigger(TimerNodeInstance.java:67)
          at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:122)
          at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerConnection(NodeInstanceImpl.java:185)
          at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:150)
          at org.jbpm.workflow.instance.node.SplitInstance.internalTrigger(SplitInstance.java:61)
          at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:122)
          at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerConnection(NodeInstanceImpl.java:185)
          at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:150)
          at org.jbpm.workflow.instance.impl.ExtendedNodeInstanceImpl.triggerCompleted(ExtendedNodeInstanceImpl.java:47)
          at org.jbpm.workflow.instance.node.StateBasedNodeInstance.triggerCompleted(StateBasedNodeInstance.java:162)
          at org.jbpm.workflow.instance.node.StateBasedNodeInstance.triggerCompleted(StateBasedNodeInstance.java:143)
          at org.jbpm.workflow.instance.node.WorkItemNodeInstance.triggerCompleted(WorkItemNodeInstance.java:239)
          at org.jbpm.workflow.instance.node.WorkItemNodeInstance.workItemCompleted(WorkItemNodeInstance.java:301)
          at org.jbpm.workflow.instance.node.WorkItemNodeInstance.signalEvent(WorkItemNodeInstance.java:277)
          at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.signalEvent(WorkflowProcessInstanceImpl.java:333)
          at org.drools.process.instance.impl.DefaultWorkItemManager.completeWorkItem(DefaultWorkItemManager.java:116)
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/633943#633943]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20111027/8d90dd59/attachment.html 


More information about the jboss-user mailing list