tracker issue : CF-4206047

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

Error with cfthread when monitoring is enabled

| View in Tracker

Status/Resolution/Reason: To Track//PRNeedInfo

Reporter/Name(from Bugbase): Matthew M. / ()

Created: 11/21/2019

Components: PMT, CF Metrics

Versions: 2018

Failure Type: Incorrectly functioning

Found In Build/Fixed In Build: 2018,0,05,315699 and 2018,0,06,316308 /

Priority/Frequency: Normal / Some users will encounter

Locale/System: English / Win 2016

Vote Count: 4

Problem Description:When monitoring is enabled for a server in Performance Monitoring Toolset, cfthread tags fail to execute intermittently.

Steps to Reproduce:Enable monitoring and then try executing cfthread commands.

Actual Result:
"Error","cfthread-1400","11/21/19","08:37:44",,"INSETMAP-8FF8B190-AFD8-8640-800D: null"
java.lang.NullPointerException
	at coldfusion.monitor.util.ThreadMonitorData.<init>(ThreadMonitorData.java:43)
	at coldfusion.monitor.event.RequestMonitorEventProcessor.onThreadStart(RequestMonitorEventProcessor.java:261)
	at coldfusion.thread.Task.run(Task.java:139)
	at coldfusion.scheduling.ThreadPool.run(ThreadPool.java:260)
	at coldfusion.scheduling.WorkerThread.run(WorkerThread.java:71)

Expected Result: cfthread should execute successfully.

Any Workarounds: No

Attachments:

Comments:

My team experiences this exact same issue on CF2018 Update 4 on Windows Server 2016, and can confirm that it goes away when monitoring is disabled. We can also confirm that the issue is not that the number of threads generated by code exceeds the number of threads allowed in the CF admin. While the priority was reported as normal, I'd suggest it is high or critical as our biggest application relies heavily on threading and this issue has been causing problems since we moved to CF2018. The PMT is a major selling point for CF2018, and its very frustrating to not be able to use it if we want to continue to use cfthread in our code.
Vote by Brian K.
31910 | December 02, 2019 04:28:38 PM GMT
I am having the same issue when I try to load a Java file archiving library from within a cfthread on servers that have PMT enabled. The thread progresses to exactly the point of the CreateObject() call, then throws an error. I have verified that the problem is not with the ColdFusion code or the Java library. I am completely unable to replicate the issue on CF2018 servers that do not use PMT, and it did not happen with CF11, where the same code ran without incident for 5+ years. Furthermore, it happens when CFZIP is run from within a thread as well. I have also verified that the number of concurrent threads does not exceed the number set in CFAdmin.
Comment by wendy j.
31909 | December 02, 2019 05:47:58 PM GMT
Hi , We are looking at this issue on priority. Please share repro code with us. Thanks, Mayur
Comment by Mayur J.
31911 | December 02, 2019 06:21:12 PM GMT
Hi All, I have tried reproducing this issue with cfthread related test cases and the repro case that is attached to this bug but I am unable to repro this issue. Please help me this information: # Have you applied the latest update on the PMT server? # What is the PMT build number? # Is it an intermittent issue or are you able to repro it consistently? -Nimit
Comment by Nimit S.
31912 | December 02, 2019 07:13:35 PM GMT
Hi All, I have tried reproducing this issue with cfthread related test cases and the repro case that is attached to this bug but I am unable to repro this issue. Please help me this information: # Have you applied the latest update on the PMT server? # What is the PMT build number? # Is it an intermittent issue or are you able to repro it consistently? -Nimit
Comment by Nimit S.
31913 | December 03, 2019 06:03:03 AM GMT
1) We are on 2018.0.01.314114. Our IT team performs server updates regularly. 2) We are consistently able to reproduce the issues we are experiencing on all servers that are connected to PMT. They are not replicable on servers that are not connected to PMT.
Comment by wendy j.
31916 | December 03, 2019 04:58:07 PM GMT
Wendy - are you open for a screen share session ?
Comment by Suresh J.
31921 | December 04, 2019 09:42:23 AM GMT