tracker issue : CF-4204482

select a category, or use search below
(searches all categories and all time range)
Title:

CF2018 adding DB error exception in CF logs when connecting to PMT.

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/Fixed

Reporter/Name(from Bugbase): / ()

Created: 06/06/2019

Components: Database, PMT, Database Monitoring

Versions: 2018

Failure Type: Others

Found In Build/Fixed In Build: 2018 / CF2018U5

Priority/Frequency: Major / Most users will encounter

Locale/System: /

Vote Count: 0

Problem: CF2018 adding DB error exception in CF logs when connecting to PMT.

Method: The customer added PMT and ColdFusion node and their logs are getting filled with this exception. 

"Error","ajp-nio-8018-exec-50","04/04/19","14:00:53",,"Exception while fetching the host port of the DB in Configuration for db XYZ"

java.lang.ClassCastException: class coldfusion.sql.CFDataSourceProxy cannot be cast to class coldfusion.sql.CFDataSource (coldfusion.sql.CFDataSourceProxy and coldfusion.sql.CFDataSource are in unnamed module of loader coldfusion.bootstrap.BootstrapClassLoader @18a096b5)

               at coldfusion.monitor.es.Configuration.updateHostPort(Configuration.java:963)

               at coldfusion.monitor.es.Configuration.updateDataSourceDetails(Configuration.java:936)

               at coldfusion.monitor.es.Configuration.updateDBList(Configuration.java:237)

               at coldfusion.monitor.event.RequestMonitorEventProcessor.onQueryStart(RequestMonitorEventProcessor.java:890)

               at coldfusion.sql.SqlImpl.recordQueryMetrics(SqlImpl.java:519)

               at coldfusion.sql.SqlImpl.execute(SqlImpl.java:376)

               at coldfusion.tagext.sql.QueryTag.executeQuery(QueryTag.java:1211)

               at coldfusion.tagext.sql.QueryTag.startQueryExecution(QueryTag.java:841)

               at coldfusion.tagext.sql.QueryTag.doEndTag(QueryTag.java:794)

               at cfauditlist2ecfm205351956.runPage(C:\testing.cfm:157)

               at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:262)

               at coldfusion.tagext.lang.IncludeTag.handlePageInvoke(IncludeTag.java:729)

               at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:565)

               at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:4082)

               at cflogin2ecfm1087732635.runPage(C:\testing.cfm:113)

               at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:262)

               at coldfusion.tagext.lang.IncludeTag.handlePageInvoke(IncludeTag.java:729)

               at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:565)

               at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)

               at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:597)

               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:96)

               at coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:78)

               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.CfmServlet.service(CfmServlet.java:226)

               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:121)

               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:199)

               at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)

               at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:491)

               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:87)

               at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:357)

               at org.apache.coyote.ajp.AjpProcessor.service(AjpProcessor.java:422)

               at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)

               at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:764)

               at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1388)

               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)

 

Result:

Expected:

Workaround:

Note:

Attachments:

Comments:

This issue is fixed now. The fix for this issue will be available as part of an upcoming update of ColdFusion 2018.
Comment by Nimit S.
31250 | August 29, 2019 04:07:15 AM GMT