I'm not sure if this documented anywhere but I couldn't seem to find
anything.
I'm trying to use the setNextEvent() method in the OnRequestStart()
method of my app if a session variable doesn't exist. When I try to
use setNextEvent() I either get this error: The method setNextEvent
was not found in component coldbox.system.beans.requestContext. Which
is true because that method is in the coldbox.system.controller class
I think. If I don't get that error the page just does nothing at all.
I'm starting to think this might be a reserved method in TomCat?
I can't access controller specific methods from the Framework inside
my handlers for some reason. I can dump out the controller class and
see all the methods in my views but once I try to access them inside a
handler it chokes. I've never run into this before, so I'm a bit
stumped.
I'll keep digging, unless someone knows off hand what might be causing
this. I'm running ColdBox 2.6.4, I'm going to test out 3.0 and see if
I get the same thing.
Have you tried your code under any setup other than CF9 w/ Tomcat? If
you give us the exact code you are using, I can try to replicate it
with my setup here.
I found the problem. Because by default SES URL's are turned on in the
config/routes.cfm file it was throwing things off.
I haven't set up TomCat to handle SES yet so I'm guessing it didn't
know how to redirect the request. Still kind of odd that ColdBox would
throw the error that it did.
That is curious. I never use SES urls but I haven't explicitly turned
them off before and have not had a problem with setNextEvent. If I get
a chance later I'll still try and take a look at it to see if I see
the same problem.