| Products | Versions |
|---|---|
| TIBCO Data Virtualization | All supported versions |
JDBC connection to Spotfire Data Virtualization(SDV) fails for ROPC (Resource owner password credential) flow with error -
ERROR 2026-08-14 12:34:45.836 Py4JJavaError: An error occurred while calling o467.jdbc. : java.sql.SQLException: SDV driver connection property delegateOauth2FlowToServer must be set to true for the resource owner password credential OAuth2 flow to be applied by the SDV server. [security-1900336]
at cs.jdbc.driver.ClientChannelConnection.generateError(ClientChannelConnection.java:1115)
at cs.jdbc.driver.ClientChannelConnection.generateError(ClientChannelConnection.java:1096)
at cs.jdbc.driver.ClientChannelConnection.checkErrorResponse(ClientChannelConnection.java:1091)
at cs.jdbc.driver.ClientChannelConnection.invokeCommand(ClientChannelConnection.java:1057)
at cs.jdbc.driver.ClientChannelConnection.init(ClientChannelConnection.java:1168)
at cs.jdbc.driver.ClientChannelConnection.<init>(ClientChannelConnection.java:215)
at cs.jdbc.driver.CompositeConnection.getChannel(CompositeConnection.java:179)
at cs.jdbc.driver.DatabaseMetaDataImpl.<init>(DatabaseMetaDataImpl.java:49)
at cs.jdbc.driver.CompositeConnection.<init>(CompositeConnection.java:137)
at cs.jdbc.driver.CompositeDriver.connect(CompositeDriver.java:58)
at cs.jdbc.driver.CompositeDriver.connect(CompositeDriver.java:25)
at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:683)
at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:230)
...
All supported Operating Systems
This error can occur if any required JDBC flags are missing for the ROPC flow. Mainly the delegateOauth2flowToServer needs to be set to true.
Here is a sample JDBC URL string with the minimum required flags for a ROPC connection :
JDBC URL syntax -jdbc:compositesw:dbapi@<server name>:<port>?domain=<domain name>&dataSource=<TDV published datasource name>&delegateOauth2flowToServer=<true or false>&user=<username>&password=<password>For more information refer to the SDV Client Interface guide.
Kindly update the flag in the JDBC URL and test the connection again.
How to resolve JDBC connection to Spotfire Data Virtualization failing with error 'SDV driver connection property delegateOauth2FlowToServer must be set to true for the resource owner password credential OAuth2 flow to be applied by the SDV server'?
Feedback submitted!