I was getting an oddly unhelpful error message when working on some ColdFusion development. Code that I knew ran okay on our development server was having an issue when setting it up to run on my local server. The error simply read “Truncated class file”. It turned out that the settings in the ColdFusion administrator had the component files setup to cache – which you don’t want on a development server where they are frequently changing. So, under Server Settings > Caching I unchecked the Save class files checkbox and used the buttons to clear the cache and everything was working again. Why was this breaking, probably a result of switching between branches in git and / or a file getting corrupted in the ColdFusion cache. Frustrating problem to track down with such a vague error, but an easy fix if you know what to do.
Latest posts by Kevin Hall (see all)
- Infinite CTO – Experienced leadership that fits your organization - September 10, 2018
- Infinite Insights – Jump Start Your Web Site or App Redesign - August 20, 2018
- Commercialize What You Build - August 15, 2018