Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error during datasource creation #12

Open
denis-markushin opened this issue Oct 31, 2019 · 1 comment
Open

Error during datasource creation #12

denis-markushin opened this issue Oct 31, 2019 · 1 comment

Comments

@denis-markushin
Copy link

I faced the issue during an application starting
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'healthIndicatorRegistry' defined in class path resource [org/springframework/boot/actuate/autoconfigure/health/HealthIndicatorAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.actuate.health.HealthIndicatorRegistry]: Factory method 'healthIndicatorRegistry' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dbHealthIndicator' defined in class path resource [org/springframework/boot/actuate/autoconfigure/jdbc/DataSourceHealthIndicatorAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.actuate.health.HealthIndicator]: Factory method 'dbHealthIndicator' threw exception; nested exception is java.lang.ClassCastException: net.sf.log4jdbc.sql.jdbcapi.DataSourceSpy cannot be cast to com.zaxxer.hikari.HikariConfig at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:627) ~[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE]

The lib version:

com.integralblue
log4jdbc-spring-boot-starter
2.0.0

Spring Boot version: <spring.boot.version>2.1.8.RELEASE</spring.boot.version>

I tried to change version to 1.0.2 but unsuccessfully.

Without the dependency the application is started. Please, help.

@ibrahimgunes
Copy link

I have same issue too. any suggestion?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants