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
In DriverDataSource line 49 all properties are getting converted to strings:
for (var entry : properties.entrySet()) {
driverProperties.setProperty(entry.getKey().toString(), entry.getValue().toString());
}
This is an issue for the Snowflake driver because the only successful way to connect with an encrypted private key is to add the property "privateKey" with a value of an object of type java.security.PrivateKey. When that object gets converted to a string the connection fails with the following error:
Caused by: net.snowflake.client.jdbc.SnowflakeSQLLoggedException: Invalid parameter value type: java.lang.String, expected type: java.security.PrivateKey.
Changing the line to the following results in a successful connection:
for (var entry : properties.entrySet()) {
driverProperties.put(entry.getKey(), entry.getValue());
}
Can you advise? I hate to have to override the DriverDataSource class locally.
The text was updated successfully, but these errors were encountered:
In DriverDataSource line 49 all properties are getting converted to strings:
This is an issue for the Snowflake driver because the only successful way to connect with an encrypted private key is to add the property "privateKey" with a value of an object of type java.security.PrivateKey. When that object gets converted to a string the connection fails with the following error:
Caused by: net.snowflake.client.jdbc.SnowflakeSQLLoggedException: Invalid parameter value type: java.lang.String, expected type: java.security.PrivateKey.
Changing the line to the following results in a successful connection:
for (var entry : properties.entrySet()) {
driverProperties.put(entry.getKey(), entry.getValue());
}
Can you advise? I hate to have to override the DriverDataSource class locally.
The text was updated successfully, but these errors were encountered: