You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
spring-cloud-gcp-dependencies pom.xml should declare cloud-sql-connector-jdbc-sqlserver like it does with postgres-socket-factory and mysql-socket-factory-connector-j-8
#2871
Open
PaulKlumpp opened this issue
May 10, 2024
· 2 comments
Describe the bug
When we update spring-cloud-gcp-dependencies in our Maven pom.xml, we always need to check for the new version of cloud-sql-connector-jdbc-sqlserver as well, because they are interdependent with class names and methods.
When the last update of spring-cloud-gcp-dependencies to 4.10.2 came, cloud-sql-connector-jdbc-sqlserver prior to 1.18.0 did not work anymore because of missing classes/methods and vice versa.
Sample
Factory method 'criticalDataSource' threw exception with message: com/google/cloud/sql/core/InternalConnectorRegistry
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:171)
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:646)
... 43 common frames omitted
Caused by: java.lang.NoClassDefFoundError: com/google/cloud/sql/core/InternalConnectorRegistry
at com.google.cloud.sql.sqlserver.SocketFactory.
Proposed fix
Add to pom.xml of spring-cloud-gcp-dependencies:
Describe the bug
When we update spring-cloud-gcp-dependencies in our Maven pom.xml, we always need to check for the new version of cloud-sql-connector-jdbc-sqlserver as well, because they are interdependent with class names and methods.
When the last update of spring-cloud-gcp-dependencies to 4.10.2 came, cloud-sql-connector-jdbc-sqlserver prior to 1.18.0 did not work anymore because of missing classes/methods and vice versa.
Sample
Proposed fix
Add to pom.xml of spring-cloud-gcp-dependencies:
The text was updated successfully, but these errors were encountered: