flowable启动报错排查记录

背景

在构建项目jeecgflow过程中,出现了启动异常。我们这边用的是JeecgBoot3.6.2集成flowable6.7.2。大家可以参考之前的文章,有讲解jeecgboot如何集成flowable

在集成之后,确实可以正常启动, 然后我们就开始了模型建模了。

然后再次启动项目,就出现了如下的报错信息了。

//部分报错信息摘抄如下。
Caused by: liquibase.exception.DatabaseException: 
Table 'act_dmn_deployment' already exists

Caused by: org.flowable.common.engine.api.FlowableException: 
Error updating dmn engine tables

Caused by: org.flowable.common.engine.api.FlowableException: 
Error initialising dmn data model
Invocation of init method failed; nested exception is 
org.flywaydb.core.internal.command.DbMigrate$FlywayMigrateException:
Migration V3.6.2__all_upgrade.sql failed

SQL State  : 42S21
Error Code : 1060
Message    : Duplicate column name 'visits_num'
Location   : flyway/sql/mysql/V3.6.2__all_upgrade.sql
Error creating bean with name 'flywayInitializer' defined in class path resource
[org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration$FlywayConfiguration.class]: Invocation of init method failed; nested exception is 
org.flywaydb.core.api.exception.FlywayValidateException: Validate failed: Migrations have failed validation

Detected failed migration to version 3.6.2 (all upgrade). 
Please remove any half-completed changes then run repair to fix the schema history.

删除表中记录的有错误的sql并重新跑, 将flyway_schema_history中的数据进行清除。

Caused by: org.flywaydb.core.internal.command.DbMigrate$FlywayMigrateException:
Migration V3.6.2__all_upgrade.sql failed

Caused by: java.sql.SQLSyntaxErrorException: Duplicate column name 'visits_num'
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值