What is your mapping? I’m pretty sure ColdBox won’t run unless the mapping is to “coldbox” because the framework has many references to coldbox.system.xxx inside of it.
What do you get if you dump out getMetaData(youMailObject).name prior to passing it in?
Ok, I just figured out what is going on. I added the
EnvironmentSafeMailService interceptor to my application and a couple
of the functions are looking for the mail object to be
"coldbox.system.beans.Mail" where it is actually
"coldbox.system.core.mail.Mail". I guess the interceptor is outdated?
Time to switch type checking back on in the Administrator, so you can get
these errors in the future.