Spring-boot: Quartz is failing with JDBC but without Liquibase

Created on 6 Sep 2019  路  4Comments  路  Source: spring-projects/spring-boot

Since https://github.com/spring-projects/spring-boot/pull/17539 (released in 2.1.8), it seems org.springframework.boot.autoconfigure.quartz.QuartzAutoConfiguration uses @ConditionalOnBean(SpringLiquibase.class).

Since I don't use Liquibase, and don't have it on classpath, my application won't start, with:

Error creating bean with name 'org.springframework.boot.autoconfigure.quartz.QuartzAutoConfiguration$JdbcStoreTypeConfiguration$QuartzSchedulerDependencyConfiguration': Unexpected exception during bean creation; nested exception is java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy.

Some later commit removed the similar reference to Flyway, but I suspect Liquibase was forgotten.
With Flyway, the code references FlywayMigrationInitializer, included in spring-boot-autoconfigure.

regression

Most helpful comment

Sorry for the inconvenience, @anderius, and thank you for the report. We'll fix this in 2.1.9. In the meantime you can either drop back to 2.1.7 or, if you'd like to stick with 2.1.8, you could add a dependency on Liquibase and disable its auto-configuration.

All 4 comments

Sorry for the inconvenience, @anderius, and thank you for the report. We'll fix this in 2.1.9. In the meantime you can either drop back to 2.1.7 or, if you'd like to stick with 2.1.8, you could add a dependency on Liquibase and disable its auto-configuration.

Sorry about that. @nosan even pointed it out as an issue but I thought it would be fine. 馃う鈥嶁檪

@wilkinsona, do you have an expected release date for 2.1.9?

It'll be a couple of days after Spring Framework 5.1.10. It's current scheduled for 24 September so I've set 26 September as the current date for 2.1.9. It may move a little, but I'd expect only by a day or two.

Was this page helpful?
0 / 5 - 0 ratings