ColdFusion infinite loop causes Java heap space error

If you get an error page like this, and are scratching your head as to why, it's probably an infinite loop in your CFML code. The error I had was this, and sure enough, I had an out of control loop.

500

ROOT CAUSE:
java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:2882)
at java.io.CharArrayWriter.write(CharArrayWriter.java:105)
at coldfusion.runtime.CharBuffer.replace(CharBuffer.java:37)
at coldfusion.runtime.CharBuffer.replace(CharBuffer.java:50)
at
coldfusion.runtime.NeoBodyContent.write(NeoBodyContent.java:254)
at.........

Comments
BlogCFC was created by Raymond Camden. This blog is running version 5.9.002. Contact Blog Owner