2 Replies Latest reply on Jun 7, 2013 2:27 PM by alvinuw

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

    alvinuw

      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.

      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