ColdBox shutdown code that uses CF mappings for modules fails on fwreinit

Description

If a module's onUnload tries to do anything that uses a CF mapping for that module such as asking WireBox for a CFC instance, it will error when you fwreinit. This is because the ColdBox bootstrap calls reloadChecks() BEFORE it adds module mappings. We need to load up module mappings prior to shutting down the framework so that all shutdown code can work correctly.

To reproduce this, install cbelasticsearch and fwreinit. I assume most people worked around this by just creating a manual CF mapping which masked the issue.

Gliffy Diagrams

Activity

Show:
Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Fix versions

Priority

Sentry

Created July 3, 2018 at 7:18 PM
Updated July 3, 2018 at 7:24 PM
Resolved July 3, 2018 at 7:24 PM