org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liquibase'


#1

hello guys,

when i try run admin UI on my local i am getting this this error. How can i fix this problem ?
thank you

2019-03-07 14:09:35.532 INFO 8260 — [ restartedMain] l.e.j.JdbcExecutor : SELECT LOCKED FROM PUBLIC.ACT_ADM_DATABASECHANGELOGLOCK WHERE ID=1
2019-03-07 14:09:35.532 INFO 8260 — [ restartedMain] l.l.StandardLockService : Waiting for changelog lock…
2019-03-07 14:09:45.532 INFO 8260 — [ restartedMain] l.e.j.JdbcExecutor : SELECT ID,LOCKED,LOCKGRANTED,LOCKEDBY FROM PUBLIC.ACT_ADM_DATABASECHANGELOGLOCK WHERE ID=1
2019-03-07 14:09:45.539 WARN 8260 — [ restartedMain] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘liquibase’ defined in class path resource [org/flowable/ui/admin/conf/DatabaseConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [liquibase.Liquibase]: Factory method ‘liquibase’ threw exception; nested exception is org.flowable.ui.common.service.exception.InternalServerErrorException: Error creating liquibase database
2019-03-07 14:09:45.572 INFO 8260 — [ restartedMain] c.z.h.HikariDataSource : HikariPool-1 - Shutdown initiated…
2019-03-07 14:09:45.576 INFO 8260 — [ restartedMain] c.z.h.HikariDataSource : HikariPool-1 - Shutdown completed.
2019-03-07 14:09:45.579 INFO 8260 — [ restartedMain] o.a.c.c.StandardService : Stopping service [Tomcat]
2019-03-07 14:09:45.610 INFO 8260 — [ restartedMain] ConditionEvaluationReportLoggingListener :

Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled.
2019-03-07 14:09:45.632 ERROR 8260 — [ restartedMain] o.s.b.SpringApplication : Application run failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘liquibase’ defined in class path resource [org/flowable/ui/admin/conf/DatabaseConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [liquibase.Liquibase]: Factory method ‘liquibase’ threw exception; nested exception is org.flowable.ui.common.service.exception.InternalServerErrorException: Error creating liquibase database
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:591) ~[spring-beans-5.0.12.RELEASE.jar:5.0.12.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1246) ~[spring-beans-5.0.12.RELEASE.jar:5.0.12.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1096) ~[spring-beans-5.0.12.RELEASE.jar:5.0.12.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:535) ~[spring-beans-5.0.12.RELEASE.jar:5.0.12.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:495) ~[spring-beans-5.0.12.RELEASE.jar:5.0.12.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317) ~[spring-beans-5.0.12.RELEASE.jar:5.0.12.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans-5.0.12.RELEASE.jar:5.0.12.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315) ~[spring-beans-5.0.12.RELEASE.jar:5.0.12.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans-5.0.12.RELEASE.jar:5.0.12.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:759) ~[spring-beans-5.0.12.RELEASE.jar:5.0.12.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867) ~[spring-context-5.0.12.RELEASE.jar:5.0.12.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:548) ~[spring-context-5.0.12.RELEASE.jar:5.0.12.RELEASE]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:142) ~[spring-boot-2.0.8.RELEASE.jar:2.0.8.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:754) [spring-boot-2.0.8.RELEASE.jar:2.0.8.RELEASE]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:386) [spring-boot-2.0.8.RELEASE.jar:2.0.8.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:307) [spring-boot-2.0.8.RELEASE.jar:2.0.8.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1242) [spring-boot-2.0.8.RELEASE.jar:2.0.8.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1230) [spring-boot-2.0.8.RELEASE.jar:2.0.8.RELEASE]
at org.flowable.ui.admin.application.FlowableAdminApplication.main(FlowableAdminApplication.java:33) [classes/:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_201]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_201]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_201]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_201]
at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) [spring-boot-devtools-2.0.8.RELEASE.jar:2.0.8.RELEASE]
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [liquibase.Liquibase]: Factory method ‘liquibase’ threw exception; nested exception is org.flowable.ui.common.service.exception.InternalServerErrorException: Error creating liquibase database
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185) ~[spring-beans-5.0.12.RELEASE.jar:5.0.12.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:583) ~[spring-beans-5.0.12.RELEASE.jar:5.0.12.RELEASE]
… 23 more
Caused by: org.flowable.ui.common.service.exception.InternalServerErrorException: Error creating liquibase database
at org.flowable.ui.admin.conf.DatabaseConfiguration.liquibase(DatabaseConfiguration.java:95) ~[classes/:?]
at org.flowable.ui.admin.conf.DatabaseConfiguration$$EnhancerBySpringCGLIB$$39a44991.CGLIB$liquibase$0() ~[classes/:?]
at org.flowable.ui.admin.conf.DatabaseConfiguration$$EnhancerBySpringCGLIB$$39a44991$$FastClassBySpringCGLIB$$d003d161.invoke() ~[classes/:?]
at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228) ~[spring-core-5.0.12.RELEASE.jar:5.0.12.RELEASE]
at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:365) ~[spring-context-5.0.12.RELEASE.jar:5.0.12.RELEASE]
at org.flowable.ui.admin.conf.DatabaseConfiguration$$EnhancerBySpringCGLIB$$39a44991.liquibase() ~[classes/:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_201]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_201]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_201]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_201]
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ~[spring-beans-5.0.12.RELEASE.jar:5.0.12.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:583) ~[spring-beans-5.0.12.RELEASE.jar:5.0.12.RELEASE]
… 23 more


#2

Hi Egemen,

Is database configuration properly set?
( Error creating liquibase database)

Martin


#3

@martin.grofcik hi Martin,
Ididnt chance configuration file. normally it was work. i tryed;

  1. Run as Spring Boot App on Eclipse – fail
  2. download Flowable-admin War file from Flowable repo and start Tomcat on my local --fail
  3. Run docker image from Docker Hub flowable-all – run

I couldnt understand what is the problem


#4

@martin.grofcik, what do you think about RAM?. yesterday i chanced my computer RAM. i got source code to another computer , flowable-admin run normal.

flowable/ui/admin/conf/DatabaseConfiguration.java
liquibase = new Liquibase(“META-INF/liquibase/flowable-admin-app-db-changelog.xml”, new ClassLoaderResourceAccessor(), database);
liquibase.update(“flowable”); --> here problem
return liquibase;


#5

Hi,

I tried to reproduce this case. admin app works fine. (Without any command line args)

Regards
Martin


#6

hi,
i know admin app works another computer. but my local cant run. bch of this, i cannot debug project. just i m thinking about RAM, does ram have such an effect??


#7

Hi Martin,
i fix the problem, still i am thinking about RAM.

i chance db config Flowable-ui-admin-app /// flowable-default.properties like this,
#spring.datasource.url=jdbc:h2:~/flowable-db/db;AUTO_SERVER=TRUE;AUTO_SERVER_PORT=9091;DB_CLOSE_DELAY=-1
spring.datasource.url=jdbc:h2:file:C:/TestDataBase/db —> after that application run.

thank you for your interest


#8

@egemen most probably the reason for the fail was that you had some stale data from different versions in your ~/flowable-db/db. The reason why the stacktrace was not complete was due to a mistake on our side not to pass the cause. This has now been fixed on master. See commit 58733e8


#9

@filiphr, i chanced DataBaseConfiguration.java, build and Run As spring boot app, I got same error

2019-03-13 09:38:07.287 INFO 2184 — [ restartedMain] c.z.h.HikariDataSource : HikariPool-1 - Starting…
2019-03-13 09:38:12.114 INFO 2184 — [ restartedMain] c.z.h.HikariDataSource : HikariPool-1 - Start completed.
2019-03-13 09:38:13.118 INFO 2184 — [ restartedMain] l.e.j.JdbcExecutor : SELECT COUNT() FROM PUBLIC.ACT_ADM_DATABASECHANGELOGLOCK
2019-03-13 09:38:13.123 INFO 2184 — [ restartedMain] l.e.j.JdbcExecutor : SELECT COUNT(
) FROM PUBLIC.ACT_ADM_DATABASECHANGELOGLOCK
2019-03-13 09:38:13.123 INFO 2184 — [ restartedMain] l.e.j.JdbcExecutor : SELECT LOCKED FROM PUBLIC.ACT_ADM_DATABASECHANGELOGLOCK WHERE ID=1
2019-03-13 09:38:13.128 INFO 2184 — [ restartedMain] l.l.StandardLockService : Waiting for changelog lock…
2019-03-13 09:38:23.129 INFO 2184 — [ restartedMain] l.e.j.JdbcExecutor : SELECT LOCKED FROM PUBLIC.ACT_ADM_DATABASECHANGELOGLOCK WHERE ID=1
2019-03-13 09:38:23.130 INFO 2184 — [ restartedMain] l.l.StandardLockService : Waiting for changelog lock…
2019-03-13 09:38:33.131 INFO 2184 — [ restartedMain] l.e.j.JdbcExecutor : SELECT LOCKED FROM PUBLIC.ACT_ADM_DATABASECHANGELOGLOCK WHERE ID=1
2019-03-13 09:38:33.132 INFO 2184 — [ restartedMain] l.l.StandardLockService : Waiting for changelog lock…
2019-03-13 09:38:43.134 INFO 2184 — [ restartedMain] l.e.j.JdbcExecutor : SELECT LOCKED FROM PUBLIC.ACT_ADM_DATABASECHANGELOGLOCK WHERE ID=1
2019-03-13 09:38:43.135 INFO 2184 — [ restartedMain] l.l.StandardLockService : Waiting for changelog lock…
2019-03-13 09:38:53.137 INFO 2184 — [ restartedMain] l.e.j.JdbcExecutor : SELECT LOCKED FROM PUBLIC.ACT_ADM_DATABASECHANGELOGLOCK WHERE ID=1
2019-03-13 09:38:53.138 INFO 2184 — [ restartedMain] l.l.StandardLockService : Waiting for changelog lock…
2019-03-13 09:39:03.138 INFO 2184 — [ restartedMain] l.e.j.JdbcExecutor : SELECT LOCKED FROM PUBLIC.ACT_ADM_DATABASECHANGELOGLOCK WHERE ID=1
2019-03-13 09:39:03.139 INFO 2184 — [ restartedMain] l.l.StandardLockService : Waiting for changelog lock…
2019-03-13 09:39:13.141 INFO 2184 — [ restartedMain] l.e.j.JdbcExecutor : SELECT LOCKED FROM PUBLIC.ACT_ADM_DATABASECHANGELOGLOCK WHERE ID=1
2019-03-13 09:39:13.141 INFO 2184 — [ restartedMain] l.l.StandardLockService : Waiting for changelog lock…
2019-03-13 09:39:23.143 INFO 2184 — [ restartedMain] l.e.j.JdbcExecutor : SELECT LOCKED FROM PUBLIC.ACT_ADM_DATABASECHANGELOGLOCK WHERE ID=1
2019-03-13 09:39:23.143 INFO 2184 — [ restartedMain] l.l.StandardLockService : Waiting for changelog lock…
2019-03-13 09:39:33.145 INFO 2184 — [ restartedMain] l.e.j.JdbcExecutor : SELECT LOCKED FROM PUBLIC.ACT_ADM_DATABASECHANGELOGLOCK WHERE ID=1
2019-03-13 09:39:33.145 INFO 2184 — [ restartedMain] l.l.StandardLockService : Waiting for changelog lock…
2019-03-13 09:39:43.147 INFO 2184 — [ restartedMain] l.e.j.JdbcExecutor : SELECT LOCKED FROM PUBLIC.ACT_ADM_DATABASECHANGELOGLOCK WHERE ID=1
2019-03-13 09:39:43.148 INFO 2184 — [ restartedMain] l.l.StandardLockService : Waiting for changelog lock…
2019-03-13 09:39:53.149 INFO 2184 — [ restartedMain] l.e.j.JdbcExecutor : SELECT LOCKED FROM PUBLIC.ACT_ADM_DATABASECHANGELOGLOCK WHERE ID=1
2019-03-13 09:39:53.151 INFO 2184 — [ restartedMain] l.l.StandardLockService : Waiting for changelog lock…
2019-03-13 09:40:03.151 INFO 2184 — [ restartedMain] l.e.j.JdbcExecutor : SELECT LOCKED FROM PUBLIC.ACT_ADM_DATABASECHANGELOGLOCK WHERE ID=1
2019-03-13 09:40:03.151 INFO 2184 — [ restartedMain] l.l.StandardLockService : Waiting for changelog lock…
2019-03-13 09:40:13.154 INFO 2184 — [ restartedMain] l.e.j.JdbcExecutor : SELECT LOCKED FROM PUBLIC.ACT_ADM_DATABASECHANGELOGLOCK WHERE ID=1
2019-03-13 09:40:13.156 INFO 2184 — [ restartedMain] l.l.StandardLockService : Waiting for changelog lock…
2019-03-13 09:40:23.158 INFO 2184 — [ restartedMain] l.e.j.JdbcExecutor : SELECT LOCKED FROM PUBLIC.ACT_ADM_DATABASECHANGELOGLOCK WHERE ID=1
2019-03-13 09:40:23.159 INFO 2184 — [ restartedMain] l.l.StandardLockService : Waiting for changelog lock…
2019-03-13 09:40:33.162 INFO 2184 — [ restartedMain] l.e.j.JdbcExecutor : SELECT LOCKED FROM PUBLIC.ACT_ADM_DATABASECHANGELOGLOCK WHERE ID=1
2019-03-13 09:40:33.163 INFO 2184 — [ restartedMain] l.l.StandardLockService : Waiting for changelog lock…
2019-03-13 09:40:43.164 INFO 2184 — [ restartedMain] l.e.j.JdbcExecutor : SELECT LOCKED FROM PUBLIC.ACT_ADM_DATABASECHANGELOGLOCK WHERE ID=1
2019-03-13 09:40:43.165 INFO 2184 — [ restartedMain] l.l.StandardLockService : Waiting for changelog lock…
2019-03-13 09:40:53.167 INFO 2184 — [ restartedMain] l.e.j.JdbcExecutor : SELECT LOCKED FROM PUBLIC.ACT_ADM_DATABASECHANGELOGLOCK WHERE ID=1
2019-03-13 09:40:53.168 INFO 2184 — [ restartedMain] l.l.StandardLockService : Waiting for changelog lock…
2019-03-13 09:41:03.170 INFO 2184 — [ restartedMain] l.e.j.JdbcExecutor : SELECT LOCKED FROM PUBLIC.ACT_ADM_DATABASECHANGELOGLOCK WHERE ID=1
2019-03-13 09:41:03.171 INFO 2184 — [ restartedMain] l.l.StandardLockService : Waiting for changelog lock…
2019-03-13 09:41:13.172 INFO 2184 — [ restartedMain] l.e.j.JdbcExecutor : SELECT LOCKED FROM PUBLIC.ACT_ADM_DATABASECHANGELOGLOCK WHERE ID=1
2019-03-13 09:41:13.174 INFO 2184 — [ restartedMain] l.l.StandardLockService : Waiting for changelog lock…
2019-03-13 09:41:23.175 INFO 2184 — [ restartedMain] l.e.j.JdbcExecutor : SELECT LOCKED FROM PUBLIC.ACT_ADM_DATABASECHANGELOGLOCK WHERE ID=1
2019-03-13 09:41:23.176 INFO 2184 — [ restartedMain] l.l.StandardLockService : Waiting for changelog lock…
2019-03-13 09:41:33.177 INFO 2184 — [ restartedMain] l.e.j.JdbcExecutor : SELECT LOCKED FROM PUBLIC.ACT_ADM_DATABASECHANGELOGLOCK WHERE ID=1
2019-03-13 09:41:33.179 INFO 2184 — [ restartedMain] l.l.StandardLockService : Waiting for changelog lock…
2019-03-13 09:41:43.180 INFO 2184 — [ restartedMain] l.e.j.JdbcExecutor : SELECT LOCKED FROM PUBLIC.ACT_ADM_DATABASECHANGELOGLOCK WHERE ID=1
2019-03-13 09:41:43.181 INFO 2184 — [ restartedMain] l.l.StandardLockService : Waiting for changelog lock…
2019-03-13 09:41:53.183 INFO 2184 — [ restartedMain] l.e.j.JdbcExecutor : SELECT LOCKED FROM PUBLIC.ACT_ADM_DATABASECHANGELOGLOCK WHERE ID=1
2019-03-13 09:41:53.184 INFO 2184 — [ restartedMain] l.l.StandardLockService : Waiting for changelog lock…
2019-03-13 09:42:03.185 INFO 2184 — [ restartedMain] l.e.j.JdbcExecutor : SELECT LOCKED FROM PUBLIC.ACT_ADM_DATABASECHANGELOGLOCK WHERE ID=1
2019-03-13 09:42:03.185 INFO 2184 — [ restartedMain] l.l.StandardLockService : Waiting for changelog lock…
2019-03-13 09:42:13.185 INFO 2184 — [ restartedMain] l.e.j.JdbcExecutor : SELECT LOCKED FROM PUBLIC.ACT_ADM_DATABASECHANGELOGLOCK WHERE ID=1
2019-03-13 09:42:13.185 INFO 2184 — [ restartedMain] l.l.StandardLockService : Waiting for changelog lock…
2019-03-13 09:42:23.188 INFO 2184 — [ restartedMain] l.e.j.JdbcExecutor : SELECT LOCKED FROM PUBLIC.ACT_ADM_DATABASECHANGELOGLOCK WHERE ID=1
2019-03-13 09:42:23.188 INFO 2184 — [ restartedMain] l.l.StandardLockService : Waiting for changelog lock…
2019-03-13 09:42:33.191 INFO 2184 — [ restartedMain] l.e.j.JdbcExecutor : SELECT LOCKED FROM PUBLIC.ACT_ADM_DATABASECHANGELOGLOCK WHERE ID=1
2019-03-13 09:42:33.192 INFO 2184 — [ restartedMain] l.l.StandardLockService : Waiting for changelog lock…
2019-03-13 09:42:43.192 INFO 2184 — [ restartedMain] l.e.j.JdbcExecutor : SELECT LOCKED FROM PUBLIC.ACT_ADM_DATABASECHANGELOGLOCK WHERE ID=1
2019-03-13 09:42:43.193 INFO 2184 — [ restartedMain] l.l.StandardLockService : Waiting for changelog lock…
2019-03-13 09:42:53.194 INFO 2184 — [ restartedMain] l.e.j.JdbcExecutor : SELECT LOCKED FROM PUBLIC.ACT_ADM_DATABASECHANGELOGLOCK WHERE ID=1
2019-03-13 09:42:53.195 INFO 2184 — [ restartedMain] l.l.StandardLockService : Waiting for changelog lock…
2019-03-13 09:43:03.197 INFO 2184 — [ restartedMain] l.e.j.JdbcExecutor : SELECT LOCKED FROM PUBLIC.ACT_ADM_DATABASECHANGELOGLOCK WHERE ID=1
2019-03-13 09:43:03.199 INFO 2184 — [ restartedMain] l.l.StandardLockService : Waiting for changelog lock…
2019-03-13 09:43:13.200 INFO 2184 — [ restartedMain] l.e.j.JdbcExecutor : SELECT ID,LOCKED,LOCKGRANTED,LOCKEDBY FROM PUBLIC.ACT_ADM_DATABASECHANGELOGLOCK WHERE ID=1
2019-03-13 09:43:13.234 WARN 2184 — [ restartedMain] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘liquibase’ defined in class path resource [org/flowable/ui/admin/conf/DatabaseConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [liquibase.Liquibase]: Factory method ‘liquibase’ threw exception; nested exception is org.flowable.ui.common.service.exception.InternalServerErrorException: Error creating liquibase database
2019-03-13 09:43:13.294 INFO 2184 — [ restartedMain] c.z.h.HikariDataSource : HikariPool-1 - Shutdown initiated…
2019-03-13 09:43:13.298 INFO 2184 — [ restartedMain] c.z.h.HikariDataSource : HikariPool-1 - Shutdown completed.
2019-03-13 09:43:13.302 INFO 2184 — [ restartedMain] o.a.c.c.StandardService : Stopping service [Tomcat]
2019-03-13 09:43:13.336 INFO 2184 — [ restartedMain] ConditionEvaluationReportLoggingListener :

Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled.
2019-03-13 09:43:13.359 ERROR 2184 — [ restartedMain] o.s.b.SpringApplication : Application run failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘liquibase’ defined in class path resource [org/flowable/ui/admin/conf/DatabaseConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [liquibase.Liquibase]: Factory method ‘liquibase’ threw exception; nested exception is org.flowable.ui.common.service.exception.InternalServerErrorException: Error creating liquibase database
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:591) ~[spring-beans-5.0.12.RELEASE.jar:5.0.12.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1246) ~[spring-beans-5.0.12.RELEASE.jar:5.0.12.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1096) ~[spring-beans-5.0.12.RELEASE.jar:5.0.12.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:535) ~[spring-beans-5.0.12.RELEASE.jar:5.0.12.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:495) ~[spring-beans-5.0.12.RELEASE.jar:5.0.12.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317) ~[spring-beans-5.0.12.RELEASE.jar:5.0.12.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans-5.0.12.RELEASE.jar:5.0.12.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315) ~[spring-beans-5.0.12.RELEASE.jar:5.0.12.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans-5.0.12.RELEASE.jar:5.0.12.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:759) ~[spring-beans-5.0.12.RELEASE.jar:5.0.12.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867) ~[spring-context-5.0.12.RELEASE.jar:5.0.12.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:548) ~[spring-context-5.0.12.RELEASE.jar:5.0.12.RELEASE]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:142) ~[spring-boot-2.0.8.RELEASE.jar:2.0.8.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:754) [spring-boot-2.0.8.RELEASE.jar:2.0.8.RELEASE]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:386) [spring-boot-2.0.8.RELEASE.jar:2.0.8.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:307) [spring-boot-2.0.8.RELEASE.jar:2.0.8.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1242) [spring-boot-2.0.8.RELEASE.jar:2.0.8.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1230) [spring-boot-2.0.8.RELEASE.jar:2.0.8.RELEASE]
at org.flowable.ui.admin.application.FlowableAdminApplication.main(FlowableAdminApplication.java:33) [classes/:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_201]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_201]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_201]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_201]
at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) [spring-boot-devtools-2.0.8.RELEASE.jar:2.0.8.RELEASE]
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [liquibase.Liquibase]: Factory method ‘liquibase’ threw exception; nested exception is org.flowable.ui.common.service.exception.InternalServerErrorException: Error creating liquibase database
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185) ~[spring-beans-5.0.12.RELEASE.jar:5.0.12.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:583) ~[spring-beans-5.0.12.RELEASE.jar:5.0.12.RELEASE]
… 23 more
Caused by: org.flowable.ui.common.service.exception.InternalServerErrorException: Error creating liquibase database
at org.flowable.ui.admin.conf.DatabaseConfiguration.liquibase(DatabaseConfiguration.java:95) ~[classes/:?]
at org.flowable.ui.admin.conf.DatabaseConfiguration$$EnhancerBySpringCGLIB$$3e24da1e.CGLIB$liquibase$0() ~[classes/:?]
at org.flowable.ui.admin.conf.DatabaseConfiguration$$EnhancerBySpringCGLIB$$3e24da1e$$FastClassBySpringCGLIB$$9778a290.invoke() ~[classes/:?]
at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228) ~[spring-core-5.0.12.RELEASE.jar:5.0.12.RELEASE]
at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:365) ~[spring-context-5.0.12.RELEASE.jar:5.0.12.RELEASE]
at org.flowable.ui.admin.conf.DatabaseConfiguration$$EnhancerBySpringCGLIB$$3e24da1e.liquibase() ~[classes/:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_201]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_201]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_201]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_201]
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ~[spring-beans-5.0.12.RELEASE.jar:5.0.12.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:583) ~[spring-beans-5.0.12.RELEASE.jar:5.0.12.RELEASE]
… 23 more
Caused by: liquibase.exception.LockException: Could not acquire change log lock. Currently locked by DESKTOP-06RRTSN (10.0.75.1) since 07.03.2019 11:15
at liquibase.lockservice.StandardLockService.waitForLock(StandardLockService.java:230) ~[liquibase-core-3.6.3.jar:?]
at liquibase.Liquibase.update(Liquibase.java:184) ~[liquibase-core-3.6.3.jar:?]
at liquibase.Liquibase.update(Liquibase.java:179) ~[liquibase-core-3.6.3.jar:?]
at liquibase.Liquibase.update(Liquibase.java:175) ~[liquibase-core-3.6.3.jar:?]
at liquibase.Liquibase.update(Liquibase.java:168) ~[liquibase-core-3.6.3.jar:?]
at org.flowable.ui.admin.conf.DatabaseConfiguration.liquibase(DatabaseConfiguration.java:91) ~[classes/:?]
at org.flowable.ui.admin.conf.DatabaseConfiguration$$EnhancerBySpringCGLIB$$3e24da1e.CGLIB$liquibase$0() ~[classes/:?]
at org.flowable.ui.admin.conf.DatabaseConfiguration$$EnhancerBySpringCGLIB$$3e24da1e$$FastClassBySpringCGLIB$$9778a290.invoke() ~[classes/:?]
at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228) ~[spring-core-5.0.12.RELEASE.jar:5.0.12.RELEASE]
at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:365) ~[spring-context-5.0.12.RELEASE.jar:5.0.12.RELEASE]
at org.flowable.ui.admin.conf.DatabaseConfiguration$$EnhancerBySpringCGLIB$$3e24da1e.liquibase() ~[classes/:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_201]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_201]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_201]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_201]
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ~[spring-beans-5.0.12.RELEASE.jar:5.0.12.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:583) ~[spring-beans-5.0.12.RELEASE.jar:5.0.12.RELEASE]


#10

That is the error. This means that the the Liquibase DB lock table for the Admin tables is locked. Have a look at this StackOverflow for how to unlock it. The name of the table is ACT_ADM_ DATABASECHANGELOGLOCK. You can also drop the entire DB and start from scratch.

Cheers,
Filip