Hi Guys,
CB 3.5 Beta.
When I fwreinit my application I get an error and after some investigation I found it happens when trying to use the clientStorage plugin.
The application used to work when I was using the CB 3.5 dev branch.
Anyone have any idea what is going on?
The ‘new’ function in PluginService does not seem to be setting the wirebox variable.
// Locate Plugin, lazy loaded and cached
if( NOT structKeyExists(instance.refLocationMap, pluginLocationKey) ){
instance.refLocationMap[pluginLocationKey] = locatePluginPath(argumentCollection=arguments);
}
pluginLocation = instance.refLocationMap[pluginLocationKey];
// Check if plugin mapped?
if( NOT wirebox.getBinder().mappingExists( pluginLocation ) ){
attribs = {
pluginPath = pluginLocation,
custom = arguments.custom,
module = arguments.module,
isPlugin = true
};
// feed this plugin to wirebox with virtual inheritance just in case, use registerNewInstance so its thread safe
wirebox.registerNewInstance(name=pluginLocation,instancePath=pluginLocation)
.virtualInheritance(“coldbox.system.Plugin”).initWith(controller=controller).extraAttributes( attribs );
}
// retrieve, build and wire from wirebox
oPlugin = wirebox.getInstance( pluginLocation );
//Return plugin
return oPlugin;
The web site you are accessing has experienced an unexpected error.
Please contact the website administrator.
The following information is meant for the website developer for debugging purposes.
Error Occurred While Processing Request
Variable WIREBOX is undefined.
The error occurred in E:\www\development\coldbox\system\web\services\PluginService.cfc: line 128
Called from E:\www\development\coldbox\system\web\services\PluginService.cfc: line 160
Called from E:\www\development\coldbox\system\web\Controller.cfc: line 325
Called from E:\www\development\coldbox\system\ioc\dsl\ColdBoxDSL.cfc: line 188
Called from E:\www\development\coldbox\system\ioc\dsl\ColdBoxDSL.cfc: line 42
Called from E:\www\development\coldbox\system\ioc\Builder.cfc: line 320
Called from E:\www\development\coldbox\system\ioc\Injector.cfc: line 575
Called from E:\www\development\coldbox\system\ioc\Injector.cfc: line 462
Called from E:\www\development\coldbox\system\ioc\scopes\Singleton.cfc: line 48
Called from E:\www\development\coldbox\system\ioc\Injector.cfc: line 262
Called from E:\www\development\coldbox\system\ioc\Builder.cfc: line 437
Called from E:\www\development\coldbox\system\ioc\Builder.cfc: line 343
Called from E:\www\development\coldbox\system\ioc\Injector.cfc: line 575
Called from E:\www\development\coldbox\system\ioc\Injector.cfc: line 462
Called from E:\www\development\coldbox\system\ioc\scopes\NoScope.cfc: line 33
Called from E:\www\development\coldbox\system\ioc\Injector.cfc: line 262
Called from E:\www\development\coldbox\system\ioc\config\Binder.cfc: line 826
Called from E:\www\development\coldbox\system\ioc\Injector.cfc: line 159
Called from E:\www\development\coldbox\system\ioc\Injector.cfc: line 92
Called from E:\www\development\coldbox\system\web\services\LoaderService.cfc: line 144
Called from E:\www\development\coldbox\system\web\services\LoaderService.cfc: line 73
Called from E:\www\development\coldbox\system\Coldbox.cfc: line 71
Called from E:\www\development\AvisFuelCard\Application.cfc: line 60
126 : pluginLocation = instance.refLocationMap[pluginLocationKey];
127 :
**128 : writedump(var=wirebox);**
129 : abort;
130 :