This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

AbstractMethodError while accessing EJBHome method from a Session Bean  RSS feed

 
Sharath Chandra B
Greenhorn
Posts: 1
Java
  • 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;
EntityLocalHome.java

EntityBean.java

SessionBean.java: 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!