• 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

java.lang.IllegalStateException,urgent!

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear all,
I'm developing BMP with weblogic6.0, there is a sentence as :
home.create(para);
in my client.java file, home-- home interface variable.
when this sentence is excecuted, the following error displayed:
java.rmi.RemoteException: EJB Exception:; nested exception is:
java.lang.IllegalStateException: Illegal call to EJBContext method. The EJB specification
(See Section 9.6.5, for example.) places restrictions on the methods that may be invoked during ce
rtain phases of a bean's lifecycle. One of these restrictions has been violated.
Could you give me some suggestions?
Thanks!
GAry
 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Check the section of the specification mentioned in the error message. There is a table that lists what EJB methods can be called and when. Your ejbCreate is probably doing something that it shouldn't. I'm guessing that you may need to move whatever you're doing that isn't allowed to the ejbPostCreate, though you should check if it's allowed there too. The spec does a decent job, I think, of explaining why you can't do certain things. I'd paraphrase it for you, but I'd probably say it wrong. Look at the EJB lifecycle too, if you want more info. Hope this helps!
 
Gary66
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear Mr. Michelle Baxter,
Thanks for your explanation, I have resoved this problem.
Best regards,
Gary
 
Ranch Hand
Posts: 919
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Gary66,
Unfortunately your registered username does not comply with our naming policy here at JavaRanch. Please would you register a username that complies with this policy.
Thankyou.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic