I get this when I have changed my servlet classes and the old databaseconnection is still sort of connected.Seems to come from a discrepancy betwwen versions of the classes (oldand new). Restarting the JVM fixes it.