UninvocableEntityException: Puzzling ColdFusion Exception

So I'm calling a function in the same CFC, and I get the following error:

Entity has incorrect type for being called as a function.
The symbol you provided getProductColors is not the name of a function.

Intersting. The top of the stack trace reads:

coldfusion.runtime.CfJspPage$UninvocableEntityException: Entity has incorrect type for being called as a function.
   at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:2441)
   at coldfusion.tagext.lang.InvokeTag.doEndTag(InvokeTag.java:432)
   at cfceilume2ecfc2110149128$funcSAMPLES.runFunction(D:\site\insideDev\com\ew\feed\ceilume.cfc:71)

While I have no idea why the error occurred, I was able to make the problem go away by modifying the name of the method I was calling, changing it from getProductColors to getProductColorList.

Strange. A Google Search only returned one result, so I thought I'd contribute a little info in case someone else finds the same error.

Comments (Comment Moderation is enabled. Your comment will not appear until approved.)
Ed's Gravatar My guess is that you've found some java method buried somewhere.
# Posted By Ed | 10/24/08 7:32 AM
Sam Curren's Gravatar Interesting. I've found an undocumented reserved word? It fits.

This really surprises me. I've never hit a CF error this random and unexplainable before.
# Posted By Sam Curren | 10/24/08 7:58 AM
duncan's Gravatar Might want to submit this to cferror.org
# Posted By duncan | 10/24/08 12:27 PM
Edward Smith's Gravatar Had a spare moment and tried to reproduce this error on 8.01 64bit on OSX, and I was unable to reproduce it.

blah.cfc:
<cfcomponent output="false">
   <cffunction name="getProductColors">
      <cfreturn "I'm a function">
   </cffunction>
</cfcomponent>

blah.cfm:
<cfset toot = createObject("component","blah")>
<cfdump var="#toot.getProductColors()#">

spits out "I'm a function".
# Posted By Edward Smith | 10/24/08 1:48 PM
Edward Smith's Gravatar Oops, read it closer, but tried again, with no failure:

blah.cfc:

<cfcomponent output="false">
   <cffunction name="getProductColors">
      <cfreturn "I'm a function">
   </cffunction>

   <cffunction name="test">
      <cfreturn getProductColors()>
   </cffunction>
</cfcomponent>

blah.cfm:
<cfset toot = createObject("component","blah")>
<cfdump var="#toot.test()#">
# Posted By Edward Smith | 10/24/08 1:50 PM
# Posted By nike dunks | 5/14/10 7:13 AM
# Posted By supra shoes | 5/14/10 7:15 AM
# Posted By coach outlet | 5/31/10 12:51 AM