Title:
Concurrency issues when writing to mappings returned from getApplicationMetadata() under load
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/Fixed
Reporter/Name(from Bugbase): Bill Reese / Bill Reese ()
Created: 03/08/2017
Components: Language, Application Framework
Versions: 2016,11.0
Failure Type: Others
Found In Build/Fixed In Build: ColdFusion 11 update 11, jre 1.8.121 / 2018,0,0,307390
Priority/Frequency: Normal /
Locale/System: / Platforms All
Vote Count: 6
Problem Description: when writing mappings to the object returned by getApplicationMetadata()
I get the error under load of: java.util.ConcurrentModificationException at java.util.HashMap$HashIterator.nextNode(HashMap.java:1437) at java.util.HashMap$KeyIterator.next(HashMap.java:1461) at java.util.AbstractCollection.toArray(AbstractCollection.java:196) at coldfusion.util.CaseInsensitiveMap$FastHashKeyEnumerator.<init>(CaseInsensitiveMap.java:457) at coldfusion.util.CaseInsensitiveMap$KeySet.iterator(CaseInsensitiveMap.java:321) at coldfusion.runtime.TemplateProxyFactory.getFullName(TemplateProxyFactory.java:1169) at coldfusion.runtime.TemplateProxyFactory.resolveName(TemplateProxyFactory.java:202) at coldfusion.runtime.TemplateProxyFactory.resolveName(TemplateProxyFactory.java:159) at coldfusion.runtime.TemplateProxyFactory.resolveName(TemplateProxyFactory.java:149) at coldfusion.cfc.ComponentProxyFactory.getProxy(ComponentProxyFactory.java:57)
Steps to Reproduce:
code in question is:
var appSettings = getApplicationMetadata();
appSettings.mappings[ 'mapping' ] = 'path';
Actual Result: error
Expected Result: no error
Any Workarounds:
Attachments:
Comments: