ORMEventHanlder Property Injection Error

I am receiving the following error when attempting to save an ORM entity in ColdBox 3.8.1.

Error Type: Application : [N/A]
Error Messages: coldfusion.runtime.UndefinedVariableException: Variable SESSIONSTORAGE is undefined.
Root cause :org.hibernate.HibernateException: coldfusion.runtime.UndefinedVariableException: Variable SESSIONSTORAGE is undefined.

Here is my configuration.
ORM settings

// ORM Settings
this.ormEnabled       = true;
this.datasource       = appName;
this.ormSettings      = {
   cfclocation = ['/models/orm'],
   dbcreate    = "none",
   dialect = "MicrosoftSQLServer",
   logSQL         = true,
   flushAtRequestEnd = true,
   autoManageSession = false,
   eventHandling       =  true,
   eventHandler      = "orm.ORMEventHandler",
   savemapping = false
};

Coldbox.cfc

orm = {
   injection = {
      // enable entity injection
      enabled = true,
      // a list of entity names to include in the injections
      include = "",
      // a list of entity names to exclude from injection
      exclude = ""
   }
};

ORMEventHandler.cfc

The CF engine loads the ORM event handler before anything else in the application has loaded yet and it’s created directly, so no injections get processed for it. See if you can call getInstance() to get the session storage plugin when you need it.

Also, I notice you are still on ColdBox 3.x. The orm services and session storage plugin have all been refactored to modules. You should convert your app over before you get too far behind.

http://coldbox.ortusbooks.com/content/introduction/upgrading_to_coldbox_400.html

Thanks!

~Brad

ColdBox/CommandBox Developer Advocate
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

Thanks Brad, that worked. I had not considered using the getPlugin method. And we are looking to upgrade to ColdBox 4 shortly.