<!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;">
Error: APPLICATION ERROR: transaction still active in request with status 0
</h3>
<span style="margin-bottom: 10px;">
created by <a href="https://community.jboss.org/people/alvinuw">alvinuw</a> in <i>jBPM</i> - <a href="https://community.jboss.org/message/820178#820178">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>Hello,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I am trying to deploy my jbpm5.4 process in console.</p><p>The process is very simple, which contains a start -> the first workItem(EmailSender)->the first workItem(EmailReceiver)->an end</p><p>For some reason, I have to write the custom workitemhandlers for the two workItems, EWSHandler and EWSHandler2.</p><p><strong>Please note:</strong> I also have two variables(MsgId, Checker) for the com.sample.bpmn.EmailApps process.</p><p>And I used eclipse plugin to develop it, it works well on eclipse.</p><p>In  EWSHandler.java, I have:</p><p>  </p><p>  Map<String, Object> results = new HashMap<String, Object>();</p><p>                    results.put("MsgId", id);</p><p>                    results.put("Checker", recipient);</p><p>  manager.completeWorkItem(workItem.getId(), results);</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I followed the below steps to deploy the process in console.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><strong>1</strong>. modify  <span lang="EN-CA" style="font-size: 10pt; font-family: 'Lucida Sans'; color: #555555;">$jbpm_installer/conf/META-INF/</span><span style="font-size: 10pt;"><span lang="EN-CA" style="font-family: 'Lucida Sans'; color: #555555;"><span lang="EN-CA" style="font-family: 'Lucida Sans'; color: #555555;">CustomWorkItemHandlers.conf</span></span><span lang="EN-CA" style="font-family: 'Lucida Sans'; color: #555555;"> </span></span></p><p>[</p><p>  "Log": new org.jbpm.process.instance.impl.demo.SystemOutWorkItemHandler(),</p><p>  "EmailSender": new com.sample.EWSHandler(),</p><p>  "EmailReceiver": new com.sample.EWSHandler2(),</p><p>]</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><strong>2. </strong>put both com.sample.EWSHandler.jar and com.sample.EWSHandler2.jar in <span style="color: #555555; font-family: 'Lucida Sans';">$jbpm_installer/</span>dependencies folder.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><strong>3. </strong>Run commands</p><p style="margin-bottom: .0001pt; background: white;"><span style="font-size: 10pt; font-family: 'Lucida Sans'; color: #555555;">ant clean.demo</span></p><p style="margin-bottom: .0001pt; background: white;"><span style="font-size: 10pt; font-family: 'Lucida Sans'; color: #555555;">ant install.demo</span></p><p style="margin-bottom: .0001pt; background: white;"><span style="font-size: 6.0pt; font-family: 'Lucida Sans'; color: #555555;"><span style="font-size: 10pt;">ant start.demo</span><br/></span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><strong>4. </strong>Upload EmailApps-image.png and EmailApps.bpmn to Guvnor's defaultPackge, then build package.</p><p><strong>5.</strong> login Console, check Process Overview.</p><p><a href="https://community.jboss.org/servlet/JiveServlet/showImage/2-820178-20884/console.PNG"><span> https://community.jboss.org/servlet/JiveServlet/downloadImage/2-820178-20884/450-258/console.PNG </span></a></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><strong>6. I don't know why it shows "Process1" instead of "EmailApps" in my process list. How to change the process name?</strong></p><p>When I checked the server.log, it gave me the following error<strong>.<br/></strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>12:24:37,529 WARN  [org.drools.guvnor.server.repository.RulesRepositoryManager] (http-localhost-127.0.0.1-8080-14) Creating RulesRepository with default username.</p><p>12:24:37,529 INFO  [stdout] (http-localhost-127.0.0.1-8080-14) =============== session-guest-33</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>12:24:37,529 INFO  [stdout] (http-localhost-127.0.0.1-8080-14) =============== session-guest-33</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>12:24:45,407 ERROR [org.jboss.as.txn] (http-localhost-127.0.0.1-8080-6) <span style="color: #ff0000;"><strong>JBAS010152: </strong><strong>APPLICATION ERROR: transaction still active in request with status 0</strong></span></p><p>12:24:47,513 WARN  [org.drools.guvnor.server.repository.RulesRepositoryManager] (http-localhost-127.0.0.1-8080-14) Creating RulesRepository with default username.</p><p>12:24:47,513 INFO  [stdout] (http-localhost-127.0.0.1-8080-14) =============== session-guest-34</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I searched this error in both google and our community, but didn't get a proper answer.</p><p>If you need me to provide more details, please let me know.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Thank you very much.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Alvin</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/820178#820178">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>