1 Reply Latest reply on Nov 15, 2010 3:06 AM by vata2999

    JBPM Could not commit transaction

    vata2999

      Hi, i created a simple (add friend) process base on bonus chapter in seam in action book
      after i want to start process i've got this exception



      Caused by java.lang.IllegalStateException with message: Could not commit transaction





      Caused by javax.transaction.HeuristicMixedException with message:


      any idea ?



      my actioBean method




      @End     
      @CreateProcess(definition="Courier")
           public void registerCommunityComment() {
                entityManager.persist(communityComment);          
                entityManager.flush();
      }




      PS : when flushmode is automatic and i don't use any other entity to persist everything goes fine, however it's intersting that evrything commit in databse but exception occured

        • 1. Re: JBPM Could not commit transaction
          vata2999

          first i thaought this is bug, after google searching i found out this is because of two phases of commit com.arjuna.ats.jta.recovery.XAResourceRecovery, in order to i'm using postgresql i only


          set max_prepared_connection = 64




          in postgresql.conf so this thread is closed