We get java.sql.SQLException: JZ0C0: Connection is already closed.
This error is occurred in a rare case(may be once in 2 months), due to which the log file grow in GB's.

And after the above error, log file shows thousands of below lines
-ERROR- JDBCDatabase.getObjectField: No fields can be returned from this method because no query results exist to be retrieved. A query must first be executed through t
his class and then the get method must be called to reference a row of the query results before this method can be called.

Please help, what are the possible solutions can be apply to avoid such kind of error OR to avoid growing of log file in this case