2 Replies Latest reply on Aug 11, 2005 4:40 AM by epbernard

    Misconfiguration?

    ryoung2504

      I'm running 4.0.3RC1 with EJB3Beta and MySQL. Occassionally I get the following in the server log.

      2005-08-10 22:23:24,953 ERROR [org.hibernate.event.def.AbstractFlushingEventListener] Could not synchronize database state with session
      org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect)


      Is this down to a misconfiguration?

        • 1. Re: Misconfiguration?
          ryoung2504

          I also get a couple of these near the start of the log


          2005-08-10 22:15:39,109 WARN [org.jboss.resource.connectionmanager.TxConnectionManager] Prepare called on a local tx. Use of local transactions on a jta transaction with more than one branch may result in inconsistent data in some cases of failure.


          • 2. Re: Misconfiguration?
            epbernard

            For the first issue, check "optimistic locking" in Hibernate documentation