Discussion:
[jboss-user] [jBPM] - Error: APPLICATION ERROR: transaction still active in request with status 0
alvinuw
2013-05-29 16:48:43 UTC
Permalink
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.
Loading Image... Loading Image...

*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]
alvinuw
2013-06-03 20:42:50 UTC
Permalink
alvinuw [https://community.jboss.org/people/alvinuw] created the discussion

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

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

--------------------------------------------------------------
Since I design the bpmn file in eclipse, I set the variables with the process property.
Do I need to set the variables somewhere else?
Thanks.
--------------------------------------------------------------

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

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
alvinuw
2013-06-07 18:27:25 UTC
Permalink
alvinuw [https://community.jboss.org/people/alvinuw] created the discussion

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

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

--------------------------------------------------------------
One thing I figured out is the process name shown in the console should be the name defined in the bpmn.
But the *https://community.jboss.org/message/821090#821090 APPLICATION ERROR* is still there.
--------------------------------------------------------------

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

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