[ http://jira.jboss.com/jira/browse/JBAS-1269?page=comments#action_12314535 ] Scott M Stark commented on JBAS-1269: -------------------------------------
An empty list means that there are no uses of the ejb object toString. The current context where the problem exists has no knowledge of ejbs. This problem is not like the previous equals/hashCode issue as the context in question is a debugging interface for use in determining connection leaks. If you want a meaningful view of the context interacting with the jca layer, your 'rawKey' (whatever that is) can implement a meaningful toString. > toString called on EJB > ---------------------- > > Key: JBAS-1269 > URL: http://jira.jboss.com/jira/browse/JBAS-1269 > Project: JBoss Application Server > Type: Bug > Components: EJBs > Versions: JBossAS-4.0.1 Final > Environment: Linux, J2SE 1.4.2_06 > Reporter: Michael Lipp > Assignee: Scott M Stark > Priority: Critical > > > org.jboss.resource.connectionmanager.CachedConnectionManager calls toString() > on EJBs (e.g. line 250, where "rawKey" is an EJB. > The "toString()" method of an EJB may, however, be overwritten, as is > appropriate for the type of EJB. Such a toString() method may use > getPrimaryKey() as it will usually be called from the business methods, i.e. > from a context where this call is legal. > CachedConnectionManager calls toString() during create, i.e. in a context > where the call to getPrimaryKey is illegal, which results in an > IllegalStateException. In order to avoid this kind of problem, the > application server should never call toString() on EJBs. -- 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 ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ JBoss-Development mailing list JBoss-Development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-development