<!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="http://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;">
    failed to lazily initialize a collection of role: org.jbpm.pvm.internal.model.ExecutionImpl.variables, no session or session was closed
</h3>
<span style="margin-bottom: 10px;">
    reply from <a href="http://community.jboss.org/people/FelixKJose">Felix Jose</a> in <i>jBPM</i> - <a href="http://community.jboss.org/message/552029#552029">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 Michael,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Thank You for your reply. Even I am having the same configuration in my jbpm.cfg.xml file. Then I have tried with reinstantiate the ExecutionService factory as</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="color: #3f7f5f; font-size: 10pt; "><p>executionService = processEngine.getExecutionService();</p><p>Then after that it starts working. Before I give the transaction management I was getting the lazyinitialization exception while trying to access the properties of the jbpm process variable objects. But after I configure the transaction management as follows:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p class="MsoNormal" style="min-height: 8pt; height: 8pt; padding: 0px;"><span style="FONT-SIZE: 10pt; font-size: 10pt; font-family: Courier New; FONT-FAMILY: 'Courier New'; "> </span>&#160;</p><p class="MsoNormal"><span style="FONT-SIZE: 10pt; color: #008080; font-size: 10pt; font-family: Courier New; FONT-FAMILY: 'Courier New'; COLOR: teal; ">&lt;</span><span style="FONT-SIZE: 10pt; BACKGROUND: silver; color: #3f7f7f; font-size: 10pt; font-family: Courier New; FONT-FAMILY: 'Courier New'; COLOR: #3f7f7f; ">bean</span><span style="FONT-SIZE: 10pt; font-size: 10pt; font-family: Courier New; FONT-FAMILY: 'Courier New'; "> <span style="color: #7f007f; COLOR: #7f007f; ">id</span><span style="color: #000000; COLOR: black; ">=</span><em style=": ; color: #2a00ff; FONT-STYLE: italic; COLOR: #2a00ff; ">"jbpmContextServiceTarget"</em> <span style="color: #7f007f; COLOR: #7f007f; ">class</span><span style="color: #000000; COLOR: black; ">=</span><em style=": ; color: #2a00ff; FONT-STYLE: italic; COLOR: #2a00ff; ">"com.collabera.poc.jbpm.impl.JBPMContextServiceImpl"</em></span></p><p class="MsoNormal"><span style="FONT-SIZE: 10pt; font-size: 10pt; font-family: Courier New; FONT-FAMILY: 'Courier New'; ">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="color: #7f007f; COLOR: #7f007f; ">init-method</span><span style="color: #000000; COLOR: black; ">=</span><em style=": ; color: #2a00ff; FONT-STYLE: italic; COLOR: #2a00ff; ">"init"</em><span style="color: #008080; COLOR: teal; ">&gt;</span></span></p><p class="MsoNormal"><span style="FONT-SIZE: 10pt; color: #000000; font-size: 10pt; font-family: Courier New; FONT-FAMILY: 'Courier New'; COLOR: black; ">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="FONT-SIZE: 10pt; color: #008080; font-size: 10pt; font-family: Courier New; FONT-FAMILY: 'Courier New'; COLOR: teal; ">&lt;</span><span style="FONT-SIZE: 10pt; color: #3f7f7f; font-size: 10pt; font-family: Courier New; FONT-FAMILY: 'Courier New'; COLOR: #3f7f7f; ">property</span><span style="FONT-SIZE: 10pt; font-size: 10pt; font-family: Courier New; FONT-FAMILY: 'Courier New'; "> <span style="color: #7f007f; COLOR: #7f007f; ">name</span><span style="color: #000000; COLOR: black; ">=</span><em style=": ; color: #2a00ff; FONT-STYLE: italic; COLOR: #2a00ff; ">"processEngine"</em><span style="color: #008080; COLOR: teal; ">&gt;</span></span></p><p class="MsoNormal"><span style="FONT-SIZE: 10pt; color: #000000; font-size: 10pt; font-family: Courier New; FONT-FAMILY: 'Courier New'; COLOR: black; ">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="FONT-SIZE: 10pt; color: #008080; font-size: 10pt; font-family: Courier New; FONT-FAMILY: 'Courier New'; COLOR: teal; ">&lt;</span><span style="FONT-SIZE: 10pt; color: #3f7f7f; font-size: 10pt; font-family: Courier New; FONT-FAMILY: 'Courier New'; COLOR: #3f7f7f; ">ref</span><span style="FONT-SIZE: 10pt; font-size: 10pt; font-family: Courier New; FONT-FAMILY: 'Courier New'; "> <span style="color: #7f007f; COLOR: #7f007f; ">bean</span><span style="color: #000000; COLOR: black; ">=</span><em style=": ; color: #2a00ff; FONT-STYLE: italic; COLOR: #2a00ff; ">"processEngine"</em> <span style="color: #008080; COLOR: teal; ">/&gt;</span></span></p><p class="MsoNormal"><span style="FONT-SIZE: 10pt; color: #000000; font-size: 10pt; font-family: Courier New; FONT-FAMILY: 'Courier New'; COLOR: black; ">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="FONT-SIZE: 10pt; color: #008080; font-size: 10pt; font-family: Courier New; FONT-FAMILY: 'Courier New'; COLOR: teal; ">&lt;/</span><span style="FONT-SIZE: 10pt; color: #3f7f7f; font-size: 10pt; font-family: Courier New; FONT-FAMILY: 'Courier New'; COLOR: #3f7f7f; ">property</span><span style="FONT-SIZE: 10pt; color: #008080; font-size: 10pt; font-family: Courier New; FONT-FAMILY: 'Courier New'; COLOR: teal; ">&gt;</span></p><p class="MsoNormal"><span style="FONT-SIZE: 10pt; color: #000000; font-size: 10pt; font-family: Courier New; FONT-FAMILY: 'Courier New'; COLOR: black; ">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="FONT-SIZE: 10pt; color: #008080; font-size: 10pt; font-family: Courier New; FONT-FAMILY: 'Courier New'; COLOR: teal; ">&lt;</span><span style="FONT-SIZE: 10pt; color: #3f7f7f; font-size: 10pt; font-family: Courier New; FONT-FAMILY: 'Courier New'; COLOR: #3f7f7f; ">property</span><span style="FONT-SIZE: 10pt; font-size: 10pt; font-family: Courier New; FONT-FAMILY: 'Courier New'; "> <span style="color: #7f007f; COLOR: #7f007f; ">name</span><span style="color: #000000; COLOR: black; ">=</span><em style=": ; color: #2a00ff; FONT-STYLE: italic; COLOR: #2a00ff; ">"checking"</em><span style="color: #008080; COLOR: teal; ">&gt;</span></span></p><p class="MsoNormal"><span style="FONT-SIZE: 10pt; color: #000000; font-size: 10pt; font-family: Courier New; FONT-FAMILY: 'Courier New'; COLOR: black; ">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="FONT-SIZE: 10pt; color: #008080; font-size: 10pt; font-family: Courier New; FONT-FAMILY: 'Courier New'; COLOR: teal; ">&lt;</span><span style="FONT-SIZE: 10pt; color: #3f7f7f; font-size: 10pt; font-family: Courier New; FONT-FAMILY: 'Courier New'; COLOR: #3f7f7f; ">ref</span><span style="FONT-SIZE: 10pt; font-size: 10pt; font-family: Courier New; FONT-FAMILY: 'Courier New'; "> <span style="color: #7f007f; COLOR: #7f007f; ">bean</span><span style="color: #000000; COLOR: black; ">=</span><em style=": ; color: #2a00ff; FONT-STYLE: italic; COLOR: #2a00ff; ">"checking"</em> <span style="color: #008080; COLOR: teal; ">/&gt;</span></span></p><p class="MsoNormal"><span style="FONT-SIZE: 10pt; color: #000000; font-size: 10pt; font-family: Courier New; FONT-FAMILY: 'Courier New'; COLOR: black; ">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="FONT-SIZE: 10pt; color: #008080; font-size: 10pt; font-family: Courier New; FONT-FAMILY: 'Courier New'; COLOR: teal; ">&lt;/</span><span style="FONT-SIZE: 10pt; color: #3f7f7f; font-size: 10pt; font-family: Courier New; FONT-FAMILY: 'Courier New'; COLOR: #3f7f7f; ">property</span><span style="FONT-SIZE: 10pt; color: #008080; font-size: 10pt; font-family: Courier New; FONT-FAMILY: 'Courier New'; COLOR: teal; ">&gt;</span></p><p class="MsoNormal"><span style="FONT-SIZE: 10pt; color: #008080; font-size: 10pt; font-family: Courier New; FONT-FAMILY: 'Courier New'; COLOR: teal; ">&lt;</span><span style="FONT-SIZE: 10pt; BACKGROUND: silver; color: #3f7f7f; font-size: 10pt; font-family: Courier New; FONT-FAMILY: 'Courier New'; COLOR: #3f7f7f; ">bean</span><span style="FONT-SIZE: 10pt; font-size: 10pt; font-family: Courier New; FONT-FAMILY: 'Courier New'; "> <span style="color: #7f007f; COLOR: #7f007f; ">id</span><span style="color: #000000; COLOR: black; ">=</span><em style=": ; color: #2a00ff; FONT-STYLE: italic; COLOR: #2a00ff; ">"jbpmContextService"</em> <span style="color: #7f007f; COLOR: #7f007f; ">class</span><span style="color: #000000; COLOR: black; ">=</span><em style=": ; color: #2a00ff; FONT-STYLE: italic; COLOR: #2a00ff; ">"org.springframework.transaction.interceptor.TransactionProxyFactoryBean"</em><span style="color: #008080; COLOR: teal; ">&gt;</span></span></p><p class="MsoNormal"><span style="FONT-SIZE: 10pt; color: #000000; font-size: 10pt; font-family: Courier New; FONT-FAMILY: 'Courier New'; COLOR: black; ">&#160;&#160;&#160; </span><span style="FONT-SIZE: 10pt; color: #008080; font-size: 10pt; font-family: Courier New; FONT-FAMILY: 'Courier New'; COLOR: teal; ">&lt;</span><span style="FONT-SIZE: 10pt; color: #3f7f7f; font-size: 10pt; font-family: Courier New; FONT-FAMILY: 'Courier New'; COLOR: #3f7f7f; ">property</span><span style="FONT-SIZE: 10pt; font-size: 10pt; font-family: Courier New; FONT-FAMILY: 'Courier New'; "> <span style="color: #7f007f; COLOR: #7f007f; ">name</span><span style="color: #000000; COLOR: black; ">=</span><em style=": ; color: #2a00ff; FONT-STYLE: italic; COLOR: #2a00ff; ">"transactionManager"</em><span style="color: #008080; COLOR: teal; ">&gt;&lt;</span><span style="color: #3f7f7f; COLOR: #3f7f7f; ">ref</span> <span style="color: #7f007f; COLOR: #7f007f; ">bean</span><span style="color: #000000; COLOR: black; ">=</span><em style=": ; color: #2a00ff; FONT-STYLE: italic; COLOR: #2a00ff; ">"transactionManager"</em><span style="color: #008080; COLOR: teal; ">/&gt;&lt;/</span><span style="color: #3f7f7f; COLOR: #3f7f7f; ">property</span><span style="color: #008080; COLOR: teal; ">&gt;</span></span></p><p class="MsoNormal"><span style="FONT-SIZE: 10pt; color: #000000; font-size: 10pt; font-family: Courier New; FONT-FAMILY: 'Courier New'; COLOR: black; ">&#160;&#160;&#160; </span><span style="FONT-SIZE: 10pt; color: #008080; font-size: 10pt; font-family: Courier New; FONT-FAMILY: 'Courier New'; COLOR: teal; ">&lt;</span><span style="FONT-SIZE: 10pt; color: #3f7f7f; font-size: 10pt; font-family: Courier New; FONT-FAMILY: 'Courier New'; COLOR: #3f7f7f; ">property</span><span style="FONT-SIZE: 10pt; font-size: 10pt; font-family: Courier New; FONT-FAMILY: 'Courier New'; "> <span style="color: #7f007f; COLOR: #7f007f; ">name</span><span style="color: #000000; COLOR: black; ">=</span><em style=": ; color: #2a00ff; FONT-STYLE: italic; COLOR: #2a00ff; ">"target"</em><span style="color: #008080; COLOR: teal; ">&gt;&lt;</span><span style="color: #3f7f7f; COLOR: #3f7f7f; ">ref</span> <span style="color: #7f007f; COLOR: #7f007f; ">bean</span><span style="color: #000000; COLOR: black; ">=</span><em style=": ; color: #2a00ff; FONT-STYLE: italic; COLOR: #2a00ff; ">"jbpmContextServiceTarget"</em><span style="color: #008080; COLOR: teal; ">/&gt;&lt;/</span><span style="color: #3f7f7f; COLOR: #3f7f7f; ">property</span><span style="color: #008080; COLOR: teal; ">&gt;</span></span></p><p class="MsoNormal"><span style="FONT-SIZE: 10pt; color: #000000; font-size: 10pt; font-family: Courier New; FONT-FAMILY: 'Courier New'; COLOR: black; ">&#160;&#160;&#160; </span><span style="FONT-SIZE: 10pt; color: #008080; font-size: 10pt; font-family: Courier New; FONT-FAMILY: 'Courier New'; COLOR: teal; ">&lt;</span><span style="FONT-SIZE: 10pt; color: #3f7f7f; font-size: 10pt; font-family: Courier New; FONT-FAMILY: 'Courier New'; COLOR: #3f7f7f; ">property</span><span style="FONT-SIZE: 10pt; font-size: 10pt; font-family: Courier New; FONT-FAMILY: 'Courier New'; "> <span style="color: #7f007f; COLOR: #7f007f; ">name</span><span style="color: #000000; COLOR: black; ">=</span><em style=": ; color: #2a00ff; FONT-STYLE: italic; COLOR: #2a00ff; ">"transactionAttributes"</em><span style="color: #008080; COLOR: teal; ">&gt;</span></span></p><p class="MsoNormal"><span style="FONT-SIZE: 10pt; color: #000000; font-size: 10pt; font-family: Courier New; FONT-FAMILY: 'Courier New'; COLOR: black; ">&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="FONT-SIZE: 10pt; color: #008080; font-size: 10pt; font-family: Courier New; FONT-FAMILY: 'Courier New'; COLOR: teal; ">&lt;</span><span style="FONT-SIZE: 10pt; color: #3f7f7f; font-size: 10pt; font-family: Courier New; FONT-FAMILY: 'Courier New'; COLOR: #3f7f7f; ">props</span><span style="FONT-SIZE: 10pt; color: #008080; font-size: 10pt; font-family: Courier New; FONT-FAMILY: 'Courier New'; COLOR: teal; ">&gt;</span></p><p class="MsoNormal"><span style="FONT-SIZE: 10pt; color: #000000; font-size: 10pt; font-family: Courier New; FONT-FAMILY: 'Courier New'; COLOR: black; ">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="FONT-SIZE: 10pt; color: #008080; font-size: 10pt; font-family: Courier New; FONT-FAMILY: 'Courier New'; COLOR: teal; ">&lt;</span><span style="FONT-SIZE: 10pt; color: #3f7f7f; font-size: 10pt; font-family: Courier New; FONT-FAMILY: 'Courier New'; COLOR: #3f7f7f; ">prop</span><span style="FONT-SIZE: 10pt; font-size: 10pt; font-family: Courier New; FONT-FAMILY: 'Courier New'; "> <span style="color: #7f007f; COLOR: #7f007f; ">key</span><span style="color: #000000; COLOR: black; ">=</span><em style=": ; color: #2a00ff; FONT-STYLE: italic; COLOR: #2a00ff; ">"deploy*"</em><span style="color: #008080; COLOR: teal; ">&gt;</span><span style="color: #000000; COLOR: black; ">PROPAGATION_REQUIRED</span><span style="color: #008080; COLOR: teal; ">&lt;/</span><span style="color: #3f7f7f; COLOR: #3f7f7f; ">prop</span><span style="color: #008080; COLOR: teal; ">&gt;</span></span></p><p class="MsoNormal"><span style="FONT-SIZE: 10pt; color: #000000; font-size: 10pt; font-family: Courier New; FONT-FAMILY: 'Courier New'; COLOR: black; ">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="FONT-SIZE: 10pt; color: #008080; font-size: 10pt; font-family: Courier New; FONT-FAMILY: 'Courier New'; COLOR: teal; ">&lt;</span><span style="FONT-SIZE: 10pt; color: #3f7f7f; font-size: 10pt; font-family: Courier New; FONT-FAMILY: 'Courier New'; COLOR: #3f7f7f; ">prop</span><span style="FONT-SIZE: 10pt; font-size: 10pt; font-family: Courier New; FONT-FAMILY: 'Courier New'; "> <span style="color: #7f007f; COLOR: #7f007f; ">key</span><span style="color: #000000; COLOR: black; ">=</span><em style=": ; color: #2a00ff; FONT-STYLE: italic; COLOR: #2a00ff; ">"*"</em><span style="color: #008080; COLOR: teal; ">&gt;</span><span style="color: #000000; COLOR: black; ">PROPAGATION_REQUIRED</span><span style="color: #008080; COLOR: teal; ">&lt;/</span><span style="color: #3f7f7f; COLOR: #3f7f7f; ">prop</span><span style="color: #008080; COLOR: teal; ">&gt;</span></span></p><p class="MsoNormal"><span style="FONT-SIZE: 10pt; color: #000000; font-size: 10pt; font-family: Courier New; FONT-FAMILY: 'Courier New'; COLOR: black; ">&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="FONT-SIZE: 10pt; color: #008080; font-size: 10pt; font-family: Courier New; FONT-FAMILY: 'Courier New'; COLOR: teal; ">&lt;/</span><span style="FONT-SIZE: 10pt; color: #3f7f7f; font-size: 10pt; font-family: Courier New; FONT-FAMILY: 'Courier New'; COLOR: #3f7f7f; ">props</span><span style="FONT-SIZE: 10pt; color: #008080; font-size: 10pt; font-family: Courier New; FONT-FAMILY: 'Courier New'; COLOR: teal; ">&gt;</span></p><p class="MsoNormal"><span style="FONT-SIZE: 10pt; color: #000000; font-size: 10pt; font-family: Courier New; FONT-FAMILY: 'Courier New'; COLOR: black; ">&#160;&#160;&#160; </span><span style="FONT-SIZE: 10pt; color: #008080; font-size: 10pt; font-family: Courier New; FONT-FAMILY: 'Courier New'; COLOR: teal; ">&lt;/</span><span style="FONT-SIZE: 10pt; color: #3f7f7f; font-size: 10pt; font-family: Courier New; FONT-FAMILY: 'Courier New'; COLOR: #3f7f7f; ">property</span><span style="FONT-SIZE: 10pt; color: #008080; font-size: 10pt; font-family: Courier New; FONT-FAMILY: 'Courier New'; COLOR: teal; ">&gt;</span></p><p class="MsoNormal"><span style="FONT-SIZE: 10pt; color: #008080; font-size: 10pt; font-family: Courier New; FONT-FAMILY: 'Courier New'; COLOR: teal; ">&lt;/</span><span style="FONT-SIZE: 10pt; BACKGROUND: silver; color: #3f7f7f; font-size: 10pt; font-family: Courier New; FONT-FAMILY: 'Courier New'; COLOR: #3f7f7f; ">bean</span><span style="FONT-SIZE: 10pt; color: #008080; font-size: 10pt; font-family: Courier New; FONT-FAMILY: 'Courier New'; COLOR: teal; ">&gt;</span></p><p class="MsoNormal" style="min-height: 8pt; height: 8pt; padding: 0px;"><span style="FONT-SIZE: 10pt; color: #008080; font-size: 10pt; font-family: Courier New; FONT-FAMILY: 'Courier New'; COLOR: teal; "> </span> &#160;</p><p class="MsoNormal"><span style="FONT-SIZE: 10pt; color: #008080; font-size: 10pt; font-family: Courier New; FONT-FAMILY: 'Courier New'; COLOR: teal; "> </span>And try to do a transition using executionService&#160; I am getting the exception saying that "<span style="font-size: 10pt; color: #ff0000;"><span style=": ; color: #ff0000; font-size: 2; font-color: #ff0000; "><p align="left">Exception in thread "main"</p></span><span style="font-color: #ff0000; font-size: 2; "><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p align="left"><span style="color: #000080; font-size: 10pt; text-decoration: underline; ">org.jbpm.api.JbpmException</span><span style="font-size: 10pt; color: #ff0000;"><span style="font-size: 10pt; color: #ff0000;">: execution ddrRequest.400008 does not exist<span style=": ; font-size: 2; font-color: #ff0000; "><p align="left">at org.jbpm.pvm.internal.cmd.SignalCmd.execute(</p></span></span><span style="font-color: #ff0000; font-size: 2; "><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p align="left"><span style="color: #000080; font-size: 10pt; text-decoration: underline; ">SignalCmd.java:58</span><span style="font-size: 10pt; color: #ff0000;"><span style="font-size: 10pt; color: #ff0000;">)<span style=": ; font-size: 2; font-color: #ff0000; "><p align="left">at org.jbpm.pvm.internal.cmd.SignalCmd.execute(</p></span></span><span style="font-color: #ff0000; font-size: 2; "><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p align="left"><span style="color: #000080; font-size: 10pt; text-decoration: underline; ">SignalCmd.java:35</span><span style="font-size: 10pt; color: #ff0000;"><span style="font-size: 10pt; color: #ff0000;">)<span style=": ; font-size: 2; font-color: #ff0000; "><p align="left">at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(</p></span></span><span style="font-color: #ff0000; font-size: 2; "><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p align="left"><span style="color: #000080; font-size: 10pt; text-decoration: underline; ">DefaultCommandService.java:42</span><span style="font-size: 10pt; color: #ff0000;"><span style="font-size: 10pt; color: #ff0000;">)<span style=": ; font-size: 2; font-color: #ff0000; "><p align="left">at org.jbpm.pvm.internal.tx.SpringCommandCallback.doInTransaction(</p></span></span><span style="font-color: #ff0000; font-size: 2; "><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p align="left"><span style="color: #000080; font-size: 10pt; text-decoration: underline; ">SpringCommandCallback.java:45</span><span style="font-size: 10pt; color: #ff0000;"><span style="font-size: 10pt; color: #ff0000;">)<span style=": ; font-size: 2; font-color: #ff0000; "><p>at org.springframework.transaction.support.TransactionTemplate.execute(</p></span></span><span style="font-color: #ff0000; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #000080; font-size: 10pt; text-decoration: underline; ">TransactionTemplate.java:128</span><span style="color: #ff0000; font-size: 10pt; ">)</span></p><p><span style="color: #ff0000; font-size: 10pt; ">I am getting this exception when I am using the ExecutionService instance to access the process instance.</span></p><p><span style="color: #ff0000; font-size: 10pt; ">In my analysis the problem is as the transaction is active and session is opened the JBPM4_EXECUTION table is not getting updated and the <span style="font-size: 10pt; color: #0000c0;"><span style="font-size: 10pt; color: #0000c0;"><p><span style="font-size: 10pt; color: #0000c0;"><span style=": ; color: #0000c0; font-size: 2; font-color: #0000c0; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span><span style="font-color: #0000c0; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><span style=": ; font-size: 2; font-color: #0000c0; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-color: #0000c0; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><p><em><span style="font-size: 10pt; color: #0000c0;"><span style="font-size: 10pt; color: #0000c0;"><em style=": ; font-size: 2; font-color: #0000c0; "><p>executionService</p></em></span><em style=": ; font-size: 2; font-color: #0000c0; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></em></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="font-size: 10pt; color: #000000;">.signalExecutionById(id, </span><span style="color: #2a00ff; font-size: 10pt; ">"analystResearch")</span><span style="color: #000000; font-size: 10pt; ">; is trying to find the execution istance from table but it is not present. But my doubt is why it is not tring to pick it from session?</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="color: #000000;">One main thing is this problem is occuring only when the JBPM process definition is having a &lt;java&gt; node with some arguments and if we change the variable/variables in that java class.</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="color: #000000;">And one more doubt,</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></em></p><p>processEngine.execute(<strong>new</strong> Command() {<br/>&#160;&#160;&#160; <strong>public</strong> Object execute(Environment env) {<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; // do something.<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; <strong>return</strong> <strong>null</strong>;<br/>&#160;&#160;&#160; }<br/>});<br/>why do we need this?</p><p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="color: #000000;">Can anybody please send me a solution for the same.</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="color: #000000;">Thank you and regards,</span></p><p><span style="color: #000000;">Felix K Jose</span></p></p></span></p></span></p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/552029#552029">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in jBPM at <a href="http://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>