Closed romandogadin closed 3 years ago
@romandogadin can you just try to call the apoc.load.jdbc
with the proper connection string and report back?
Hi @conker84 , thank you for your reply.
Here is what I get when I try to connect:
Failed to invoke procedure apoc.load.jdbc
: Caused by: java.sql.SQLException: No suitable driver found for jdbc:sqlserver://XXXX
@conker84 can you please use this version? https://github.com/neo4j-contrib/neo4j-apoc-procedures/releases/tag/4.1.0.4
@conker84 , this is the version I have been using all this time. I removed the apoc-4.3.0 file from the plugin directory you are seeing on the screenshot to avoid confusion.
mssql-jdbc-8.4.1.jre11.jar.zip
Can you please try with the jar above?
Please make sure to restart your database once you unzipped the file into the plugins
directory
@conker84 I am getting the same error after I uploaded the jar in to the plugins directory. I did restart the database and the desktop prior to executing the command.
Failed to invoke procedure apoc.load.driver
: Caused by: java.lang.RuntimeException: Could not load driver class com.microsoft.sqlserver.jdbc.SQLServerDriver com.microsoft.sqlserver.jdbc.SQLServerDriver
We successfully tried in both Mac and Windows env, so it's something related to your classpath. What is your Neo4j Desktop version?
Thanks for looking into it. My desktop version is 1.4.1. The OS is Win10. Is there anything particular I can do to troubleshoot the classpath issue. Should I enable any logs to get more details? Even if I delete everything from the plugins directory and try and execute the command I get the same error message. I was also able to install the APOC plugin without having the apoc library in the plugins dir. Is it possible it is pointed at another directory? Thanks
please try to create a new database (and from the database stopped):
apoc.load.driver
callHi @conker84 , I have tried following your steps and still no luck - got the same error (DB v4.1.3; APOC 4.1.0.6). I have also tried creating a new db using the latest version 4.2.3 and APOC 4.2.0.1 - same error. It asks me to fix conflicts when I first start the db (attaching the screenshot).
I think that you put the driver under a wrong directory because there is no APOC inside it. In order to be sure that you are inside the correct dir please look at the following image an click in this order:
This will open the correct plugin
directory and in there put the MSSQL jar, then restart the database
@conker84 that was it! I had a feeling I wasn't using the right plugin directory. Thank you so much.
Guidelines
Please note that GitHub issues are only meant for bug reports/feature requests. If you have questions on how to use APOC, please ask on the Neo4j Discussion Forum instead of creating an issue here.
Expected Behavior (Mandatory)
Expecting call apoc.load.driver("com.microsoft.sqlserver.jdbc.SQLServerDriver") to load the MSSQL driver with no errors
Actual Behavior (Mandatory)
Getting the error: Failed to invoke procedure
apoc.load.driver
: Caused by: java.lang.RuntimeException: Could not load driver class com.microsoft.sqlserver.jdbc.SQLServerDriver com.microsoft.sqlserver.jdbc.SQLServerDriverHow to Reproduce the Problem
Run: call apoc.load.driver("com.microsoft.sqlserver.jdbc.SQLServerDriver")
Simple Dataset (where it's possibile)
Steps (Mandatory)
Screenshots (where it's possibile)
Specifications (Mandatory)
Neo4j DBMS: 4.1.3 Java: 11.0.9 Java SE 18.9
Versions