ColdFusion 2021 CFCLIENT Fatal Error

New Here ,
Feb 04, 2021 Feb 04, 2021

Copy link to clipboard

Copied

My company website is using cfClient with device detect to pass metrics on whether customers are using computers, tablets, or smartphones to reserve car rentals. 

 

Here is the block we have in our checkout form template:

<cfclientsettings detectDevice=true />
<cfclient>
    <cffunction access="public" name="cfDeviceGroup" returntype="struct" returnformat="json">
        <cfreturn {'name'=cfclient.properties.deviceGroupName,'desc'=cfclient.properties.deviceGroupDescription}>
    </cffunction>
</cfclient>

This has been working fine in CF2016, but we are starting to migrate to CF2021 and now, loading the page with that code block generates a fatal error:

class coldfusion.runtime.NeoBodyContent cannot be cast to class coldfusion.runtime.NeoJspWriter (coldfusion.runtime.NeoBodyContent and coldfusion.runtime.NeoJspWriter are in unnamed module of loader coldfusion.bootstrap.BootstrapClassLoader @21bd128b)

Guidance on how we can or should troubleshoot coldfusion.bootstrap.BootstrapClassLoader would be appreciated. Alternatively, is this problem pervasive?

 

Full Stack Trace:

java.lang.ClassCastException: class coldfusion.runtime.NeoBodyContent cannot be cast to class coldfusion.runtime.NeoJspWriter (coldfusion.runtime.NeoBodyContent and coldfusion.runtime.NeoJspWriter are in unnamed module of loader coldfusion.bootstrap.BootstrapClassLoader @21bd128b) at coldfusion.tagext.lang.ClientTag.doEndTag(ClientTag.java:120) at cfcheckout_form2ecfm379470395._factor21(C:\inetpub\Autoeurope3\plugins\ae3\themes\AE1\inc\checkout_form.cfm:502) at cfcheckout_form2ecfm379470395._factor28(C:\inetpub\Autoeurope3\plugins\ae3\themes\AE1\inc\checkout_form.cfm:499) at cfcheckout_form2ecfm379470395.runPage(C:\inetpub\Autoeurope3\plugins\ae3\themes\AE1\inc\checkout_form.cfm:1) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:257) at coldfusion.tagext.lang.IncludeTag.handlePageInvoke(IncludeTag.java:749) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:578) at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:5177) at cfcar_bookform_ds2ecfm1216148272.runPage(C:\inetpub\Autoeurope3\car_includes\car_bookform_ds.cfm:37) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:257) at coldfusion.tagext.lang.IncludeTag.handlePageInvoke(IncludeTag.java:749) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:578) at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:5177) at cfcar_control2ecfm573178932._factor116(C:\inetpub\Autoeurope3\car_includes\car_control.cfm:1204) at cfcar_control2ecfm573178932._factor118(C:\inetpub\Autoeurope3\car_includes\car_control.cfm:1203) at cfcar_control2ecfm573178932._factor126(C:\inetpub\Autoeurope3\car_includes\car_control.cfm:1202) at cfcar_control2ecfm573178932.runPage(C:\inetpub\Autoeurope3\car_includes\car_control.cfm:1) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:257) at coldfusion.tagext.lang.IncludeTag.handlePageInvoke(IncludeTag.java:749) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:578) at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:5177) at cfbooking2ecfm243780343.runPage(C:\inetpub\Autoeurope3\themes\AE1-global\templates\booking.cfm:21) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:257) at coldfusion.tagext.lang.IncludeTag.handlePageInvoke(IncludeTag.java:749) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:578) at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:5177) at cfstandardHTMLTranslator2ecfc146005413$funcTRANSLATE.runFunction(C:\inetpub\Autoeurope3\requirements\mura\Translator\standardHTMLTranslator.cfc:94) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:629) at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:522) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:469) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:444) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:687) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:980) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:762) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:4150) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:4114) at cfpluginStandardEventWrapper2ecfc376657111$funcTRANSLATE.runFunction(C:\inetpub\Autoeurope3\requirements\mura\plugin\pluginStandardEventWrapper.cfc:140) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:629) at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:522) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:469) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:444) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:316) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:975) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:696) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:503) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:4239) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:4202) at cfstandardEventsHandler2ecfc1419905735$funcSTANDARDTRANSLATIONHANDLER.runFunction(C:\inetpub\Autoeurope3\requirements\mura\Handler\standardEventsHandler.cfc:87) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:629) at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:522) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:469) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:444) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:687) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:980) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:762) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:4150) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:4114) at coldfusion.tagext.lang.InvokeTag.doEndTag(InvokeTag.java:479) at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:5178) at cfutility2ecfc223417570$funcINVOKEMETHOD.runFunction(C:\inetpub\Autoeurope3\requirements\mura\utility.cfc:1341) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:629) at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:522) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:469) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:444) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:687) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:980) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:762) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:4150) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:4114) at cfpluginStandardEventWrapper2ecfc376657111$funcHANDLE.runFunction(C:\inetpub\Autoeurope3\requirements\mura\plugin\pluginStandardEventWrapper.cfc:90) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:629) at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:522) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:469) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:444) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:316) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:975) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:696) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:503) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:4239) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:4202) at cfstandardEventsHandler2ecfc1419905735$funcSTANDARDDORESPONSEHANDLER.runFunction(C:\inetpub\Autoeurope3\requirements\mura\Handler\standardEventsHandler.cfc:420) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:629) at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:522) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:469) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:444) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:687) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:980) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:762) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:4150) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:4114) at coldfusion.tagext.lang.InvokeTag.doEndTag(InvokeTag.java:479) at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:5178) at cfutility2ecfc223417570$funcINVOKEMETHOD.runFunction(C:\inetpub\Autoeurope3\requirements\mura\utility.cfc:1341) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:629) at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:522) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:469) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:444) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:687) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:980) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:762) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:4150) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:4114) at cfpluginStandardEventWrapper2ecfc376657111$funcHANDLE.runFunction(C:\inetpub\Autoeurope3\requirements\mura\plugin\pluginStandardEventWrapper.cfc:90) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:629) at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:522) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:469) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:444) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:316) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:975) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:696) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:503) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:4239) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:4202) at cfcontentServer2ecfc1745151438$funcDOREQUEST.runFunction(C:\inetpub\Autoeurope3\requirements\mura\content\contentServer.cfc:805) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:629) at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:522) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:469) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:444) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:316) at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:4996) at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:4976) at cfcontentServer2ecfc1745151438$funcPARSEURL.runFunction(C:\inetpub\Autoeurope3\requirements\mura\content\contentServer.cfc:259) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:629) at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:522) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:469) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:444) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:316) at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:4996) at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:4976) at cfcontentServer2ecfc1745151438$funcPARSEURLROOT.runFunction(C:\inetpub\Autoeurope3\requirements\mura\content\contentServer.cfc:313) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:629) at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:522) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:469) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:444) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:316) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:975) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:696) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:503) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:4239) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:4202) at cfcontentServer2ecfc1745151438$funcHANDLEROOTREQUEST.runFunction(C:\inetpub\Autoeurope3\requirements\mura\content\contentServer.cfc:676) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:629) at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:522) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:469) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:444) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:316) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:975) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:696) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:503) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:4239) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:4202) at cfindex2ecfm663867378.runPage(C:\inetpub\Autoeurope3\index.cfm:46) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:257) at coldfusion.tagext.lang.IncludeTag.handlePageInvoke(IncludeTag.java:749) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:578) at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:565) at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:43) at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) at coldfusion.filter.PathFilter.invoke(PathFilter.java:162) at coldfusion.filter.IpFilter.invoke(IpFilter.java:45) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:97) at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28) at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:60) at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:62) at coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:151) at coldfusion.CfmServlet.service(CfmServlet.java:232) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:311) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:46) at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:47) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at coldfusion.inspect.weinre.MobileDeviceDomInspectionFilter.doFilter(MobileDeviceDomInspectionFilter.java:57) at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:47) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:359) at org.apache.coyote.ajp.AjpProcessor.service(AjpProcessor.java:460) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1589) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.base/java.lang.Thread.run(Thread.java:834)

Views

108

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 04, 2021 Feb 04, 2021

Copy link to clipboard

Copied

LATEST

NOTE - this error can happen even if I put an empty block in the CFM instead of the particular function we had written.

<cfclient></cfclient>

 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines