[coldbox 5.2.0, docker lucee/lucee5] "General application error: The setting orm does not exist."

We have been running coldbox APi on docker for a number of months without issue.

Nothing has been changed on the app in over a week, but within the last 24 hours the App now returns the below error and stack trace whenever we call anything. App is running fine on a local version running on Commnandbox, but returning this error when running in production in docker containers.

We’ve followed the stack trace as far into Colbox as we can, but just can’t work out why this error is occuring, and why it has come up with no changes to the App.

Any suggestions on what may have caused this? Anyone exprience something similar?

Thanks in advance for any tips !!

{“data”:{},“error”:true,“messages”:[“General application error: The setting orm does not exist.”,“Detail: FWSetting flag is false”,"StackTrace: lucee.runtime.exp.CustomTypeException: The setting orm does not exist.\n\tat lucee.runtime.tag.Throw._doStartTag(Throw.java:212)\n\tat lucee.runtime.tag.Throw.doStartTag(Throw.java:201)\n\tat throw_cfm$cf.udfCall(/throw.cfm:11)\n\tat lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:107)\n\tat lucee.runtime.type.UDFImpl._call(UDFImpl.java:357)\n\tat lucee.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:212)\n\tat lucee.runtime.functions.system.CFFunction.call(CFFunction.java:103)\n\tat coldbox.system.web.controller_cfc$cf.udfCall2(/coldbox/system/web/Controller.cfc:211)\n\tat coldbox.system.web.controller_cfc$cf.udfCall(/coldbox/system/web/Controller.cfc)\n\tat lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:107)\n\tat lucee.runtime.type.UDFImpl._call(UDFImpl.java:357)\n\tat lucee.runtime.type.UDFImpl.call(UDFImpl.java:226)\n\tat lucee.runtime.ComponentImpl._call(ComponentImpl.java:693)\n\tat lucee.runtime.ComponentImpl._call(ComponentImpl.java:573)\n\tat lucee.runtime.ComponentImpl.call(ComponentImpl.java:1997)\n\tat lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:756)\n\tat lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1718)\n\tat models.eventhandler_cfc$cf.udfCall2(/cborm/models/EventHandler.cfc:132)\n\tat models.eventhandler_cfc$cf.udfCall(/cborm/models/EventHandler.cfc)\n\tat lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:107)\n\tat lucee.runtime.type.UDFImpl._call(UDFImpl.java:357)\n\tat lucee.runtime.type.UDFImpl.call(UDFImpl.java:226)\n\tat lucee.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:803)\n\tat lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:756)\n\tat lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1718)\n\tat models.eventhandler_cfc$cf.udfCall1(/cborm/models/EventHandler.cfc:36)\n\tat models.eventhandler_cfc$cf.udfCall(/cborm/models/EventHandler.cfc)\n\tat lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:107)\n\tat lucee.runtime.type.UDFImpl._call(UDFImpl.java:357)\n\tat lucee.runtime.type.UDFImpl.call(UDFImpl.java:226)\n\tat lucee.runtime.ComponentImpl._call(ComponentImpl.java:693)\n\tat lucee.runtime.ComponentImpl._call(ComponentImpl.java:573)\n\tat lucee.runtime.ComponentImpl.call(ComponentImpl.java:1997)\n\tat org.lucee.extension.orm.hibernate.event.EventListener.invoke(EventListener.java:83)\n\tat org.lucee.extension.orm.hibernate.event.EventListener.invoke(EventListener.java:67)\n\tat org.lucee.extension.orm.hibernate.event.EventListener.invoke(EventListener.java:57)\n\tat org.lucee.extension.orm.hibernate.event.AllEventListener.onPostLoad(AllEventListener.java:63)\n\tat org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:234)\n\tat org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:898)\n\tat org.hibernate.loader.Loader.doQuery(Loader.java:773)\n\tat org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:270)\n\tat org.hibernate.loader.Loader.doList(Loader.java:2449)\n\tat org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2192)\n\tat org.hibernate.loader.Loader.list(Loader.java:2187)\n\tat org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:119)\n\tat org.hibernate.impl.SessionImpl.list(SessionImpl.java:1706)\n\tat org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:347)\n\tat org.hibernate.impl.CriteriaImpl.uniqueResult(CriteriaImpl.java:369)\n\tat org.lucee.extension.orm.hibernate.HibernateORMSession.load(HibernateORMSession.java:795)\n\tat org.lucee.extension.orm.hibernate.HibernateORMSession.load(HibernateORMSession.java:584)\n\tat lucee.runtime.functions.orm.EntityLoad.call(EntityLoad.java:67)\n\tat models.baseormservice_cfc$cf.udfCall1(/cborm/models/BaseORMService.cfc:303)\n\tat models.baseormservice_cfc$cf.udfCall(/cborm/models/BaseORMService.cfc)\n\tat lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:107)\n\tat lucee.runtime.type.UDFImpl._call(UDFImpl.java:357)\n\tat lucee.runtime.type.UDFImpl.call(UDFImpl.java:226)\n\tat lucee.runtime.ComponentImpl._call(ComponentImpl.java:693)\n\tat lucee.runtime.ComponentImpl._call(ComponentImpl.java:581)\n\tat lucee.runtime.SuperComponent.call(SuperComponent.java:82)\n\tat lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:756)\n\tat lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1718)\n\tat models.virtualentityservice_cfc$cf.udfCall1(/cborm/models/VirtualEntityService.cfc:105)\n\tat models.virtualentityservice_cfc$cf.udfCall(/cborm/models/VirtualEntityService.cfc)\n\tat lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:107)\n\tat lucee.runtime.type.UDFImpl._call(UDFImpl.java:357)\n\tat lucee.runtime.type.UDFImpl.call(UDFImpl.java:226)\n\tat lucee.runtime.ComponentImpl._call(ComponentImpl.java:693)\n\tat lucee.runtime.ComponentImpl._call(ComponentImpl.java:573)\n\tat lucee.runtime.ComponentImpl.call(ComponentImpl.java:1997)\n\tat lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:756)\n\tat lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1718)\n\tat handlers.auth_cfc$cf.udfCall(/handlers/Auth.cfc:49)\n\tat lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:107)\n\tat lucee.runtime.type.UDFImpl._call(UDFImpl.java:357)\n\tat lucee.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:212)\n\tat lucee.runtime.type.scope.ArgumentImpl.callWithNamedValues(ArgumentImpl.java:523)\n\tat lucee.runtime.util.VariableUtilImpl.callFunctionWithNamedValues(VariableUtilImpl.java:833)\n\tat lucee.runtime.PageContextImpl.getFunctionWithNamedValues(PageContextImpl.java:1737)\n\tat handlers.basehandler_cfc$cf.udfCall(/handlers/BaseHandler.cfc:81)\n\tat lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:107)\n\tat lucee.runtime.type.UDFImpl._call(UDFImpl.java:357)\n\tat lucee.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:212)\n\tat lucee.runtime.ComponentImpl._call(ComponentImpl.java:695)\n\tat lucee.runtime.ComponentImpl._call(ComponentImpl.java:573)\n\tat lucee.runtime.ComponentImpl.callWithNamedValues(ComponentImpl.java:2014)\n\tat lucee.runtime.util.VariableUtilImpl.callFunctionWithNamedValues(VariableUtilImpl.java:833)\n\tat lucee.runtime.PageContextImpl.getFunctionWithNamedValues(PageContextImpl.java:1737)\n\tat coldbox.system.web.controller_cfc$cf.udfCall2(/coldbox/system/web/Controller.cfc:727)\n\tat coldbox.system.web.controller_cfc$cf.udfCall(/coldbox/system/web/Controller.cfc)\n\tat lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:107)\n\tat lucee.runtime.type.UDFImpl._call(UDFImpl.java:357)\n\tat lucee.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:212)\n\tat

In the end, recompiling our Container and running new containers into production resolved this. Not sure what caused it… was running fine without update for 8 days then out of the no-where this error came up… very odd.

We have started experiencing this issue again. Has anyone ever experienced this while attempting to run a coldbox App in Docker containers?

I don’t think it has anything to do with Docker. It sounds like a race condition like the framework is getting reinitted under load. Perhaps your health check URL isn’t waiting until the app is up when a new container deploys to send traffic to it?

Thanks Brad,

We hadn’t setup the blow struct on our Coldbox.cfc config. We have now added it and seems to be running fine so will watch and see if that keeps it stable now.

orm = { injection = { enabled = true, include = "", exclude = "" } }

This has now been added to coldbox so hoping will alleviate.

Will check out your suggestion if the issue pops up again

Thanks again