Hey guys, I’m having trouble trying to inject any of the core coldbox plugins into one of my mapped services via wirebox - hope someone here can help set me onward.
Here is the relevant portion of my binder:
component extends=“coldbox.system.ioc.config.Binder” output=“false”
{
function configure(){
map(“RenderingTemplates”).toValue({
forms=“cb3HTMLHelper”, // “default,cfuniform”
grids=“default”,
lists=“default”,
menus=“default”
});
map(“RenderingOptions”).toValue({
enabled=true,
regenerate=true
});
map(“Factory1”).to(“org.xyz.model.factories.Factory1”);
map(“Service1”).to(“org.xyz.model.services.Service1”);
map(“Service2”).to(“org.xyz.model.services.Service2”);
map(“HTMLHelper”).toDSL(“coldbox:plugin:HTMLHelper”); //.chaining .asEagerInit() +| .asSingleton() didn’t help :{
map(“RenderingService”).to(“org.xyz.model.services.RenderingService”); //see above comment
map(“XYZ”).to(“org.xyz.XYZ”).inCacheBox().;
}
}
Here is the relevant meta for my RenderingService cfc
<!— doesn’t error out, but doesn’t help me out either —>
… public & private methods …
if you need any more details then this let me know…
Anyways, I get a similar error and stack trace as show below with any combination of what i’ve doing to inject with wirebox elsewhere, this problem seems to only happen for me when i try to inject a coldbox:plugin dsl ID.
btw, I’m currently working on the latest dev branch from git, but I think I first noticed the issue last week…
Can anyone confirm this error, or am I just doing something wrong here?
Error Occurred While Processing Request
Element CACHE.PLUGIN_CACHEKEY_PREFIX is undefined in INSTANCE.
The error occurred in D:\source\fws\coldbox-platform\system\web\services\PluginService.cfc: line 368
Called from D:\source\fws\coldbox-platform\system\web\services\PluginService.cfc: line 140
Called from D:\source\fws\coldbox-platform\system\web\Controller.cfc: line 325
Called from D:\source\fws\coldbox-platform\system\ioc\dsl\ColdBoxDSL.cfc: line 156
Called from D:\source\fws\coldbox-platform\system\ioc\dsl\ColdBoxDSL.cfc: line 42
Called from D:\source\fws\coldbox-platform\system\ioc\Builder.cfc: line 309
Called from D:\source\fws\coldbox-platform\system\ioc\Builder.cfc: line 281
Called from D:\source\fws\coldbox-platform\system\ioc\Injector.cfc: line 300
Called from D:\source\fws\coldbox-platform\system\ioc\scopes\NoScope.cfc: line 31
Called from D:\source\fws\coldbox-platform\system\ioc\Injector.cfc: line 259
Called from D:\source\fws\coldbox-platform\system\ioc\config\Binder.cfc: line 796
Called from D:\source\fws\coldbox-platform\system\ioc\Injector.cfc: line 156
Called from D:\source\fws\coldbox-platform\system\ioc\Injector.cfc: line 90
Called from D:\source\fws\coldbox-platform\system\web\services\LoaderService.cfc: line 159
Called from D:\source\fws\coldbox-platform\system\web\services\LoaderService.cfc: line 77
Called from D:\source\fws\coldbox-platform\system\Coldbox.cfc: line 71
Called from D:\source\fws\coldbox-platform\system\Coldbox.cfc: line 102
Called from D:\source\org\XYZ\Application.cfc: line 71
366 :
367 : <cfscript>
**368 : var pluginKey = instance.cache.PLUGIN_CACHEKEY_PREFIX & arguments.plugin;**
369 :
370 : // A module Plugin