Mach-II coldfusion loadup error

69 views
Skip to first unread message

Cheenu J

unread,
Apr 5, 2014, 9:26:18 AM4/5/14
to mach-ii-for...@googlegroups.com

When I re-start the application which was running fine with Apache - Coldfusion , I get the following error -

This indicates a premature call to one of the listed methods in your Application.cfc before the framework has completely loaded. Please check your code. Calls to getAppManager(), getProperty(), setProperty() and isPropertyDefined() in your Application.cfc cannot be made until after loadFramework has completed processing. coldfusion.runtime.CustomException: Calls to getAppManager(), getProperty(), setProperty() and isPropertyDefined() in your Application.cfc cannot be made until after loadFramework has completed processing. at coldfusion.tagext.lang.ThrowTag.doStartTag(ThrowTag.java:142) at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2722) at cfmach2dii2ecfc2021393021$funcGETAPPMANAGER.runFunction(C:\Application\Code\MachII\mach-ii.cfc:242) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472) at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47) at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:405) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:368) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:220) at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:2582) at cfmach2dii2ecfc2021393021$funcGETPROPERTY.runFunction(C:\Application\Code\MachII\mach-ii.cfc:226) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472) at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47) at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:405) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:368) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:220) at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:2582) at cfApplication2ecfc1389319475$funcONSESSIONSTART.runFunction(C:\Application\Code\temp\Application.cfc:162) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472) at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:368) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:220) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:491) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:337) at coldfusion.runtime.AppEventInvoker.invoke(AppEventInvoker.java:88) at coldfusion.runtime.AppEventInvoker.onSessionStart(AppEventInvoker.java:369) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:301) at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) at coldfusion.filter.PathFilter.invoke(PathFilter.java:94) at coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:27) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70) at coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:79) 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.filter.CachingFilter.invoke(CachingFilter.java:62) at coldfusion.CfmServlet.service(CfmServlet.java:200) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) 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.service(FilterChain.java:101) 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$DownstreamMetrics.invokeRunnable(ThreadPool.java:320) at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428) at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266) at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

In Apache I do have the following alias / directory definitions as well -

<Directory "C:/Application/Code/MachII">
Options Indexes FollowSymLinks MultiViews ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>

<Directory "C:/Application/Code/MachIIDashboard">
Options Indexes FollowSymLinks MultiViews ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>

<Directory "C:/Application/Code/coldspring">
Options Indexes FollowSymLinks MultiViews ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>

Alias /MachII          "C:/Application/Code/MachII"
Alias /MachIIDashboard "C:/Application/Code/MachIIDashboard"
Alias /coldspring      "C:/Application/Code/coldspring"

Enable Per App Settings - is unchecked. Verified settings similar to https://github.com/Mach-II/Mach-II-Framework/wiki/Application-Specific-Mapping-Workaround

Any ideas, on what's going on ? What is the meaning of the error ? It just dumps the entire stack trace due to cfdump, but not any clue on how to resolve it.

Peter J. Farrell

unread,
Apr 5, 2014, 12:34:18 PM4/5/14
to mach-ii-for...@googlegroups.com
The error is telling you where to look for the issue in your
Application.cfc. Looks like you are prematurely calling
getAppManager(), getProperty(), setProperty() and isPropertyDefined() in
your Application.cfc before the framework itself has a chance to load.
Can you share your Application.cfc

--
Peter J. Farrell
OpenBD Steering Committee / Mach-II Lead Developer
http://blog.maestropublishing.com
Identi.ca / Twitter: @maestrofjp

Please do not send me Microsoft Office/Apple iWork documents. Send OpenDocument instead! http://fsf.org/campaigns/opendocument/

Message has been deleted

Cheenu J

unread,
Apr 7, 2014, 11:39:00 AM4/7/14
to mach-ii-for...@googlegroups.com

There is NO call for - getAppManager(),setProperty() and isPropertyDefined() in Application.cfc.

But there are numerous calls to getProperty() - particularly the step where it is failing -

    <cffunction name="onSessionStart" output="false">
        <cfscript>
            getProperty("facade").
startSession();
            super.onSessionStart();
        </cfscript>
    </cffunction>

And, the Mach-II framework is loaded on

 <cffunction name="onApplicationStart" output="false" return="boolean">
        <cftry>
            <cfscript>

                // call the MachII Application Start
                super.onApplicationStart();
...

Declaration on application.cfc file -

<cfcomponent displayname="Application" extends="MachII.mach-ii"

The most important question is - I did not get this exception until two days earlier, after which it wouldn't go off.

Peter J. Farrell

unread,
Apr 7, 2014, 2:36:38 PM4/7/14
to mach-ii-for...@googlegroups.com
Cheenu J said the following on 04/07/2014 10:36 AM:
> There is call for - getAppManager(),setProperty() and
> isPropertyDefined() in Application.cfc.
>
> But there are numerous calls to getProperty() - particularly the step
> where it is failing -
>
> <cffunction name="onSessionStart" output="false">
> <cfscript>
> getProperty("facade").startSession();
> super.onSessionStart();
> </cfscript>
> </cffunction>
Try wrapping a try/catch/dump inside your onSessionStart -- I bet you'll
see a different error message. My guess it that it's being swallowed up.
Reply all
Reply to author
Forward
0 new messages