Brandon, thanks for discussing this issue with Matt. A ticket was filed and thanks for the sample application that demonstrated this strange behavior:
http://greatbiztoolsllc.trac.cvsdude.com/mach-ii/ticket/373 Looks like CVSDude is doing some scheduled maintenance right now, but the fix is to defined a MACHII_APP_KEY in your Application.cfc. The problem is the auto app key computation uses the directory and calling an AJAX template in another folder causes the app key to change. Setting the MACHII_APP_KEY in your Application.cfc will fix this problem. We will be discussing ways to fix this in 1.8, but it appears this problem existed all the way back to 1.5.0. Best, .Peter [email protected] said the following on 08/31/2009 05:45 PM: > Thanks for the response Peter. After further research it seems this is > a session timeout issue. I was finally able to recreate the error > every time after setting my session timeout to 1 minute and then > sitting on the page for a minute and trying to make an ajax call. The > error generated is: > > Element ajax is undefined in a Java object of type class > coldfusion.runtime.ApplicationScope. <br>The error occurred on line > 179.<br> > > ajax being the directory my ajax listener is in. At first I though it > had to do with me referencing Session variables and Session no longer > existing. After some testing though It has nothing to do with > referencing variables at all. I get this error simply calling a method > in my ajax listener that does nothing at all. I'm going to have to > keep testing. I will let you know what I come up with. > > Answers to your questions: > > * Mach-II 1.6 > * mach-ii.cfc > * we are not using cfthread > * these errors occur throughout the day when people hit our site. It's > actually random. Sometimes it happens on an ajax call in which case > the directory name referenced in the error is a directory I have named > ajax. Sometimes it is when the user is trying to print a form in which > case the directory is Onlineforms etc. > > * These are in the log files and I don't have any stacktrace on them. > > Thanks for the help. > > -Brandon > > On Aug 31, 2:31 pm, "Peter J. Farrell" <[email protected]> wrote: > >> I haven't seen these types of exceptions before in a production >> application. I have seen strange things like this when people have >> upgraded their framework version and did not restart the CFML engine or >> did not clear the template cache (as noted in the README bundled with >> the framework). >> >> If you answer these questions, we might be able to figure out what is >> going on: >> >> * What version of Mach-II are you running? (We are currently supporting >> three versions of the framework at the moment) >> >> * Are you using mach-ii.cfc or mach-ii.cfm bootstrapper? >> >> * What does your onApplicationStart() method look like? Remember >> getProperty() is not available until the onApplicationStart() method has >> finished. >> >> * Are you running any threads (cfthread)? >> >> * Where are you getting these or what are you doing in your application >> when get these exceptions? >> >> * Are you using these directly on screen or in logs? >> >> * Can you provide a stack trace for these kind of exceptions? >> >> .pjf >> >> [email protected] said the following on 08/31/2009 12:51 PM: >> >> >>> I was wondering if anyone has come across this error before? >>> >>> Element [directory name] is undefined in a Java object of type class >>> coldfusion.runtime.ApplicationScope. <br>The error occurred on line >>> 179.<br> >>> >>> Where [directory name] can be any directory in the root of my site. I >>> get this error on average about 10 times a day. The site is never >>> restarted so I'm not sure what could be causing this. >>> >>> Line 179 of the mach-ii.cfc is part of the getAppManager method. >>> >>> <cfreturn application[getAppKey()].appLoader.getAppManager() /> to be >>> exact. >>> >>> Any help with this would be much appreciated. >>> >>> - Brandon Culpepper >>> >> > > > --~--~---------~--~----~------------~-------~--~----~ 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/ -~----------~----~----~----~------~----~------~--~---
