Tag Context: |
---|
ID: | CFTHROW |
LINE: | 191 |
Template: | C:\Inetpub\common\ColdBox\v3.0.0 RC1 (vendor)\system\cache\CacheFactory.cfc |
ID: | CF_TEMPLATEPROXY |
LINE: | 127 |
Template: | C:\Inetpub\common\ColdBox\v3.0.0 RC1 (vendor)\system\web\Controller.cfc |
ID: | CF_TEMPLATEPROXY |
LINE: | 60 |
Template: | C:\Inetpub\common\ColdBox\v3.0.0 RC1 (vendor)\system\web\services\BaseService.cfc |
ID: | CF_UDFMETHOD |
LINE: | 356 |
Template: | C:\Inetpub\common\ColdBox\v3.0.0 RC1 (vendor)\system\web\services\PluginService.cfc |
ID: | CF_UDFMETHOD |
LINE: | 127 |
Template: | C:\Inetpub\common\ColdBox\v3.0.0 RC1 (vendor)\system\web\services\PluginService.cfc |
ID: | CF_TEMPLATEPROXY |
LINE: | 350 |
Template: | C:\Inetpub\common\ColdBox\v3.0.0 RC1 (vendor)\system\web\Controller.cfc |
ID: | CF_TEMPLATEPROXY |
LINE: | 6 |
Template: | C:\Inetpub\Enrolnow\www\model\enrolment\enrolment.cfc |
ID: | CF_UDFMETHOD |
LINE: | 30 |
Template: | C:\Inetpub\Enrolnow\www\model\enrolment\enrolment.cfc |
ID: | CF_TEMPLATEPROXY |
LINE: | 55 |
Template: | C:\Inetpub\Enrolnow\www\handlers\Personal.cfc |
ID: | CFINVOKE |
LINE: | 662 |
Template: | C:\Inetpub\common\ColdBox\v3.0.0 RC1 (vendor)\system\web\Controller.cfc |
ID: | CF_UDFMETHOD |
LINE: | 553 |
Template: | C:\Inetpub\common\ColdBox\v3.0.0 RC1 (vendor)\system\web\Controller.cfc |
ID: | CF_TEMPLATEPROXY |
LINE: | 226 |
Template: | C:\Inetpub\common\ColdBox\v3.0.0 RC1 (vendor)\system\Coldbox.cfc |
ID: | CF_TEMPLATEPROXY |
LINE: | 69 |
Template: | C:\Inetpub\Enrolnow\www\Application.cfc |
Basically following a provider pattern to retrieve the scoped reference for you so scope widening is avoided.
I have had many issues with this before and that is why in wirebox I have implemented the provider pattern so you can inject providers to objects. This way the provider does the retrieval across scopes for you.
Since you need a fix now I would suggest that you wire these objects with a proxy to the coldbox factory. Whenever you need cachebox you call your provider to call the factory for it. This way the right reference will be retrieved.
Thoughts?
Sent from my iPhone
> --
> You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
> To post to this group, send email to col...@googlegroups.com
> To unsubscribe from this group, send email to coldbox-u...@googlegroups.com
> For more options, visit this group at http://groups-beta.google.com/group/coldbox
> For News, visit http://blog.coldbox.org
> For Documentation, visit http://wiki.coldbox.org
Either way, this proxy provider couldn't hold any direct references to the
framework's bits or it would suffer from the exact same problem. Somewhere
in the line, the reference chain has to be broken by an object who "knows"
the address in the application scope to go ask for things right?
Thanks!
~Brad
-------- Original Message --------
Subject: [coldbox:7593] Re: CacheFactory.CacheNotFoundException error
on fwreinit
Well why not. Can we spec this for the next release. Maybe a base model class?