Invalid events.

With the latest updates from SVN I am starting to see these error messages.

Application Execution ExceptionError Type: HandlerService.EventHandlerNotRegisteredException : [N/A]

Error Messages: The event: admin…index is not valid registered event.

erver Instance:
cfusion9
Current Event:
admin…index
Current Layout:
N/A
Current View:
N/A
Current Route:
:handler/
Routed URL:
admin./
LogBox Appenders:
COLDBOXFILE
RootLogger Levels:
FATAL - DEBUG

It seems as if there is a directory with the same name as the handler it will throw this error.

Was it with the updates or before? The changes where to modules.

No I am guessing it is an existing problem, it just happens that I added this directory after doing the updates.

Can you document it again here for me please so I can ticket it and try it out please. Thanks for all your findings Andrew!! Really appreciate it!

Luis F. Majano
President
Ortus Solutions, Corp

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Sure,

The first step is to create a file let’s call it admin for now, then get an action working. Once you have got the action working from the url then created a dir in the same handlers dir, and you can leave the contents blank or throw a handler in there. I had one in there.

Then when you reinit the framework, you can try to run the first handler that you setup and it will throw the exception of a missing handler as reported earlier.

And you are welcome, when something doesn’t work I step through the framework to see if it is me or something more sinister.

From what I can tell the framework searches all files and folders in the handlers convention, but if a folder is named the same as a handler in the same directory it appears to spit the dummy at it.

Got it, this is because the SES looks for directories first, you can disable that if you like for the default route, I don’t know what should be done in this case, since the routing is saying that the admin folder exists, you can say packageResolverExempt = true, so it does not evaluate packages first on a per route basis.

Luis F. Majano
President
Ortus Solutions, Corp

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com