ColdFusion 2021 - cfstat.bat -x gives java.lang.NullPointerException
Hi,
We've just started a migration from ColdFusion 2016 to ColdFusion 2021. We have been using cfstat.bat to gather statistics that we periodically write to disk and then ship to Kibana. This has been working well for ColdFusion 2016, but when running the same setup on ColdFusion 2021 we ran into issues.
The following works fine:
PS C:\ColdFusion2021\cfusion\bin> .\cfstat.bat
Pg/Sec DB/Sec CP/Sec Reqs Reqs Reqs AvgQ AvgReq AvgDB Bytes Bytes
Now Hi Now Hi Now Hi Q'ed Run'g TO'ed Time Time Time In/Sec Out/Sec
0 0 0 0 -1 -1 0 0 0 0 0 1361 0 0
But when we add the -x switch ("Extended output. (Included counters for individual request types)") we get the following back:
PS C:\ColdFusion2021\cfusion\bin> .\cfstat.bat -x
Pg/Sec DB/Sec CP/Sec Reqs Reqs Reqs Templ Templ Templ Flash Flash Flash CFC CFC CFC WebS WebS WebS AvgQ AvgReq AvgDB Bytes Bytes
Now Hi Now Hi Now Hi Q'ed Run'g TO'ed Q'ed Run'g TO'ed Q'ed Run'g TO'ed Q'ed Run'g TO'ed Q'ed Run'g TO'ed Time Time Time In/Sec Out/Sec
0 0 0 0 -1 -1 0 0 0 0 0 0 java.lang.NullPointerException
So, it seems like there's an internal java.lang.NullPointerException when getting data for the first of the Flash-columns, which I guess makes sense in some way since Flash-remoting support might be deprecated in ColdFusion 2021, but it prevents us from getting the number of running/queues/TOed CFC requests which is what we're really looking for.
We are on version 2021.0.02.328618.
The following packages are installed:
PS C:\ColdFusion2021\cfusion\bin> .\cfpm.bat
cfpm>list
adminapi, version : 2021.0.02.328618
administrator, version : 2021.0.02.328618
axis, version : 2021.0.02.328618
caching, version : 2021.0.02.328618
chart, version : 2021.0.02.328618
debugger, version : 2021.0.02.328618
derby, version : 2021.0.02.328618
document, version : 2021.0.02.328618
ftp, version : 2021.0.02.328618
image, version : 2021.0.02.328618
mail, version : 2021.0.02.328618
oracle, version : 2021.0.02.328618
pdf, version : 2021.0.02.328618
scheduler, version : 2021.0.02.328618
spreadsheet, version : 2021.0.02.328618
sqlserver, version : 2021.0.02.328618
zip, version : 2021.0.02.328618
Has anyone else experienced this? If yes, is there a solution?
BR
Max
