Bugs item #575815, was opened at 2002-06-30 22:57 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=575815&group_id=22866
Category: JBossCMP Group: v3.0 Rabbit Hole Status: Open >Resolution: Accepted Priority: 5 Submitted By: Stephen Coy (scoy) >Assigned to: Dain Sundstrom (dsundstrom) Summary: CMR and commit option A Initial Comment: I think that Dain's fix to properly report java.lang.IllegalStateException when accessing CMR collections outside of their original transaction is broken when "Commit Option A" is in effect. I have a "User" entity bean that has a many-to-many relationship with a "Role" entity bean. The "User" bean has a method which iterates over the roles looking for a particular attribute (which we should probably re-implement as an "ejbSelect" method). When the bean is configured with "Commit Option A", the first access of this method works fine, subsequent accesses throw a java.lang.IllegalStateException containing the text "A CMR collection may only be used within the transction in which it was created". Reverting the configuration to the default "Commit Option B" works OK. The code was built from "Branch_3_0" as of about four hours ago, although the problem manifested itself toward the end of last week. I'm using the current Apple 1.3.1 JVM for what it's worth. ---------------------------------------------------------------------- >Comment By: Dain Sundstrom (dsundstrom) Date: 2002-07-01 09:51 Message: Logged In: YES user_id=251431 Are you trying to access a CMR collection from another transaction or without a transaction? If you are, you should be getting this exception. ---------------------------------------------------------------------- Comment By: Michael Newcomb (mnewcomb) Date: 2002-07-01 08:31 Message: Logged In: YES user_id=382427 This is occurring on HEAD as well. I have not tested the multiple invocation scenario, but this exception is thrown even when I redeploy my application with commit option A on. I have to restart JBoss to clear the exception. I will be running some more tests to see if I can more thoroughly define the problem I'm seeing. Michael ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=575815&group_id=22866 ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
