[ http://jira.jboss.com/jira/browse/JBAS-1269?page=comments#action_12314541 ] Scott M Stark commented on JBAS-1269: -------------------------------------
I assume that you mean the logging should NOT cause the operation to fail. > 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, JBossAS-3.2.6 Final > Environment: Linux, J2SE 1.4.2_06 > Reporter: Michael Lipp > Assignee: Adrian Brock > 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 [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-development
