I suspect it's the case that some CFML tags which halt processing (like <cfcontent>
in this case) seem to use the <cfabort>
code to do so. I can't rememeber how to repro it now, but <cfabort>
does raise an exception under the hood (and and AbortException
sounds about right), but ColdFusion for the most part suppresses it. REST requests don't use the same servlet as normal CF requests, so perhaps it's less good at suppressing it?
If you (for testing purposes, temporarily) remove the <cfcontent>
, I would expect the exception to not occur.
I feel I've been a bit vague with some of the detail here, but I'm not in the position to give it a thorough test just now. Sorry about that. When I find time I'll try to firm things up and sound more definite about it.