Springboot2 + MySQL integrated flowable6.6.0, failed to start
In liquibase.changelog.standardchangeloghistoryservice, there is such a code:
Object tmpDateExecuted = rs.get("DATEEXECUTED");
Date dateExecuted = null;
if (tmpDateExecuted instanceof Date) {
dateExecuted = (Date)tmpDateExecuted;
} else {
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
try {
dateExecuted = df.parse((String)tmpDateExecuted);
} catch (ParseException var24) {
}
}
The dateexecuted field in the database is of timestamp type. When the version of the database driver package used is relatively new (8.0.23 is used here), the returned type is localdatetime. If it is strongly converted to string, an error will be reported
Modify the driver package version to 8.0.19, and the service starts normally
Read More:
- Exception in thread “main“ java.lang.ClassCastException: com.sun.proxy.$Proxy8 cannot be cast to XXX
- How to get the current time in java time string
- build.gradle Warming: cannot be applied to ‘(groovy.lang.Closure)’/'(java.lang.String)’
- java.lang.NoSuchMethodError: org.json.JSONObject.put(Java/lang/String; Java/util/Collection;) “209151;”
- Failed to convert value of type ‘java.lang.String‘ to required type ‘java.util.Date‘;
- Spock + powermock simulation static method reports an error java.lang.classcastexception
- Error in idea compilation: java.lang.OutOfMemoryError Java heap space and java.lang.StackOverflowError
- Solve the problem of testing redis cluster“ java.lang.NumberFormatException : For input string: “ [email protected]@17002 “And so on
- Local date time conversion in java8
- Mybatis error,There is no getter for property named ‘xx’ in ‘class java.lang.String The solution
- Error attempting to get column time from result set. Cause: java.sql.SQLFe
- java.lang.IllegalStateException: ArrayAdapter requires the resource ID to be a TextView
- Cause: java.sql.SQLException: Error setting driver on UnpooledDataSource. Cause: java.lang.ClassNot
- Idea start error: java.lang.IllegalStateException : failed to create a child event loop
- Java:java.lang.OutOfMemoryError : GC overhead limit exceeded solution
- Divide in [JavaEE] BigDecimal, divisor cannot be 0. java.lang.ArithmeticException : / by zero
- When using idea to start a project, an error is reported: Error:java : Compilation failed: internal java compiler error
- java.sql.SQLException: Incorrect string value:
- zookeeper Failed to Startup: Error: JAVA_HOME is not set and java could not be found in PATH
- Jsonformat annotation solves the problem of time format in the front end of localdatetime