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

Jdbc internal error #9

Open
SteveLuo8 opened this issue Nov 24, 2017 · 4 comments
Open

Jdbc internal error #9

SteveLuo8 opened this issue Nov 24, 2017 · 4 comments
Labels

Comments

@SteveLuo8
Copy link

when using with dbeaver 4.2.4 with jdbc driver of 0.6.4, got Query execution failed

Internal jdbc driver error
read timeout must be >= 0
read timeout must be >= 0

what am i missing?

Thanks

@zhicwu
Copy link
Owner

zhicwu commented Nov 25, 2017

Do you have stack trace? Is the same query working in cqlsh?

@reith
Copy link

reith commented Jan 17, 2018

I faced same problem, stacktrace:

org.jkiss.dbeaver.model.exec.DBCException: SQL Error: Internal jdbc driver error
	at org.jkiss.dbeaver.model.impl.jdbc.exec.JDBCStatementImpl.executeStatement(JDBCStatementImpl.java:141)
	at org.jkiss.dbeaver.model.impl.jdbc.struct.JDBCTable.readData(JDBCTable.java:181)
	at org.jkiss.dbeaver.ui.controls.resultset.ResultSetJobDataRead.run(ResultSetJobDataRead.java:92)
	at org.jkiss.dbeaver.model.runtime.AbstractJob.run(AbstractJob.java:95)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)
Caused by: java.sql.SQLException: Internal jdbc driver error
	at org.jkiss.dbeaver.model.impl.jdbc.exec.JDBCStatementImpl.handleExecuteError(JDBCStatementImpl.java:313)
	at org.jkiss.dbeaver.model.impl.jdbc.exec.JDBCStatementImpl.execute(JDBCStatementImpl.java:347)
	at org.jkiss.dbeaver.model.impl.jdbc.exec.JDBCStatementImpl.executeStatement(JDBCStatementImpl.java:138)
	... 4 more
Caused by: java.lang.IllegalArgumentException: read timeout must be >= 0
	at com.github.cassandra.jdbc.internal.google.common.base.Preconditions.checkArgument(Preconditions.java:122)
	at com.github.cassandra.jdbc.internal.datastax.driver.core.Statement.setReadTimeoutMillis(Statement.java:340)
	at com.github.cassandra.jdbc.provider.datastax.CassandraStatement.configureStatement(CassandraStatement.java:80)
	at com.github.cassandra.jdbc.provider.datastax.CassandraStatement.executeCql(CassandraStatement.java:122)
	at com.github.cassandra.jdbc.provider.datastax.CassandraStatement.execute(CassandraStatement.java:253)
	at org.jkiss.dbeaver.model.impl.jdbc.exec.JDBCStatementImpl.execute(JDBCStatementImpl.java:345)
	... 5 more
!SUBENTRY 1 org.jkiss.dbeaver.model 4 0 

@reith
Copy link

reith commented Jan 17, 2018

setting read_timeout by comment in cql shell makes query succeed

@zhicwu
Copy link
Owner

zhicwu commented Jan 17, 2018

Thanks for the details @reith. I’ll try to fix it in the coming weekend.

There’s also an issue when converting read timeout from seconds to milliseconds, which should be fixed too.

@zhicwu zhicwu added the bug label Jan 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants