This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Stack Overflow while creating EJB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Stack Overflow while creating EJB" Watch "Stack Overflow while creating EJB" New topic
Author

Stack Overflow while creating EJB

Manohar Karamballi
Ranch Hand

Joined: Jul 17, 2001
Posts: 227
Hai All!
I am facing a weird problem. I have bean managed persistence entity bean. From client i invoked create method on home interface obtained through lookup.
In ejbCreate method i queried DB to Insert row into DB. after inserting i am returning primary key class like return new PKClass(Id); what is happening is row getting inserted in DB and Debug statement just before this return statement in ejbCreate is getting printed to server console but ejbPost methoid is not getting invoked. Further I am getting error java.rmi.ServerError: A RemoteException occurred in the server method; nested exception is: java.lang.StackOverflowError java.lang.StackOverflowError <<no stack trace available>>
and I am not getting remote i/f to client side..
I am getting same problem if i tried to get remote by findByPrimaryKey method..
Pls drive me out of this problem..

Thanks in Advance
Manohar
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15951
    
  19

It's possible that you didn't set the EJB server up with a large enough stack, though not likely. I suspect, however, that you may be invoking one of the "ejbXXX" methods directly when it's supposed to be invoked automatically from the container and a recursive calling process is being set off.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Stack Overflow while creating EJB
 
Similar Threads
java.rmi.RemoteException: NullPointerException
who owns create() ?
Stateless session bean confusion
Cleared SCBCD last week.. some notes
Hello Bean deployment in JBOSS4.0