• Post Reply Bookmark Topic Watch Topic
  • New Topic

Local Interface getEJBLocalHome()  RSS feed

 
Stefan Forner
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a problem with a LocalInterface.
My EJB 2.0 CMP-Bean has a finder Method to get a Collection of Objects.
When I execute the finderMethod in my Home Interface I get a Collection of LocalObjects.
I can get the PrimaryKey from them. but I can't call the getEJBLocalHome(). The method crashes with an Exception with the message "null".
So I think my LocalInterfaces don't have a LocalHome or is there another possibility?
How can I fix this error?
 
Dana Hanna
Ranch Hand
Posts: 227
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An exception with the message "null" is going to be a NullPointerException. This would lead me to believe that the LocalHome is null. What application server are you using? Are you making these calls from inside the container? If not, well then there is no LocalHome!
[ February 28, 2003: Message edited by: Dana Hanna ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!