0 Replies Latest reply on Feb 27, 2003 6:49 AM by Bijoy Sivan K

    removing bean lock and it has tx set

    Bijoy Sivan K Newbie


      I have written an entity bean with 2 finder methods. findAll and findByPrimaryKey. I have deployed this and I am able to lookup and able to execute both the finder methods. I am getting the collection from findAll and I am getting the remote interface from the findByPrimaryKey method. When I print the collection its giving the list of primary key values based on the ejbql that I have written.
      The following code also executes fine.
      DeptNameRemote user = (DeptNameRemote)iterator.next();
      When I try to invoke any business methods the following error is coming.

      java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
      java.rmi.ServerException: RuntimeException; nested exception is:
      java.lang.IllegalStateException: removing bean lock and it has tx set!DeptName One

      Bijoy Sivan K