GetMetaData(cfc) returns null| View in Tracker
Reporter/Name(from Bugbase): Chris P. / ()
Failure Type: Non Functioning
Found In Build/Fixed In Build: 2016.0.13.316217 /
Priority/Frequency: Normal / Some users will encounter
Locale/System: English / Win 2016
Vote Count: 7
# Problem Description: We are using GetMetaData(cfc) for "reflection" style programming. In particular, I have a package that loads components (accessors=true) with deeply nested data. This works by using GetMetaData(cfc).name to determine the correct code to run. See https://github.com/cfchris/cfc_loader Frequently, GetMetaData(cfc).name throws (java.lang.NullPointerException). When this happens, it will only stop after we use the "Clear Template Cache Now" button in the CF Admin. This error happens both with and without "Trusted Cache" enabled. # Steps to Reproduce: * Use GetMetaData(cfc) to get metadata about a CFC in your code. * Deploy updates to CFCs (any CFC not even related to the one you're getting metadata on) # Actual Result: * CF will "forget" the metadata for the CFC and throw NPE errors (until you "Clear Template Cache") # Expected Result: * CF returns the CFC metadata for the CFC. # Any Workarounds: * No real workaround. You're customers get a bunch of errors. Then, you get alerts. Then, you go "Clear Template Cache".