Description
In what version(s) of Spring Integration are you seeing this issue?
5.5.14
Describe the bug
Unable to start my spring-boot service when using spring-integration-jdbc
and HANA DB
. It looks like that it is not possible to determinate the database type when I am injecting my datasource
(which uses HANA DB
) to the org.springframework.integration.jdbc.lock.LockRepository
. This exception is raised:
2023-02-06 14:13:28,361 WARN [restartedMain] - [org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext] [] - Exception encountered during context initialization - cancelling refresh attempt:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'integrationDataSourceInitializer' defined in class path resource [org/springframework/boot/autoconfigure/integration/IntegrationAutoConfiguration$IntegrationJdbcConfiguration.class]:
Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException:
Failed to instantiate [org.springframework.boot.autoconfigure.integration.IntegrationDataSourceScriptDatabaseInitializer]: Factory method 'integrationDataSourceInitializer' threw exception; nested exception is java.lang.IllegalStateException: Unable to detect database type
I am using Hikari datasource, Hibernate and spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.HANAColumnStoreDialect
.
Expected behavior
I would expect that spring-integration-jdbc
is compatible with HANA DB, but I might have wrongly assumed this. Does spring-integration-jdbc
supports HANA DB
? In that case this bug issue could be flagged rather as a feature request.