I am getting the Exception with the signature No operations allowed after statement closed. inside my Java code where I am trying to insert values into the data
No operations allowed after statement closed.
statement is static, so it's shared among instances (and threads). One thread is probably trying to use that object after another one has closed it.
statement
It is generally a bad idea to share database connections and statements between threads since JDBC does not require connections to be thread-safe.