anybody recognise this (see thread) moving an ACF ...
# lucee
t
anybody recognise this (see thread) moving an ACF app to Lucee
Copy code
lucee.runtime.exp.NativeException: class lucee.transformer.bytecode.statement.ExpressionAsStatement cannot be cast to class lucee.transformer.bytecode.statement.tag.TagComponent (lucee.transformer.bytecode.statement.ExpressionAsStatement and lucee.transformer.bytecode.statement.tag.TagComponent are in unnamed module of loader org.apache.felix.framework.BundleWiringImpl$BundleClassLoader @12abdfb)
@zackster it looks like LDEV-3238 did the fix make it into 5.4? also I dont appear to have a bad arrayappend, could it be named params on another method?
j
looked familiar so i searched my jira. doubt it will help you but:
There was an extraneous parenthesis in incomecalculator/Application.cfc. I have no clue why it worked in local1/local2 but not on dev/test2.
After having removed the paren, it works on the servers.
there are probably multiple ways to trigger it, tho.
t
ok that is quite possible unfortunately the app cfc is tags and 950 lines
j
also unfortunate is that my stack trace never explicitly mentioned my Application.cfc so i'm not sure how i even found it. (ticket was from 2020.)
t
with debug on there is only 1 template that has only been called once so I am assuming that is the culprit,
j
that sounds promising
t
turns out it was a casesensitive struct declaration
variables.MetaDataStruct = ${};
👍 1
🎉 1