Monday, December 11, 2006

CFC Explorer Returns eronious message

I was working with a CFC today and ran into an odd issue with the CFC explorer. The issue seems to be specific to the EXTENDS attribute of the CFCOMPONENT tag. The problem shows up when the EXTENDS attribute points to a CFC that does not exist. But it is actually not that simple. Lets say you build a CFC without the EXTENDS then call the CFC and have it show in the CFC explorer. Then you edit the CFC and add the EXTENDS attribute and refresh the CFC explorer window. Now if the EXTENDS points to a valid CFC then everything is fine. However, if it points to a CFC that does not exist you will get a weird error. Instead of a CF error claiming that the EXTENDS points to an invalid CFC you will get this error:

Component not found

The component definition file for component '' cannot be found on this server.



If this happens just call the cfc directly again and you will get the actual error message.


--Dave

No comments: