Please don't just print the message of the exception in the catch block, but the whole stack trace. Some useful information might be lost. Please update the catch block accordinglyThen re-run your application and post the stack trace again.
ashwin bala wrote:Thank you so much. I got the error after putting printstacktrace.
Glad to hear my advice was helpful to resolve your issue. You should always print/log the complete strack trace, because (as you discovered yourself in this case) it could contain really valuable and important information about the thrown exception, which makes it easier to fix the issue.
ashwin bala wrote:I did not map the ID column properly
Could you share the improved mapping of the ID column and maybe share a part of the complete stack trace as well? That might be helpful for other ranchers as well.