Initialization Issues - not defined in App scope

38 views
Skip to first unread message

William Bowen

unread,
Apr 30, 2012, 3:15:37 PM4/30/12
to ColdBox Platform
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.

Luis Majano

unread,
May 1, 2012, 1:43:54 PM5/1/12
to col...@googlegroups.com
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
www.ortussolutions.com

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
> --
> You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
> To post to this group, send email to col...@googlegroups.com
> To unsubscribe from this group, send email to coldbox-u...@googlegroups.com
> For more options, visit this group at http://groups-beta.google.com/group/coldbox
> For News, visit http://blog.coldbox.org
> For Documentation, visit http://wiki.coldbox.org

William Bowen

unread,
May 3, 2012, 2:03:49 PM5/3/12
to ColdBox Platform
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)

On May 1, 1:43 pm, Luis Majano <lmaj...@gmail.com> wrote:
> 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, Corpwww.ortussolutions.com
>
> 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
>

Andrew Scott

unread,
May 3, 2012, 2:14:12 PM5/3/12
to col...@googlegroups.com
Have you got save class files switched on?


-- 
Regards,
Andrew Scott
WebSite: http://www.andyscott.id.au/

William Bowen

unread,
May 3, 2012, 3:41:34 PM5/3/12
to ColdBox Platform
The sys admins tell me it's switched off.

On May 3, 2:14 pm, Andrew Scott <andr...@andyscott.id.au> wrote:
> Have you got save class files switched on?
>
> --
> Regards,
> Andrew Scott
> WebSite:http://www.andyscott.id.au/
> Google+:http://plus.google.com/108193156965451149543
>
Reply all
Reply to author
Forward
0 new messages