Top Bar

Coldfusion

Coldfusion

No more data available to read / 4096

Yes, ColdFusion MX 6.1 is old, but some of our customers are still running it, and we're here to support them. A particular large select query against a SQL Server 2000 database was erroring out with either "No more data available to read" or "4096" errors. The stack trace indicated that the 4096 error was in fact a "java.lang.ArrayIndexOutOfBoundsException: 4096" error.

Code of a method longer than 65535 bytes

Encountered the above while parsing an XML file in ColdFusion.

Root of the problem:

This is a limitation of Java. A classfile may not exceed 65535 bytes. ColdFusion compiles CFML into Java bytecode, and each method gets its own .class file. (Look in WEB-INF/cfclasses) There does not appear to be a way to increase this limit.

Why we saw this error: