[coldbox:4.1] The event is not valid registered event error

451 views
Skip to first unread message

brett

unread,
Dec 13, 2016, 3:38:22 PM12/13/16
to ColdBox Platform
Hi everyone,

I have an error coming up that I'm trying to troubleshoot.  So I have a benefits enrollment page that lists 5 medical options a user can enroll into.  When the page loads I use some JS to loop over each option being presented and fire an ajax call to an event to calculate the cost for that medical option.  About half of the calls generate a coldbox error with the message that 'The event: g4enrollment:enroll.calculateMedicalPremium is not valid registered event.'.

It seems like I'm having some concurrency issue.  I'm in the process of developing this app and had a bunch of coldbox development settings enabled.  I made sure I set those to a production mode like so:

// coldbox directives
coldbox = {
//Application Setup
appName = "Product Suite",
eventName = "cbevent",

//Development Settings
debugMode = false,
debugPassword = "coldbox",
reinitPassword = "yea",
handlersIndexAutoReload = false,
configAutoReload = false,

//Implicit Events
defaultEvent = "general.login",
requestStartHandler = "",
requestEndHandler = "",
applicationStartHandler = "",
applicationEndHandler = "",
sessionStartHandler = "",
sessionEndHandler = "",
missingTemplateHandler = "",

//Error/Exception Handling
exceptionHandler = "",
onInvalidEvent = "",
customErrorTemplate = "/coldbox/system/includes/BugReport.cfm",

//Application Aspects
handlerCaching = true,
eventCaching = true,
//Testing pathing stuff
HandlersPath = "_coldbox.handlers" ,
//RequestContextDecorator
requestContextDecorator = "_coldbox.model.CustomRequestContextDecorator"
};

I also made sure that I don't have performance monitoring enabled in the CF Admin.  Thoughts on this?  Help!

Thanks.

Stack Trace

coldfusion.runtime.CustomException: The event: g4enrollment:enroll.calculateMedicalPremium is not valid registered event.
    at coldfusion.tagext.lang.ThrowTag.doStartTag(ThrowTag.java:142)
    at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2722)
    at cfHandlerService2ecfc717000056$funcINVALIDEVENT.runFunction(C:\ColdFusion9\wwwroot\coldbox_4_1_0\system\web\services\HandlerService.cfc:390)
    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 cfHandlerService2ecfc717000056$funcGETREGISTEREDHANDLER.runFunction(C:\ColdFusion9\wwwroot\coldbox_4_1_0\system\web\services\HandlerService.cfc:305)
    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.TemplateProxy.invoke(TemplateProxy.java:491)
    at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:337)
    at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2360)
    at cfController2ecfc15596061$func_RUNEVENT.runFunction(C:\ColdFusion9\wwwroot\coldbox_4_1_0\system\web\Controller.cfc:496)
    at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472)
    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:517)
    at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:2547)
    at cfController2ecfc15596061$funcRUNEVENT.runFunction(C:\ColdFusion9\wwwroot\coldbox_4_1_0\system\web\Controller.cfc:425)
    at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472)
    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:517)
    at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:496)
    at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:355)
    at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2301)
    at cfBootstrap2ecfc809004914$funcPROCESSCOLDBOXREQUEST.runFunction(C:\ColdFusion9\wwwroot\coldbox_4_1_0\system\Bootstrap.cfc:198)
    at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472)
    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 cfBootstrap2ecfc809004914$funcONREQUESTSTART.runFunction(C:\ColdFusion9\wwwroot\coldbox_4_1_0\system\Bootstrap.cfc:353)
    at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472)
    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.TemplateProxy.invoke(TemplateProxy.java:491)
    at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:337)
    at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2360)
    at cfApplication2ecfc128701477$funcONREQUESTSTART.runFunction(C:\ColdFusion9\wwwroot\gen4productsuite\branches\8-1B-FBCBHybrid\Application.cfc:148)
    at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472)
    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.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.onRequestStart(AppEventInvoker.java:258)
    at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:349)
    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.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.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:126)
    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.http.WebService.invokeRunnable(WebService.java:172)
    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)  


Don Q

unread,
Dec 13, 2016, 7:09:40 PM12/13/16
to ColdBox Platform
I've seen this error before when my routes.cfm had setAutoReload(true) when it should have been false.

brett

unread,
Dec 14, 2016, 8:54:37 AM12/14/16
to ColdBox Platform
HI Don Q,

Wish that was it, but I'm not using routes at all.

Thanks though.

brett

unread,
Dec 15, 2016, 10:01:18 AM12/15/16
to ColdBox Platform
Anyone have other ideas?

Thanks.

br...@bradwood.com

unread,
Dec 15, 2016, 10:15:26 AM12/15/16
to col...@googlegroups.com
Check the rest of your config like the development overrides to make sure your settings aren't getting overriden.  Something seems to be making the framework reload on every request.

Thanks!

~Brad

ColdBox/CommandBox Developer Advocate
Ortus Solutions, Corp

E-mail: br...@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com 
 
 
--------- Original Message ---------
Subject: [coldbox:26195] Re: [coldbox:4.1] The event is not valid registered event error
From: "brett" <bde...@gmail.com>
Date: 12/15/16 9:01 am
To: "ColdBox Platform" <col...@googlegroups.com>

Anyone have other ideas?
 
Thanks.


On Tuesday, December 13, 2016 at 3:38:22 PM UTC-5, brett wrote:
Hi everyone,
 
I have an error coming up that I'm trying to troubleshoot.  So I have a benefits enrollment page that lists 5 medical options a user can enroll into.  When the page loads I use some JS to loop over each option being presented and fire an ajax call to an event to calculate the cost for that medical option.  About half of the calls generate a coldbox error with the message that 'The event: g4enrollment:enroll.calculateMedicalPremium is not valid registered event.'.
 
It seems like I'm having some concurrency issue.  I'm in the process of developing this app and had a bunch of coldbox development settings enabled.  I made sure I set those to a production mode like so:
 
// coldbox directives
coldbox = {
//Application Setup
appName = "Product Suite",
eventName= "cbevent",
 
//Development Settings
debugMode= false,
debugPassword= "coldbox",
reinitPassword= "yea",
handlersIndexAutoReload = false,
configAutoReload= false,
 
//Implicit Events
defaultEvent= "general.login",
requestStartHandler= "",
requestEndHandler= "",
applicationStartHandler = "",
applicationEndHandler= "",
sessionStartHandler = "",
sessionEndHandler= "",
missingTemplateHandler= "",
 
//Error/Exception Handling
exceptionHandler= "",
onInvalidEvent= "",
customErrorTemplate= "/coldbox/system/includes/BugReport.cfm",
 
//Application Aspects
handlerCaching = true,
eventCaching= true,

 

--
--
You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
For News, visit http://blog.coldbox.org
For Documentation, visit http://wiki.coldbox.org
For Bug Reports, visit https://ortussolutions.atlassian.net/browse/COLDBOX
---
You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to coldbox+u...@googlegroups.com.
To post to this group, send email to col...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/coldbox/4d25ef61-8d83-43de-910d-6e90f213525f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages