5 Replies Latest reply on Jan 14, 2004 7:08 AM by Darran Lofthouse

    Application error: TxInterceptorBMT

    s goswami Newbie

       

      "simperitog" wrote:
      What is the following error ? How does JBoss determine
      that an Application is returning from an EJB in the middle of a transaction ?

      The Error:
      ==========
      13:00:05,275 ERROR [TxInterceptorBMT] Application error: BMT stateless bean Data Manager should complete transactions before returning (ejb1.1 spec, 11.6.1)
      13:00:05,275 ERROR [STDERR] java.rmi.RemoteException: Application error: BMT stateless bean Data Manager should complete transactions before returning (ejb1.1 s
      pec, 11.6.1)


        • 1. Re: Application error: TxInterceptorBMT
          Adrian Brock Master

           

          "adrian@jboss.org" wrote:
          It asks the transcation manager if there is
          a transaction still active on the thread.
          If there is you get an error, you should commit()
          or rollback()
          Only Stateful BMT can exit a method with a transaction
          still active.

          Regards,
          Adrian


          • 2. Re: Application error: TxInterceptorBMT
            s goswami Newbie

            Well I am using my own trasaction into a database (BMP) that JBoss would not have idea of. I was starting and closing the transaction over mutliple calls to a Stateless Session Bean. How did JBoss figure that out that Stateless Session Bean is not the right vehicle ?

            • 3. Re: Application error: TxInterceptorBMT
              Adrian Brock Master

               

              "adrian@jboss.org" wrote:
              Like I said above, it asks the transaction manager
              if there is an active transaction.

              Regards,
              Adrian


              • 4. Re: Application error: TxInterceptorBMT
                ma1acca Newbie

                 

                "ma1acca" wrote:
                Sorry, Adrian your explanation too cryptic and not too useful. I'm getting the same errors, intermittently. There was another post that say this is
                a well known error with Jboss, but no solution was provided. So what is
                the solution? With EJB spec, I believe it is perfectly legal to
                a. use a BMP stateless bean to get a user transaction, then call
                b. a CMP stateless bean to do the work. Of course in the
                CMP it has to get a connection (which is under the Tx transactioin
                obtained under the BMP earlier
                c. the CMP does the work, then close the connection
                d. the BMP then commit()

                However, then we get ths BMP must commit before return (though
                the error is actually that the commit was not allowed for some
                reason by jboss).
                Some points on this:
                why does this problem only shows up intermittently? if JBOss does not
                support the sequence a-d it should fail EVERYTIME, but that's not the
                case.
                We don't see ANY such problem with Weblogic.

                thanks for any replies!


                • 5. Re: Application error: TxInterceptorBMT
                  Darran Lofthouse Master

                   

                  "darranl" wrote:
                  Don't you think that you are being rather rude Sorry, Adrian your explanation too cryptic and not too useful., digging up a post that is over a year old and saying that it is not useful.

                  There was another post that say this is
                  a well known error with Jboss,
                  - Where, you forgot to add the link.