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: Major / 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
Hi All, I have attached a private patch to this bug. Please apply the patch and let us know if it works for you. Steps to apply the patch: # Stop CF server # Navigate to <cf_install_root>/cfusion/lib/updates # Place the attached patch. # Start CF server Filename: hf201800-4206047.jar MD5 checksum: 57434528f14cf8c76f5ea6725107affc   -Nimit
Comment by Nimit S.
31944 | December 13, 2019 09:21:58 AM GMT
Hello Nimit, I work with Brian and Wendy and I installed this hotfix on our server to test, but I'm not noticing any difference at all when testing. I followed the instructions you posted for installation, but I don't see anything in cf admin to indicate that it was installed. Is there a way to confirm that the hotfix is installed correctly?
Comment by Chris S.
31945 | December 13, 2019 06:34:43 PM GMT
NM. I found it in the CF Server Java Class Path list. However, our code using cfthread still does not seem to work when the PMT is connected.
Comment by Chris S.
31946 | December 13, 2019 06:37:13 PM GMT
Hello  We are unable to repro this issue. Can we discuss in mail "yopatel@adobe.com" about this bug. Also if we can go screen sharing , that also be good. Regards Yogesh
Comment by Yogesh P.
33355 | March 23, 2020 06:04:21 AM GMT
Hello Is there any update, regarding issue   Yogesh
Comment by Yogesh P.
33356 | April 03, 2020 06:39:58 AM GMT
Screen sharing is something our IT department would have to handle, and I'm not sure if they would be willing to do that for obvious reasons.
Comment by wendy j.
33357 | April 06, 2020 05:04:15 PM GMT