Status/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Harry Klein / Harry Klein (Harry Klein)
Created: 03/09/2016
Components: Language
Versions: 2016
Failure Type: Unspecified
Found In Build/Fixed In Build: Alpha_v12 /
Priority/Frequency: Normal / Unknown
Locale/System: English / Linux All
Vote Count: 2
I created two simple CFCs (just one empty init function):
core.test.test
core.rights.rights
And this simple testfile:
<cfset variables.stFactoryObjects = structNew()>
<cflock name="apphelper.createObject_contenscms.core.rights.rights" type="exclusive" timeout="5">
<cfset oObj = createObject("component", "contenscms.core.rights.rights").init()>
<cfset variables.stFactoryObjects["contenscms.core.rights.rights"] = oObj>
</cflock>
And I get a deadlock!
"A timeout occurred while attempting to lock apphelper.createObject_contenscms.core.rights.rights."
If I change the lock name to …rights2
<cfset variables.stFactoryObjects = structNew()>
<cflock name="apphelper.createObject_contenscms.core.rights.rights2" type="exclusive" timeout="5">
<cfset oObj = createObject("component", "contenscms.core.rights.rights").init()>
<cfset variables.stFactoryObjects["contenscms.core.rights.rights"] = oObj>
</cflock>
there is no problem.
But, if I change the lock name to “test.test”
<cfset variables.stFactoryObjects = structNew()>
<cflock name="apphelper.createObject_contenscms.core.test.test" type="exclusive" timeout="5">
<cfset oObj = createObject("component", "contenscms.core.test.test").init()>
<cfset variables.stFactoryObjects["contenscms.core.test.test"] = oObj>
</cflock>
there is also no problem??
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4126642
External Customer Info:
External Company: CONTENS
External Customer Name: Harry Klein
External Customer Email: KLEIN@CONTENS.DE
External Test Config:
Bug File Paths:
\\sjshare.corp.adobe.com\Prereleasebugfiles\ColdFusion\12.0\Alpha_v12\4044261\test.cfc
\\sjshare.corp.adobe.com\Prereleasebugfiles\ColdFusion\12.0\Alpha_v12\4044261\testlock.cfm
\\sjshare.corp.adobe.com\Prereleasebugfiles\ColdFusion\12.0\Alpha_v12\4044261\rights.cfc
Attachments:
Comments: