• 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

CMR problem with OC4J 9.0.3 - Help!

 
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hiya
I'm trying to deploy a CMR M:M using OC4J 9.0.3 and a mySql database. I have a Sessin Facade UserManager bean that controlls access to a User bean, a UserInfo bean, and a Role bean. The User bean and a UserInfo bean are using CMR in a 1:1 relationship. This worked fine. Then I added a Role bean in a M:N relationship with the User bean. That works okay apart from one of the methods where I add a Role to the User. Trying this produces the following exception:
java.lang.IllegalStateException: getEJBObject not allowed or not successful
I have tried all sorts, and its day 3 now, so I'm beginning to get extremely tired of chasing down this error. Has anyone got M:N (or 1:N) relationships working with OC4J (I am not using JDeveloper).
 
Tony Walters
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Scrub that last mail. Finally figured it out. OC4J requires that certain methods be required to participate in a transaction. I added this and it worked fine.
Ta x
 
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You could've just deleted the post, FYI.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am facing the same problem while integrating WFMCOpen in OC4J.
java.lang.IllegalStateException: getEJBObject not allowed or not successful [2]

Can you tell me which were the methods you added ?
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You're asking someone who's not been around since 2006.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic