add "zeroDateTimeBehavior=convertToNull" to database connection, so that
there is no date related error in Java