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

No suitable driver found error during the loading class #22

Open
deveshdashora opened this issue May 8, 2020 · 1 comment
Open

No suitable driver found error during the loading class #22

deveshdashora opened this issue May 8, 2020 · 1 comment

Comments

@deveshdashora
Copy link

Hi,

I am developing a simple JDBC program to use this as JDBC driver and I am facing below issue:

I am able connect to ksqlDB when I am loading the driver using the code snippet below.
java.sql.DriverManager.registerDriver(new com.github.mmolimar.ksql.jdbc.KsqlDriver)

But while using the snippet below, it is providing error as "No suitable driver found for jdbc:ksql://xxx.com:8088/".

Class.forName("com.github.mmolimar.ksql.jdbc.KsqlDriver")
connection = DriverManager.getConnection("jdbc:ksql://xxx:8088");

Also when I am trying to use the driver in Kafka Connect via JDBC connector (from another Kafka cluster to ksqlDB), then there also facing the same issue.

It will be great help to have a solution for this issue.

Regards!
Devesh

@mmolimar
Copy link
Owner

mmolimar commented May 8, 2020

Hi.
The classpath is properly set with the driver and its dependencies? Which JDK are you using?

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