wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes javax.ejb .NoSuchObjectLocalException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "javax.ejb .NoSuchObjectLocalException" Watch "javax.ejb .NoSuchObjectLocalException" New topic
Author

javax.ejb .NoSuchObjectLocalException

Art Van Delay
Greenhorn

Joined: Sep 05, 2005
Posts: 6
Hello,

I'm just wondering what could be the cause of getting this error:



Basically I got an entity bean with a composite primary key that I'm trying to implement ejbFindByPrimaryKey() with two tables for the one bean using BMP.

Thank you very much in advance.
Roger Chung-Wee
Ranch Hand

Joined: Sep 29, 2002
Posts: 1683
There was no record in the DB for the supplied primary key.


SCJP 1.4, SCWCD 1.3, SCBCD 1.3
Art Van Delay
Greenhorn

Joined: Sep 05, 2005
Posts: 6
But... apparently I'm getting a rs.next() equalling true in the ejbFindByPrimaryKey() method. So it does find a row in the database.
Roger Chung-Wee
Ranch Hand

Joined: Sep 29, 2002
Posts: 1683
What is the value of your PK?

Have you verified by another means that you can retrieve the record using that PK?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: javax.ejb .NoSuchObjectLocalException