Injection failing with Lucee 5

I grabbed the samplelogin app as a starting point for a new application and it appears to be that the injection of the property of flash scope in the MessageBox is failing for Lucee 5. Is there a quick solution to this?

lucee.runtime.exp.ExpressionException: variable [FLASH] doesn’t exist
at lucee.runtime.type.scope.UndefinedImpl.getCollection(UndefinedImpl.java:420)
at models.messagebox_cfc$cf.udfCall1(/opt/lucee-5.0.0.49-express/webapps/ROOT/modules/cbmessagebox/models/MessageBox.cfc:197)
at models.messagebox_cfc$cf.udfCall(/opt/lucee-5.0.0.49-express/webapps/ROOT/modules/cbmessagebox/models/MessageBox.cfc)
at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:106)
at lucee.runtime.type.UDFImpl._call(UDFImpl.java:337)
at lucee.runtime.type.UDFImpl.call(UDFImpl.java:225)
at lucee.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:777)
at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:750)
at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1577)
at models.messagebox_cfc$cf.udfCall2(/opt/lucee-5.0.0.49-express/webapps/ROOT/modules/cbmessagebox/models/MessageBox.cfc:219)
at models.messagebox_cfc$cf.udfCall(/opt/lucee-5.0.0.49-express/webapps/ROOT/modules/cbmessagebox/models/MessageBox.cfc)

Not sure John. I tried ColdBox on Lucee 5 when it first came out and hit errors but wasn’t able to create a stand-along repro case after a couple hours of poking so I don’t think it ever got fixed. I’d have to dig into it again. Perhaps you can help figure out why it’s not working. We should definitely get any ColdBox bugs reported but I just haven’t had the time to do any more testing on Lucee 5

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

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

Can you point me to where the magic happens between the properties and the injection wiring of internal items to ColdBox?

So where this

Get’s acted upon?

I have a feeling that Lucee isn’t exposing properties properly

Yeah, the issue I had was inherited properties not being injected. Start with wirebox.getBinder().getMappings() and find the mapping for that object. You can see the metadata that WireBox has stored for the CFC which is retrived via getInheritedMEtadata from a ColdBox utility class. That’s as far as I got the last time I looked. The metadata for a CFC is generated and parsed in the “process()” method of the mapping class. It is used in the injector’s buildInstance() method which passes off to the correct builder class.

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

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

Hi Brad,

i think the same problem’s existent if you try to follow the “getting started guide” (http://coldbox.ortusbooks.com/content/getting_started_guide/index.html).
At the Chapter “Creating A Model” where the “GreeterService” should be implemented you’ll get the same error (commandbox 2 stable, ColdBox SEEK 4.1.0+00002 (Gideon).
http://127.0.0.1:56415/index.cfm/helloWorld ends up in “Type: expression Messages: variable [MESSSAGEBOX] doesn’t exist”

best, marcus