• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Stack Overflow while creating EJB

 
Ranch Hand
Posts: 227
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Saloon Keeper
Posts: 27762
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
reply
    Bookmark Topic Watch Topic
  • New Topic