I have a page with some code that's repeated several times. I factored out the code into a template file and included the template file to avoid repetition. However, I'm getting the strangest error - the regular debugging coldfusion error shows up with "The following information is meant for the website developer for debugging purposes." and "Error Occurred While Processing Request"... But the section that usually has the error message just says "0". (If I look in the stack trace section I see "java.lang.ArrayIndexOutOfBoundsException: 0"...) What does this mean?
Besides for the fact that I've never seen a coldfusion error like this and don't understand what it's referring to, I'm surprised that I'm getting an error in the first place. The page was working, I copied the code exactly into another file and included it using a "cfinclude"... And if I copy the code back it works just fine. I thought cfinclude just inserts the code in the file directly into the page - how can I get an error with the cfinclude that I don't get with the literal code? What am I missing about how cfinclude works?
Update: the problem seems to be with a nested cfoutput. I have something like:
<cfoutput group="myGroup">
<cfoutput group="myNestedGroup">
... lots of code ...
</cfoutput>
</cfoutput>
This is what's throwing the error. Any ideas why?
Update 2:
This seems to be a Coldfusion bug. Can anyone think of a workaround?