Initialization Issues - not defined in App scope

I have one particular ColdBox app that is giving me fits. Often times
the first time a user accesses the application, it's producing this
error in ColdBox.cfc:

Element eREMEDI is undefined in a Java object of type class
coldfusion.runtime.ApplicationScope. <br>The error occurred on line
443.

"eREMEDI" is what I've set in my Application.cfc as the app key, this
application shares the environment with other ColdBox applications.
Here is the relevant code from my Application.cfc (the rest is
unchanged):

<cfset this.name = "DeveloperSite" /> <!--- Have to name this the same
as /application.cfm so we can share the Session --->
<cfset this.sessionManagement = TRUE />
<cfset this.sessionTimeout = createTimeSpan(0,0,30,0) />
<cfset this.setClientCookies = TRUE />

<!--- COLDBOX STATIC PROPERTY, DO NOT CHANGE UNLESS THIS IS NOT THE
ROOT OF YOUR COLDBOX APP --->
<cfset COLDBOX_APP_ROOT_PATH =
getDirectoryFromPath(getCurrentTemplatePath()) />
<!--- The web server mapping to this application. Used for remote
purposes or static purposes --->
<cfset COLDBOX_APP_MAPPING = "" />
<!--- COLDBOX PROPERTIES --->
<cfset COLDBOX_CONFIG_FILE = "" />
<!--- COLDBOX APPLICATION KEY OVERRIDE --->
<cfset COLDBOX_APP_KEY = "eREMEDI" />

Note that the ColdBox app sits on a shared environment where all
applications must share the same Session (single sign-on and other
concerns). The root application.cfm name is set to "DevelopersSite"
hence the comment above. This has not produced any issues with other
applications.

Our environment is a set of three clustered CF 8 servers + JRun
running on Windows Server 2003 with ColdBox 3.5.0 Final.

Re-initializing the application after the initial error solves the
problem, but any time the app servers are restarted or the application
scope times out the error pops back up.

It seems to me as though the framework should detect that the
application isn't there any more and take steps to initialize - but
some reason isn't. Any guidance Luis or anyone else can provide is
much appreciated. Thanks.

Oh, so you change the app key for the coldbox controller then. Where is this error happening on, what template?

Luis Majano
CEO
Ortus Solutions, Corp

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Social: twitter.com/ortussolutions | twitter.com/coldbox | twitter.com/lmajano

Hey Luis,

Thanks so much for the response. Yeah, I changed the app key since
there are multiple instances of ColdBox running on the same server.
Here's a stacktrace, suppose I should've included this in the first
place:

Stack Trace (click to expand)
at cfColdbox2ecfc281933644$funcONSESSIONSTART.runFunction(\\nasDev
\FaaDev\Hosted Sites\HTTP\wwwtest.faa.gov\CHH\employees\coldbox\system
\Coldbox.cfc:443)

coldfusion.runtime.UndefinedElementException: Element eREMEDI is
undefined in a Java object of type class
coldfusion.runtime.ApplicationScope.
    at coldfusion.runtime.CfJspPage.ArrayGetAt(CfJspPage.java:919)
    at coldfusion.runtime.CfJspPage._arrayGetAt(CfJspPage.java:930)
    at coldfusion.runtime.CfJspPage._arrayGetAt(CfJspPage.java:925)
    at coldfusion.runtime.CfJspPage._arrayGetAt(CfJspPage.java:703)
    at coldfusion.runtime.CfJspPage._arrayGetAt(CfJspPage.java:689)
    at cfColdbox2ecfc281933644$funcONSESSIONSTART.runFunction(\\nasDev
\FaaDev\Hosted Sites\HTTP\wwwtest.faa.gov\CHH\employees\coldbox\system
\Coldbox.cfc:443)
    at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:418)
    at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47)
    at coldfusion.runtime.UDFMethod
$ReturnTypeFilter.invoke(UDFMethod.java:360)
    at coldfusion.runtime.UDFMethod
$ArgumentCollectionFilter.invoke(UDFMethod.java:324)
    at
coldfusion.filter.FunctionAccessFilter.__AW_invoke(FunctionAccessFilter.java:
59)
    at
coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java)
    at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:277)
    at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:192)
    at coldfusion.runtime.TemplateProxy.__AW_invoke(TemplateProxy.java:
448)
    at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java)
    at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:308)
    at coldfusion.runtime.AppEventInvoker.invoke(AppEventInvoker.java:
74)
    at
coldfusion.runtime.AppEventInvoker.onSessionStart(AppEventInvoker.java:
309)
    at
coldfusion.filter.ApplicationFilter.__AW_invoke(ApplicationFilter.java:
241)
    at
coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java)
    at
coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:
48)
    at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:
40)
    at coldfusion.filter.PathFilter.__AW_invoke(PathFilter.java:86)
    at coldfusion.filter.PathFilter.invoke(PathFilter.java)
    at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:
70)
    at
coldfusion.filter.BrowserDebugFilter.__AW_invoke(BrowserDebugFilter.java:
74)
    at
coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java)
    at
coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:
28)
    at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
    at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46)
    at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
    at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:
22)
    at coldfusion.CfmServlet.__AW_service(CfmServlet.java:198)
    at coldfusion.CfmServlet.service(CfmServlet.java)
    at
coldfusion.bootstrap.BootstrapServlet.__AW_service(BootstrapServlet.java:
89)
    at
coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java)
    at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
    at
coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:
42)
    at
coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
    at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
    at jrun.servlet.FilterChain.__AW_service(FilterChain.java:101)
    at jrun.servlet.FilterChain.service(FilterChain.java)
    at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
    at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:
42)
    at
jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:
286)
    at
jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:
543)
    at
jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:
203)
    at jrunx.scheduler.ThreadPool
$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
    at jrunx.scheduler.WorkerThread.__AW_run(WorkerThread.java:66)
    at jrunx.scheduler.WorkerThread.run(WorkerThread.java)

Have you got save class files switched on?

The sys admins tell me it's switched off.