This week's book giveaway is in the HTML/CSS/JavaScript forum.
We're giving away four copies of Practical SVG and have Chris Coyier on-line!
See this thread for details.
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

AbstractMethodError while accessing EJBHome method from a Session Bean

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.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!