No driver was found which supports the connection string

Caused by: com.complexible.stardog.StardogException: No driver was found which supports the connection string: 'embed://DBName', please double-check the URL and verify the protocol is correct and try again.

	at com.complexible.stardog.api.DriverManager.getDriver(DriverManager.java:68)
	at com.complexible.stardog.api.DriverManager.getConnection(DriverManager.java:81)

This is the error i get when i try to access DB in my stardog instance. Also, I started like this:

 try (Connection aConn = ConnectionConfiguration
                        .to(ConfigProperty.sdbname)
                        .credentials(ConfigProperty.suser, ConfigProperty.spassword)
                        .connect()) {

                    aConn.begin();

As i do not want to start a new instance of stardog but to use the one already running in the background. Am i missing something??
This code was working fine earlier.

Thank you!

Did you specify the hostname using the server() method? Also you can use at() if you have the hostname and database in a single URL.

Jess

Do you have any examples for the same where you can point me?

Check here: https://www.stardog.com/blog/a-stardog-app-in-5-easy-steps/#4-import-data

1 Like

Thank you!! It worked!!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.