Error casting an object of type #encodeForErrorSmart(error.message)# to an incompatible type. This usually indicates a programming error in Java, although it could also mean you have tried to use a foreign object in a different way than it was designed.