org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'expenseController': Unsatisfied dependency expressed through field 'runtimeService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'runtimeServiceBean' defined in class path resource [org/flowable/spring/boot/ProcessEngineAutoConfiguration.class]: Unsatisfied dependency expressed through method 'runtimeServiceBean' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'processEngine': FactoryBean threw exception on object creation; nested exception is org.flowable.engine.common.api.FlowableException: Error initialising Content schema
Error initialising Content schema
Reason: liquibase.exception.DatabaseException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(6) NULL, CREATED_BY_ VARCHAR(255) NULL, LAST_MODIFIED_ timestamp(6) NULL, LAST_' at line 1 [Failed SQL: CREATE TABLE flowable.ACT_CO_CONTENT_ITEM (ID_ VARCHAR(255) NOT NULL, NAME_ VARCHAR(255) NOT NULL, MIME_TYPE_ VARCHAR(255) NULL, TASK_ID_ VARCHAR(255) NULL, PROC_INST_ID_ VARCHAR(255) NULL, CONTENT_STORE_ID_ VARCHAR(255) NULL, CONTENT_STORE_NAME_ VARCHAR(255) NULL, FIELD_ VARCHAR(400) NULL, CONTENT_AVAILABLE_ BIT(1) DEFAULT 0 NULL, CREATED_ timestamp(6) NULL, CREATED_BY_ VARCHAR(255) NULL, LAST_MODIFIED_ timestamp(6) NULL, LAST_MODIFIED_BY_ VARCHAR(255) NULL, CONTENT_SIZE_ BIGINT DEFAULT 0 NULL, TENANT_ID_ VARCHAR(255) NULL, CONSTRAINT PK_ACT_CO_CONTENT_ITEM PRIMARY KEY (ID_))]
错误提示信息, 检查Mysql的版本, 下列执行的Sql报错. 将Sql拷贝到navicat中运行,报同样错误,怀疑Mysql版本冲突问题. 上网查阅资料, Mysql5.5和5.6版本,在dump中sql语句的时间戳TIMESTAMP有区别, 5.5版本是timestamp , 5.6版本是timestamp(0)后面有跟时间戳.
将以上sql中timestamp后括号去掉, 运行sql成功.
总结: 可通过升级Mysql的版本解决该问题.
SpringBoot+Flowable工作流SpringBoot+Flowable工作流SpringBoot整合Flowable初始化表报Error initialising Content schema问题SpringBoot+Flowable工作流SpringBoot项目中简单使用flowable工作流1 pom.xml文件 <dependencies> <dependency> <groupId>org.springframework.
操作系统:Ubuntu 16.04
问题描述:
在终端启动gedit命令或者vscode命令报错:gedit: symbol lookup error: /home/chujie/anaconda3/lib/libgobject-2.0.so.0: undefined symbol: g_date_copy
问题分析:
导致错误的原因应该是gedit依赖libgobject-2.0.so库,而/home/chujie/anaconda3/lib下的这个库版本不对,没有对应的符号。
因此解决的思路是从系统中找到正确的依赖库。
查找系统中存在的libgobject库:
locate libgob
Bug场景:
Unsatisfied dependency expressed through field ‘XXXService‘
报出了SpringBoot的运行时异常。说明Spring容器没有扫描到bean
导致该错误的原因可能有:
1.查看实现类里面有没有@Service注解,没有的话请加上。
2.或者是你的Controller没有扫描到。
这个原因是因为类没有注入进去,可以在启动类上面加个全盘扫描或者你指定扫描其下的任何包–>@ComponentScan(“”)里面写扫描路径
我这边报错是因
flowable war包启动失败,报错Caused by: org.flowable.common.engine.api.FlowableException: Error initialising dmn data model
类似问题.比如
Caused by: org.flowable.common.engine.api.FlowableException: Error initialising cmmn data model
Caused by: org.flowable.common.eng
我最开始通过@Repository来创建Mapper实现类的bean,结果报错了
nested exception is java.lang.IllegalArgumentException: Property
‘sqlSessionFactory’ or ‘sqlSessionTemplate’ are required
报错原因:是我Mapper实现类是继承了SqlSessionDaoSupport,其中有个参数SqlSess
FactoryBean threw exception on object creation; nested exception is org.flowable.common.engine.api.FlowableException: Error initialising dmn data model在启动Flowable和Spring Boot继承的项目时报如下错误:
后来经过排查发现是mysql的问题解决方法:找到数据库所表名以 databasechangeloglock 为后缀的表,并改成如下图格式问
一、问题描述
1.使用Maven+SpringBoot+MyBatis测试,启动项目报错:Unsatisfied dependency expressed through bean property 'sqlSessionFactory',也就是无法实例化,所有代码都没有问题
二、问题分析
1.检查mapper的name...
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>