• Post Reply Bookmark Topic Watch Topic
  • New Topic

javax.ejb .NoSuchObjectLocalException  RSS feed

 
Art Van Delay
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There was no record in the DB for the supplied primary key.
 
Art Van Delay
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!