When using flowable modeler to switch from MySQL database to PostgreSQL database, when reading the model, read the table ‘act’ of the database_ De_ Error in column ‘thumbnail’ of model ', error reported‘ org.springframework.dao .DataIntegrityViolationException: Error attempting to get column ‘thumbnail’ from result set. Cause: org.postgresql.util . psqlexception: bad type value long: ', I’ve tracked debuug, because it’s binary, but PostgreSQL is read as long.
postgresql Code:
private long getFastLong(int columnIndex) throws SQLException, NumberFormatException {
byte[] bytes = this.this_ row[columnIndex - 1];
neg = false;
if ( bytes.length > 18) {
throw FAST_ NUMBER_ FAILED;
}
spring error:
org.springframework.dao.DataIntegrityViolationException: Error attempting to get column ‘thumbnail’ from result set. Cause: org.postgresql.util.PSQLException:
Because I was integrating springboot and creating a model error when I read it with modeler.
so I think You can create a model with the flowable modeler and read it
I don’t know why?
I try to use 6.5.0
postgres 9 and 10
It’s all the same
"Caused by: org.postgresql.util.PSQLException: bad type long
at org.postgresql.jdbc2.AbstractJdbc2ResultSet.toLong(AbstractJdbc2ResultSet.java:2992)
"