tracker issue : CF-4205501

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

Unable to run query inside Dynamic Proxy

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/CannotReproduce

Reporter/Name(from Bugbase): Tyler C. / ()

Created: 10/21/2019

Components: Database, CFQuery

Versions: 2018

Failure Type: Non Functioning

Found In Build/Fixed In Build: 2018.0.01.311402 /

Priority/Frequency: Normal / All users will encounter

Locale/System: / Windows 10 64 bit

Vote Count: 0

Problem Description:

Trying to execute a query using cfquery tag and queryExecute() throws nullPointer when run from within a Dynamic Proxied object.

Steps to Reproduce:

Using RabbitMQs amqp-client-5.6.0.jar consume a queue and react with a proxied CFC.  The connection, channel and consumer are all create on application start and stored in the application scope.

Actual Result:

java.lang.NullPointerException
	at coldfusion.monitor.event.RequestMonitorEventProcessor.createRequestURI(RequestMonitorEventProcessor.java:129)
	at coldfusion.monitor.event.RequestMonitorEventProcessor.onQueryStart(RequestMonitorEventProcessor.java:870)
	at coldfusion.sql.SqlImpl.recordQueryMetrics(SqlImpl.java:519)
	at coldfusion.sql.SqlImpl.execute(SqlImpl.java:376)
	at coldfusion.tagext.sql.QueryTag.executeQuery(QueryTag.java:1208)
	at coldfusion.tagext.sql.QueryTag.startQueryExecution(QueryTag.java:841)
	at coldfusion.tagext.sql.QueryUtils.executeQuery(QueryUtils.java:72)
	at coldfusion.runtime.CFPage.QueryExecute(CFPage.java:12233)
	at cfProxiedObject$funcCALLEDFUNCTION.runFunction(C:\PathToFile\ProxiedObject.cfc:12)
	at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:552)
	at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:446)
	at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
	at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:397)
	at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:370)
	at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:286)
	at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:818)
	at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:601)
	at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:426)
	at coldfusion.runtime.java.CFCDynamicProxy.invoke(CFCDynamicProxy.java:157)
	at com.sun.proxy.$Proxy52.calledFunction(Unknown Source)
	at com.rabbitmq.client.impl.ConsumerDispatcher$5.run(ConsumerDispatcher.java:149)
	at com.rabbitmq.client.impl.ConsumerWorkService$WorkPoolRunnable.run(ConsumerWorkService.java:104)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1135)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.lang.Thread.run(Thread.java:844)

Expected Result:

Query is run

Any Workarounds:

Attachments:

Comments:

This issue appears to be related to using Fusionreactor (version 8.0 and 8.2.1)
Comment by Tyler C.
31675 | October 22, 2019 02:03:36 PM GMT
Issue is resolved in at least Hotfix 4
Comment by Tyler C.
31712 | October 24, 2019 09:42:13 PM GMT
Hi Tyler, Are you still facing this issue with the latest hotfix? -Nimit
Comment by Nimit S.
31869 | November 25, 2019 04:41:10 AM GMT
No, the issue was resolved with updated Fusionreactor and Coldfusion hotfix
Comment by Tyler C.
31948 | December 09, 2019 10:22:16 PM GMT
Thanks for the confirmation Tyler. Can I close this bug now?
Comment by Nimit S.
31949 | December 10, 2019 02:47:43 AM GMT
Yes
Comment by Tyler C.
31950 | December 10, 2019 03:42:57 PM GMT
Thanks for the confirmation Tyler!
Comment by Nimit S.
31951 | December 10, 2019 03:58:03 PM GMT