Bugs item #769139, was opened at 2003-07-10 07:03 Message generated for change (Comment added) made by starksm You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=769139&group_id=22866
Category: JBossServer Group: v3.2 >Status: Closed >Resolution: Duplicate Priority: 5 Submitted By: Alexei Yudichev (sflexus) Assigned to: Nobody/Anonymous (nobody) Summary: entityCtx.getEJBLocalObject() returns wrong instance Initial Comment: I am using Jboss 3.2.1 Sometimes entityContext.getEJBLocalObject() returns local interface of another instance of the same entity bean. I have a superclass for all my entities in application which implements EntityBean's setEntityContext() method and saves entityContext in a field. Inside one of business methods of one of entity beans I check if a primary key constructed from key CMP field(s) matches a primary key obtained from entityContext. getEJBLocalObject().getPrimaryKey(). Sometimes they do not match: entityContext.getEJBLocalObject(). getPrimaryKey() returns primary key of another instance of the same entity bean. I have sometimes situations when user is logged in as one customer and enjoys privileges of another... This happens ~20 times a day with a particular single object for me... I could install some kind of bug trap logging some debug info to help fix the bug. ---------------------------------------------------------------------- >Comment By: Scott M Stark (starksm) Date: 2003-07-20 15:14 Message: Logged In: YES user_id=175228 Closed as a duplicate of 742197 ---------------------------------------------------------------------- Comment By: Stephen Coy (scoy) Date: 2003-07-17 08:24 Message: Logged In: YES user_id=463096 I' m moving my remarks over to 742197 because it was first and has more details, as Pete said. This should be marked as a duplicate. ---------------------------------------------------------------------- Comment By: Peter Ineson (pineson) Date: 2003-07-16 19:32 Message: Logged In: YES user_id=551148 This appears to be a duplicate of ID 742197 which has more details. ---------------------------------------------------------------------- Comment By: Stephen Coy (scoy) Date: 2003-07-14 04:34 Message: Logged In: YES user_id=463096 A couple of questions: 1) Is CMR implicated anywhere in your call path? 2) Are you using "read-only" methods? ---------------------------------------------------------------------- Comment By: Stephen Coy (scoy) Date: 2003-07-14 03:52 Message: Logged In: YES user_id=463096 I'm going to try and develop a test for this scenario as we are also seeing it in one of our projects. At the moment, we suspect it has something to do with the entity passivation/activation cycle. ---------------------------------------------------------------------- Comment By: Scott M Stark (starksm) Date: 2003-07-10 08:02 Message: Logged In: YES user_id=175228 The best starting point is an example of the bean in question in either source or psuedo code form as well as an outline of the busniess method in question so we can attempt a testcase. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=769139&group_id=22866 ------------------------------------------------------- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 _______________________________________________ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development