Details
Details
Assignee
Michael Offner
Michael OffnerReporter
Brad Wood
Brad WoodPriority
Labels
New Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Created 17 July 2020 at 17:53
Updated 20 July 2020 at 10:14
If a request completes while the CFMLFactory's getInfo() method is looping over the iterator, a null pointer exception will be thrown. The exceptions tend to happen in one of the following places:
When using the thread obtained by pc.getThread()
When using pc.getApplicationContext()
This is easy to reproduce, just take a page with the code:
and hit it in a load tool with 50 threads and you'll get errors all over. This also affects the following tag:
which is where I originally saw the issue.
Lucee needs to put better checking in place to ensure the current thread being looped over hasn't ended and if it has, omit it from the results. I created my own simplified implementation of this that does extra null checking and uses try/catches to detect a dead thread.