Debugging ClassCastExceptions in Eclipse
Working with application servers, it is not uncommon to encounter strange ClassCastExceptions that seem to have no reason. You are trying to cast an instance of MyModel to MyModel, yet the JVM is having issues with it....