Greetings hitendra and welcome to the ranch,
Can you please show us the stack trace of the complete excpetion ?
java.sql.SQLException: General error
This is very abstract and general. The root cause may be in the log files. Also kindly use code tags since it becomes quite difficult to read code in text format.