[ http://jira.jboss.com/jira/browse/JBAS-614?page=comments#action_12316106 ] obalbous commented on JBAS-614: -------------------------------
We are experiencing this very nasty issue as we upgraded from 3.2.3 to 3.2.6 The EntityContext.getEJBLocalObject() returns another instance in our BMP entities. I reproduced it using a simple test case and forcing passivation on the following (final) versions : 3.2.6, 3.2.7 and 4.0.1 I tryed to follow the various bugs jira/bugzilla but none could tell me how this bug (which is closed) was solved. Our solution was to change all impacted code to get the instances out of the Home using a findByPK instead of getEJBLocalObject > entityCtx.getEJBLocalObject() returns wrong instance > ---------------------------------------------------- > > Key: JBAS-614 > URL: http://jira.jboss.com/jira/browse/JBAS-614 > Project: JBoss Application Server > Type: Bug > Versions: JBossAS-3.2.6 Final > Reporter: SourceForge User > Assignee: Scott M Stark > > > SourceForge Submitter: sflexus . > 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. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ JBoss-Development mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-development
