5 Replies Latest reply on Oct 22, 2002 7:21 PM by Adrian Brock

    CMP cache problem

    Hao Wu Newbie

      I have a CMP bean and I have a test client. It works fine by itself.

      1. Use client to call findAll. It gets all 5 rows back.
      2. Use MySQL console to remove all 5 rows from the table.
      3. Use client to call findAll. It gets nothing.
      4. Use client to re-create the data. On the first create(), it returns an exception saying -

      java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
      java.rmi.ServerException: INSERTING AN ALREADY EXISTING BEAN, ID = 1; nested exception is:
      java.lang.IllegalStateException: INSERTING AN ALREADY EXISTING BEAN, ID = 1


      Is this a bug?

      --Hao