My application fails after sometime, if i check my logs im getting
ClassCastException: java.net.SocketException incompatible with java.sql.SQLException, but once i restart the Server, it'll get back application to normal mode.

Can anyone pls help me with why this exception is coming?is that related to the code or the server?

Pls Help....

Thanks in Advance