Hi
I think the issue is related to Velocity templates format mismatch.
I would require source code to setup at my end to look up the issue.
I would consume 4 hours as its been years that i had used Velocity ,, probably the application you are working is decade back or more..
Thanks
MDS