[ ColdBox 4.0 Latest commit ] ColdBoxProxy Help

Hey Guys,
Need Help, I have this application which makes a remote call to upload images. In my local machine running CF11 works ok, when I upload to production Railo 4.2 the remote call breaks the app.
I set a new and simple remote call to return an “OK” string via Ajax to see if this error was related to my uploader script but, the same error happens, so this is not related to my uploader script.

This is the error

Coldbox Controller Not Found
The coldbox main contgroller has not been initialized

Do you know the steps to reproduce, or does it just happen “randomly” when the application has timed out?

Does your Application cfc’s onApplicationStart have the necessary checks t reload ColdBox.

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

Hi Brad,

It happen at any proxy call, and Im working to have the “necessary” checks in my application file… do you know any doc reference for this?

Thanks.

xerrano

Just look at any of our standard app templates: Here’s a non-inheritance example.

https://github.com/ColdBox/coldbox-platform/blob/master/ApplicationTemplates/AdvancedScript/Application.cfc

Here’s an inheritance example:

https://github.com/ColdBox/coldbox-samples/blob/master/applications/ColdBoxSES/Application.cfc

I love inheritance because it’s so clean (the superclass does everything). The big drawback is you can’t have an app mapping for /coldbox.

The only other thing you may need to do is set the config file path in your Application.cfc

COLDBOX_CONFIG_FILE=“config.coldbox”;

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

Thank you Brad, very helpful as always!

:slight_smile: