1 Reply Latest reply on Jan 14, 2003 3:28 PM by Joachim Van der Auwera

    CMR TransactionRolledbackLocalException

    Joachim Van der Auwera Expert

      I have a session bean façade for some entity bean which use CMP. The entity contains a one to many CMR. When I get the Collection or Set of objects and I want to iterate through them or convert them to an array I get the following error (extract from the log file) :

      2003-01-06 02:49:40,906 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.DMBatch_BreedingCountryEJB] Executing SQL: SELECT UNID_UOID,UNID_CREATION, "BreedingCountry" FROM BATCH_BREEDINGCOUNTRY WHERE (UNID_UOID=?) OR (UNID_UOID=?)

      2003-01-06 02:49:40,906 ERROR [org.jboss.ejb.plugins.LogInterceptor] TransactionRolledbackLocalException, causedBy:
      javax.ejb.NoSuchObjectLocalException: Entity not found: primaryKey=1wtPKS4P44SBHA

      However the record with given key does exist.

      Any clues what is going wrong?

      Thanks for the help.