DataSourceBuilder throws an UnsupportedDataSourcePropertyException when trying to derive a DataSource from an unknown DataSource type #27295
Labels
status: reserved-for-conference-event
status: superseded
An issue that has been superseded by another
type: bug
A general bug
In our application (Spring Boot 2.5.2) we are trying to use
com.amazonaws.xray.sql.TracingDataSource
as the primaryDataSource
; it's essentially a wrapper around a regular data source to enable AWS X-Ray metrics.During startup, the application tries to create a derived
DataSource
from it (DataSourceBuilder.derivedFrom(dataSource)
, the Liquibase starter is doing this).The
TracingDataSource
is not recognized as a source forMappedDataSourceProperties
, so we end up with aReflectionDataSourceProperties
, trying to to find the getters for the properties by reflection. However, it is erroneously looking for getter methods with oneString
parameter(DataSourceProperty:293-294)
. Even if such getters were to exist, they are later on (ReflectionDataSourceProperties:553
) called with no parameters, resulting in anIllegalArgumentException
anyway.Example configuration to trigger the issue:
The text was updated successfully, but these errors were encountered: