Looks like I found the solution for it. All I did was to add below line in my servlet-context.xml. Still checking the performance impact of this line
<beans:property name="validationQuery" value="SELECT 1"/>
Question remains, Why was I actually getting the error ? :)