switched to cb 7.x today, swapped out some of the ...
# box-products
m
switched to cb 7.x today, swapped out some of the deprecated stuff…seemed easy enough and app launched correctly. As I am testing something, I am adding some debug dumps to a CFC so after I make the code change I issue a commandbox “fwreinit” so memory is cleaned up and my new debug code should always be present and I get a server error 500 claiming that a module cannot be loaded…yet at startup no such error came up….
The error reads
Message Error loading module routes as the module requested 'cbdebugger' is not loaded.
Detail The loaded modules are:
Stacktrace The Error Occurred in
/Users/mikecraig/repo/srwrxapi/coldbox/system/web/routing/Router.cfc: line 337
335: message = "Error loading module routes as the module requested '#arguments.module#' is not loaded.",
336: detail = "The loaded modules are: #structKeyList( mConfig )#",
337: type = "SES.InvalidModuleName"
338: );
339: }
called from /Users/mikecraig/repo/srwrxapi/coldbox/system/web/services/ModuleService.cfc: line 746
744: module = arguments.moduleName,
745: append = false
746: );
747:
748: // config/Router.cfc Conventions
called from /Users/mikecraig/repo/srwrxapi/coldbox/system/web/services/ModuleService.cfc: line 546
544: // Can we load module and has it been registered?
545: if ( structKeyExists( variables.registeredModules, moduleName ) && canLoad( moduleName ) ) {
546: activateModule( moduleName );
547: }
548: }
called from /Users/mikecraig/repo/srwrxapi/coldbox/system/web/services/LoaderService.cfc: line 88
86:
87: // Activate All Modules
88: services.moduleService.activateAllModules();
89: // Execute afterConfigurationLoad
90: services.interceptorService.announce( "afterConfigurationLoad" );
called from /Users/mikecraig/repo/srwrxapi/coldbox/system/Bootstrap.cfc: line 110
108: variables.COLDBOX_CONFIG_FILE,
109: variables.COLDBOX_APP_MAPPING,
110: variables.COLDBOX_WEB_MAPPING
111: );
112: // Get the reinit key
called from /Users/mikecraig/repo/srwrxapi/coldbox/system/Bootstrap.cfc: line 167
165: }
166: // Reload ColdBox
167: loadColdBox();
168: // Remove any context stragglers and reloading bit
169: structDelete( request, "cb_requestContext" );
called from /Users/mikecraig/repo/srwrxapi/coldbox/system/Bootstrap.cfc: line 502
500:
501: // Verify Reloading
502: reloadChecks();
503:
504: // Process A ColdBox Request Only
called from /Users/mikecraig/repo/srwrxapi/Application.cfc: line 47
45: public boolean function onRequestStart( string targetPage ) {
46: // Process ColdBox Request
47: application.cbBootstrap.onRequestStart( arguments.targetPage );
48:
49: return true;
So I figured ok, something wonky with cbDebugger, lets take out that dependency and restart everything…everything restarts fine but when I “fwreinit”, a different (in this case route-visualizer) module fails with the same error.
Is there something else because of ColdBox 7 that I have to change to ensure these modules are found / loaded?
l
hmm not
I have not seen that before
paste your config
l
turn off singletonReload
m
so that did the trick…the specific setting being in my development() configuration function
l
ahh yes, that setting is volatile
I will create a ticket to make that smoother
but I doubt it
I'll have to think about that one
m
thank you both