Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JdbcIO informix connection problem #31111

Closed
gbuzic opened this issue Apr 26, 2024 · 3 comments
Closed

JdbcIO informix connection problem #31111

gbuzic opened this issue Apr 26, 2024 · 3 comments
Assignees

Comments

@gbuzic
Copy link

gbuzic commented Apr 26, 2024

Unable to read data from informix non-logged database due to connection error problem caused by setAutoCommit statement [https://www.ibm.com/docs/en/informix-servers/12.10?topic=SSGU8G_12.1.0/com.ibm.jdbc_pg.doc/ids_jdbc_non_logged_database.html].

Caused by: java.sql.SQLException: Transactions not supported
com.informix.util.IfxErrMsg.buildExceptionWithMessage(IfxErrMsg.java:421)
com.informix.util.IfxErrMsg.buildException(IfxErrMsg.java:396)
com.informix.util.IfxErrMsg.getSQLException(IfxErrMsg.java:378)
com.informix.jdbc.IfxSqliConnect.setAutoCommit(IfxSqliConnect.java:2185)
org.apache.commons.dbcp2.DelegatingConnection.setAutoCommit(DelegatingConnection.java:801)
org.apache.commons.dbcp2.DelegatingConnection.setAutoCommit(DelegatingConnection.java:801)
org.apache.beam.sdk.io.jdbc.JdbcIO$ReadFn.processElement(JdbcIO.java:1543)

@cwashcraft
Copy link
Contributor

cwashcraft commented Oct 21, 2024

I am getting this same error with Informix, caused by calling setAutoCommit() on a non-logged database

Caused by: java.sql.SQLException: Transactions not supported
	com.informix.util.IfxErrMsg.buildExceptionWithMessage(IfxErrMsg.java:424)
	com.informix.util.IfxErrMsg.buildException(IfxErrMsg.java:399)
	com.informix.util.IfxErrMsg.getSQLException(IfxErrMsg.java:381)
	com.informix.jdbc.IfxSqliConnect.setAutoCommit(IfxSqliConnect.java:2185)
	org.apache.commons.dbcp2.DelegatingConnection.setAutoCommit(DelegatingConnection.java:801)
	org.apache.commons.dbcp2.DelegatingConnection.setAutoCommit(DelegatingConnection.java:801)
	org.apache.beam.sdk.io.jdbc.JdbcIO$ReadFn.processElement(JdbcIO.java:1581)

Seems to have been brought by this fix: https://issues.apache.org/jira/browse/BEAM-12044

#14349

@cwashcraft
Copy link
Contributor

.take-issue

@cwashcraft
Copy link
Contributor

.close-issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants