zackster
06/04/2025, 3:32 PMzackster
06/04/2025, 3:33 PM{"message":"Complex object types cannot be converted to simple values.","documentation":"","pattern":"","line":0,"column":0,"state":"execution","error":"Complex object types cannot be converted to simple values.","html":"Complex object types cannot be converted to simple values.","stacktrace":"{\"Suppressed\":[],\"StackTrace\":\"coldfusion.runtime.CfJspPage$ComplexObjectException: Complex object types cannot be converted to simple values.\\n\\tat coldfusion.runtime.Cast._String(Cast.java:1410)\\n\\tat coldfusion.runtime.Cast._String(Cast.java:1348)\\n\\tat cfcfmler2ecfc340885392$funcPLAYCFMFILE.runFunction(/app/cfmler.cfc:85)\\n\\tat coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:670)\\n
abram
06/04/2025, 3:48 PMabram
06/04/2025, 3:50 PMzackster
06/04/2025, 3:53 PMzackster
06/04/2025, 3:54 PMzackster
06/04/2025, 3:55 PMBK BK
06/07/2025, 12:42 PMBK BK
06/08/2025, 1:44 PM<cfscript>
function testFunction(){}
</cfscript>
<cfdump var="#variables#">
You would expect the result to be a struct that has 'testFunction' as key. The code was therefore run on TryCF using
• the latest 4 Adobe ColdFusion versions (2018, 2021, 2023, 2025)
• the latest 4 Lucee versions (4.5, 5, 6, 7)
• BoxLang
• Railo 4.2
Only Lucee 6, Lucee 7 and Railo 4.2 yielded the expected result.
The results, in picture form, are as follows: