My java application has been running smoothly for the last 2 years in one linux server.
Recently, we moved it to another linux server and it's then that it started giving the error as shown below:
java.sql.SQLException: Prepared statement needs to be re-prepared
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:946)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2870)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1573)
at com.mysql.jdbc.ServerPreparedStatement.serverExecute(ServerPreparedStatement.java:1160)
What is the likely cause of this and what are some of the measures that I can take to eradicate this.
Thank you kindly as you offer your assistance.