0 Replies Latest reply: Apr 15, 2009 10:07 AM by 843807 RSS

    javax.ejb.NoSuchObjectLocalException: Entity not found

      Hello everybody !

      I got some serious problem with EJB2.1 finders/selectors. I got a table in database with complex primary key (2 fields). I've implemented in my application (on jboss) a finder method which is searching for all records which maches the key consisting of one of the fields from primary key. So in app i recieve a collection of 2 or more local interfaces with primary keys. All matching entity's are found. Now, when i am invoking a method on first of the local interfaces (example: myEntityLocal.getMyEntityData()) i got this exception:

      javax.ejb.NoSuchObjectLocalException: Entity not found: primaryKey=my.path.to.the.package.PrimaryKeyClass@1310fd8
      at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:212)

      I don't get it ... all entitys were fetched correctly. The exception is beeing thrown when i try to invoke a method on this entity (local interface).

      Does anyone have a clue on what can be wrong ?
      I would be grateful for any help.