Message: A new issue has been created in JIRA.
--------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/xdoclet/secure/ViewIssue.jspa?key=XDT-248 Here is an overview of the issue: --------------------------------------------------------------------- Key: XDT-248 Summary: DAO initialisation not thread-safe Type: Bug Status: Assigned Priority: Major Time Spent: Unknown Estimate: 0 minutes Project: XDoclet Component: EJB Module Versions: 1.1.2 Assignee: xdoclet-devel (Use for new issues) Reporter: Andrew Stevens Created: Tue, 14 Jan 2003 6:57 AM Updated: Tue, 14 Jan 2003 6:57 AM Description: As was pointed out to me earlier today by a colleague (after he'd spent a couple of hours tracing through debug output), the getDao() method that's generated by the dao-methods.j template isn't thread safe. If two threads make the initial call to getDao() close enough together, the second thread can return the DAO that's created by the first thread before it finishes executing the init() method. If you're using the init method in the DAO implementation class to lookup & cache a Datasource (using JNDI), then the second thread could be trying to get a connection from the datasource before the first one's even got the InitialContext, leading to NullPointerExceptions... I haven't checked yet, but I believe the 1.2 code base also has the same problem. --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/xdoclet/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Xdoclet-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-devel
