====== MySQL - Error Java JDBC connection to MySQL null dates exception ====== Getting Date Exception when data has null or zero values in record? Modify your connection database url as follows to fix the error: jdbc:mysql://yourserver:3306/yourdatabase?zeroDateTimeBehavior=convertToNull