This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: javax.ejb .NoSuchObjectLocalException
 
Similar Threads
HF Exception doubt
Thorwn Exception of local
System Exception Confusion
"NoSuchEntityException" vs "NoSuchObjectException" -- HFBook ,p.563
Calling remove() on bean