[jboss-user] [jBPM] - Error: APPLICATION ERROR: transaction still active in request with status 0

alvinuw do-not-reply at jboss.com
Wed May 29 12:48:43 EDT 2013


alvinuw [https://community.jboss.org/people/alvinuw] created the discussion

"Error: APPLICATION ERROR: transaction still active in request with status 0"

To view the discussion, visit: https://community.jboss.org/message/820178#820178

--------------------------------------------------------------
Hello,

I am trying to deploy my jbpm5.4 process in console.
The process is very simple, which contains a start -> the first workItem(EmailSender)->the first workItem(EmailReceiver)->an end
For some reason, I have to write the custom workitemhandlers for the two workItems, EWSHandler and EWSHandler2.
*Please note:* I also have two variables(MsgId, Checker) for the com.sample.bpmn.EmailApps process.
And I used eclipse plugin to develop it, it works well on eclipse.
In  EWSHandler.java, I have:

  Map<String, Object> results = new HashMap<String, Object>();
                    results.put("MsgId", id);
                    results.put("Checker", recipient);
  manager.completeWorkItem(workItem.getId(), results);


I followed the below steps to deploy the process in console.

*1*. modify  $jbpm_installer/conf/META-INF/CustomWorkItemHandlers.conf 
[
  "Log": new org.jbpm.process.instance.impl.demo.SystemOutWorkItemHandler(),
  "EmailSender": new com.sample.EWSHandler(),
  "EmailReceiver": new com.sample.EWSHandler2(),
]

*2.* put both com.sample.EWSHandler.jar and com.sample.EWSHandler2.jar in $jbpm_installer/dependencies folder.

*3.* Run commands
ant clean.demo
ant install.demo
ant start.demo


*4.* Upload EmailApps-image.png and EmailApps.bpmn to Guvnor's defaultPackge, then build package.
*5.* login Console, check Process Overview.
 https://community.jboss.org/servlet/JiveServlet/showImage/2-820178-20884/console.PNG  https://community.jboss.org/servlet/JiveServlet/downloadImage/2-820178-20884/450-258/console.PNG 

*6. I don't know why it shows "Process1" instead of "EmailApps" in my process list. How to change the process name?*
When I checked the server.log, it gave me the following error*.
*


12:24:37,529 WARN  [org.drools.guvnor.server.repository.RulesRepositoryManager] (http-localhost-127.0.0.1-8080-14) Creating RulesRepository with default username.
12:24:37,529 INFO  [stdout] (http-localhost-127.0.0.1-8080-14) =============== session-guest-33


12:24:37,529 INFO  [stdout] (http-localhost-127.0.0.1-8080-14) =============== session-guest-33


12:24:45,407 ERROR [org.jboss.as.txn] (http-localhost-127.0.0.1-8080-6) *JBAS010152:* *APPLICATION ERROR: transaction still active in request with status 0*
12:24:47,513 WARN  [org.drools.guvnor.server.repository.RulesRepositoryManager] (http-localhost-127.0.0.1-8080-14) Creating RulesRepository with default username.
12:24:47,513 INFO  [stdout] (http-localhost-127.0.0.1-8080-14) =============== session-guest-34

I searched this error in both google and our community, but didn't get a proper answer.
If you need me to provide more details, please let me know.

Thank you very much.

Alvin
--------------------------------------------------------------

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

Start a new discussion in jBPM at Community
[https://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/20130529/5e916db3/attachment.html 


More information about the jboss-user mailing list