Status/Resolution/Reason: Closed/Fixed/Fixed
Reporter/Name(from Bugbase): Mingo Hagen / Mingo Hagen (Mingo Hagen)
Created: 10/27/2016
Components: Language
Versions: 2016,11.0,10.0
Failure Type: Non Functioning
Found In Build/Fixed In Build: Final / 311460
Priority/Frequency: Normal / Some users will encounter
Locale/System: English / Platforms All
Vote Count: 2
Problem Description:
Having setLocale() in a cfthread can throw a NullPointerException errors at (seemingly) random intervals or simply not work.
I have tested with CF9, CF10, CF11 and CF2016.
Steps to Reproduce:
Run attached code a couple times and tail the sscce.log
I've seen it work as expected, throw NPEs, or not working at all. I can't really tell when it does what.
Actual Result:
Random errors or not working as documented.
Expected Result:
setLocale should work inside a cfthread.
Any Workarounds:
Don't use setLocale() inside a cfthread
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4197116
Reason: BugVerified
External Customer Info:
External Company:
External Customer Name: Mingo Hagen
External Customer Email:
External Test Config: My Hardware and Environment details:
I've seen this behavior in the developer versions of CF11 and CF2016 installed on Windows 10 and on CF9 on Windows Server 2008.
Also on CF10, CF11 and CF2016 on CommandBox running on Windows 10.
Attachments:
- October 27, 2016 00:00:00: 1_setlocale.zip
Comments: