<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    Cannot make Evaluation example work consistently in Eclipse
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/andymcc">Andy McC</a> in <i>jBPM</i> - <a href="https://community.jboss.org/message/805968#805968">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Hi, </p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Although I'm a newbie, please be assured that I've tried to resolve this one before posting, but it looks like others have hit similar issues in the past (<a class="jive-link-message-small" href="https://community.jboss.org/message/750417#750417">https://community.jboss.org/message/750417#75041</a>).</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I'm seeing the same issue on two different machines, one running Windows 7 the other Windows 8, both running Java SE runtime 1.7.0_17-b02.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I'm running the example "straight out of the box" without any modifications. Here's what I'm seeing:</p><ul><li style="text-align: start;">I've installed jBPM_5.4.0_final and Eclipse Helios as per the installation documentation.</li><li style="text-align: start;">In Eclipse, I run the Evaluation example in Debug with a breakpoint at the <em>logger.close()</em> instruction, and complete all the krisv, john and mary tasks.</li><li style="text-align: start;">In Eclipse, I then press the green arrow in the Debug session to complete the execution.</li><li style="text-align: start;">All good so far.</li><li style="text-align: start;">However, if I immediately try to rerun the Evaluation example, there is a pause and I see the following in the console window (apologies for the formatting!):</li></ul><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><table height="20" style="width: 1338px;"><tbody><tr><td style=";">1</td><td style=";">02/04 11:23:07,519[main] ERROR workitem.wsht.GenericHTWorkItemHandler.executeWorkItem&#160; - Tue Apr 02 11:23:07 BST 2013: Error when creating task on task server for work item id 1. Error reported by task server: Task operation request timed out</td></tr></tbody></table><p>java.lang.RuntimeException: Task operation request timed out</p><table><tbody><tr><td style=";"></td><td style=";">at org.jbpm.task.service.SyncTaskServiceWrapper.addTask(SyncTaskServiceWrapper.java:118)</td></tr><tr><td style=";"></td><td style=";">at org.jbpm.process.workitem.wsht.GenericHTWorkItemHandler.executeWorkItem(GenericHTWorkItemHandler.java:182)</td></tr><tr><td style=";"></td><td style=";">at org.drools.process.instance.impl.DefaultWorkItemManager.internalExecuteWorkItem(DefaultWorkItemManager.java:70)</td></tr><tr><td style=";"></td><td style=";">at org.jbpm.workflow.instance.node.WorkItemNodeInstance.internalTrigger(WorkItemNodeInstance.java:107)</td></tr><tr><td style=";"></td><td style=";">at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:126)</td></tr><tr><td style=";"></td><td style=";">at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:279)</td></tr><tr><td style=";"></td><td style=";">at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:238)</td></tr><tr><td style=";"></td><td style=";">at org.jbpm.workflow.instance.node.StartNodeInstance.triggerCompleted(StartNodeInstance.java:49)</td></tr><tr><td style=";"></td><td style=";">at org.jbpm.workflow.instance.node.StartNodeInstance.internalTrigger(StartNodeInstance.java:41)</td></tr><tr><td style=";"></td><td style=";">at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:126)</td></tr><tr><td style=";"></td><td style=";">at org.jbpm.ruleflow.instance.RuleFlowProcessInstance.internalStart(RuleFlowProcessInstance.java:35)</td></tr><tr><td style=";"></td><td style=";">at org.jbpm.process.instance.impl.ProcessInstanceImpl.start(ProcessInstanceImpl.java:194)</td></tr><tr><td style=";"></td><td style=";">at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.start(WorkflowProcessInstanceImpl.java:309)</td></tr><tr><td style=";"></td><td style=";">at org.jbpm.process.instance.ProcessRuntimeImpl.startProcessInstance(ProcessRuntimeImpl.java:170)</td></tr><tr><td style=";"></td><td style=";">at org.jbpm.process.instance.ProcessRuntimeImpl.startProcess(ProcessRuntimeImpl.java:140)</td></tr><tr><td style=";"></td><td style=";">at org.drools.common.AbstractWorkingMemory.startProcess(AbstractWorkingMemory.java:1098)</td></tr><tr><td style=";"></td><td style=";">at org.drools.impl.StatefulKnowledgeSessionImpl.startProcess(StatefulKnowledgeSessionImpl.java:320)</td></tr><tr><td style=";"></td><td style=";">at com.sample.ProcessTest.main(ProcessTest.java:32)</td></tr><tr><td style=";"><br/></td><td style=";">Process started ...</td></tr></tbody></table><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>The only way I've found to resolve this is to restart Jboss which I'm sure isn't the intended way.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Here's what I've tried/noticed</p><ul><li style="text-align: start;">I've tried inserting a ksession.dispose() after the logger.close() but this does not appear to clear the issue.</li><li style="text-align: start;">I've "clean"ed the Eclipse project and restarted the debug session.</li><li style="text-align: start;">I've noticed that the memory occupancy </li><li style="text-align: start;">When the ProcessTest has apparently completed, the Eclipse session still appears to have several threads that keep running (see below)</li></ul><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><table><tbody><tr><td style=";">com.sample.ProcessTest at localhost:51000</td><td style=";"></td></tr><tr><td style=";"></td><td style=";">Daemon Thread [Old I/O client worker (channelId: 2149714, /127.0.0.1:51002 =&gt; /127.0.0.1:5153)] (Running)</td><td style=";"></td></tr><tr><td style=";"></td><td style=";">Daemon Thread [Thread-0 (HornetQ-client-global-scheduled-threads-22781537)] (Running)</td><td style=";"></td></tr><tr><td style=";"></td><td style=";">Daemon Thread [Thread-1 (HornetQ-client-global-scheduled-threads-22781537)] (Running)</td><td style=";"></td></tr><tr><td style=";"></td><td style=";">Thread [Thread-2] (Running)</td><td style=";"></td></tr><tr><td style=";"></td><td style=";">Daemon Thread [Thread-2 (HornetQ-client-global-scheduled-threads-22781537)] (Running)</td><td style=";"></td></tr><tr><td style=";"></td><td style=";">Daemon Thread [Thread-3 (HornetQ-client-global-scheduled-threads-22781537)] (Running)</td><td style=";"></td></tr><tr><td style=";"></td><td style=";">Daemon Thread [Thread-4 (HornetQ-client-global-scheduled-threads-22781537)] (Running)</td><td style=";"></td></tr><tr><td style=";"></td><td style=";">Thread [DestroyJavaVM] (Running)</td><td style=";"></td></tr></tbody></table><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="text-align: start;">Can anyone shed any light on what might be going wrong here? I'm keen to get moving with jBPM but I'd really like to be confident that I can get the examples working realiably before using Eclipse as my test environment.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="text-align: start;">Many thanks!</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="text-align: start;">Andy McC</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/805968#805968">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in jBPM at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>