The given exception is quite clear
java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String
The JVM is expecting a java.lang.String
and you give it a java.lang.Integer
. An Integer
cannot be cast to a String
.
This must be something with either your template or your data given to the template.