Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

AbstractMethodError while accessing EJBHome method from a Session Bean  RSS feed

Sharath Chandra B
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a Entity Bean and a Session Bean. In the Entity Bean I have defined a ejbHomeGetAllKeys method and in the EntityLocalHome I have declared the getAllKeys method. According to my understanding whenever I call the getAllKeys method of the Home, it should invoke the ejbHomeGetAllKeys defined in the Bean. I am getting a AbstractMethodError Instead.
Error: Caused by: java.lang.AbstractMethodError: EntityLocalHome.getAllKeys()Ljava/util/Collection; The Session Bean which calls Entity Bean Home method

It is not calling the ejbHomeGetAllKeys method of the bean, instead trying to call the getAllKeys defined in the interface EntityLocalHome, hence getting a AbtractMethodError.
I guess there is something which I am missing in this code, please help me fix this. Thanks in advance.
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!