Thanks a bunch Peter, this helps a lot. Looking forward to meeting you at cfobjective 2010. :D
On Mar 30, 1:42 pm, "Peter J. Farrell" <[email protected]> wrote: > Brian Pickens said the following on 30/03/10 12:51:> > ch2dii2ecfc617979371$funcONSESSIONSTART.runFunction(/home/ > > cms/public_html/MachII/mach-ii.cfc:81) > > Definitely this shows the problem. It's a threading issue caused by > your manual call to onApplicationStart(). > > I know it's 1.8.1 essentially the logic is the same, but look at the > code for > loadFramework():https://greatbiztoolsllc.trac.cvsdude.com/mach-ii/browser/framework/1... > > onApplicationStart() is thread safe when invoked as an application level > event -- when the application starts. We do have to clear the > application[appKey] struct when (re)loading the framework. This is > where your problem is occurring due to race condition because of the > StructNew() being called and the time it takes for the AppLoader to be > created and setup -- other requests are coming in. > > Honestly, I'm not quite sure how we could fix the issue in the > bootstrapper directly. You'd be much better off calling > application[getAppKey()].appLoader.reloadConfig() from you > Application.cfc instead of calling loadFramework() directly. This is how > the Mach-II Dashboard does it and it should fix your problems. > > Best, > .Peter -- You received this message because you are subscribed to Mach-II for CFML list. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/mach-ii-for-coldfusion?hl=en SVN: http://greatbiztoolsllc.svn.cvsdude.com/mach-ii/ Wiki / Documentation / Tickets: http://greatbiztoolsllc.trac.cvsdude.com/mach-ii/ To unsubscribe from this group, send email to mach-ii-for-coldfusion+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
