{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaDB/JDBC.jl/issues/24","repository_url":"https://api.github.com/repos/JuliaDB/JDBC.jl","labels_url":"https://api.github.com/repos/JuliaDB/JDBC.jl/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/JuliaDB/JDBC.jl/issues/24/comments","events_url":"https://api.github.com/repos/JuliaDB/JDBC.jl/issues/24/events","html_url":"https://github.com/JuliaDB/JDBC.jl/issues/24","id":178683294,"number":24,"title":"No suitable driver error/ need help ","user":{"login":"McNees287","id":4084688,"avatar_url":"https://avatars.githubusercontent.com/u/4084688?v=3","gravatar_id":"","url":"https://api.github.com/users/McNees287","html_url":"https://github.com/McNees287","followers_url":"https://api.github.com/users/McNees287/followers","following_url":"https://api.github.com/users/McNees287/following{/other_user}","gists_url":"https://api.github.com/users/McNees287/gists{/gist_id}","starred_url":"https://api.github.com/users/McNees287/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/McNees287/subscriptions","organizations_url":"https://api.github.com/users/McNees287/orgs","repos_url":"https://api.github.com/users/McNees287/repos","events_url":"https://api.github.com/users/McNees287/events{/privacy}","received_events_url":"https://api.github.com/users/McNees287/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-09-22T18:19:52Z","updated_at":"2016-09-27T19:38:51Z","closed_at":null,"body":"I'm trying to connect to a Netezza DB. Here's my code:\r\n\r\n```\r\nusing JDBC\r\nJavaCall.addClassPath(\"/path/to/netezza/driver.jar\")\r\nJDBC.init()\r\nconn = DriverManager.getConnection(\"jdbc:netezza://database:port/table/user=user,password=password\")\r\n```\r\n\r\nreturns the following error:\r\n\r\n```\r\nLoadError: Error calling Java: java.sql.SQLException: No suitable driver found for jdbc:netezza://database:port/table/user=user,password=password\r\nwhile loading In[2], in expression starting on line 1\r\n```\r\nSince I've specified the driver above, i'm not sure why I would get this error?\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/JuliaDB/JDBC.jl/issues/comments/249974693","html_url":"https://github.com/JuliaDB/JDBC.jl/issues/24#issuecomment-249974693","issue_url":"https://api.github.com/repos/JuliaDB/JDBC.jl/issues/24","id":249974693,"user":{"login":"aviks","id":378918,"avatar_url":"https://avatars.githubusercontent.com/u/378918?v=3","gravatar_id":"","url":"https://api.github.com/users/aviks","html_url":"https://github.com/aviks","followers_url":"https://api.github.com/users/aviks/followers","following_url":"https://api.github.com/users/aviks/following{/other_user}","gists_url":"https://api.github.com/users/aviks/gists{/gist_id}","starred_url":"https://api.github.com/users/aviks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aviks/subscriptions","organizations_url":"https://api.github.com/users/aviks/orgs","repos_url":"https://api.github.com/users/aviks/repos","events_url":"https://api.github.com/users/aviks/events{/privacy}","received_events_url":"https://api.github.com/users/aviks/received_events","type":"User","site_admin":false},"created_at":"2016-09-27T19:38:51Z","updated_at":"2016-09-27T19:38:51Z","body":"Unfortunately, the netezza drivers don't seem to be freely downloadable, so I cannot check myself how  they are loaded. \r\n\r\nCan you try the following, after the `init()` call, and before the `getConnection` call\r\n\r\n```julia\r\njcall(@jimport(java.lang.Class), \"forName\", @jimport(java.lang.Class), (JString, ), \"org.netezza.Driver\")\r\n```\r\n\r\nAlternatively, as i said before,  the best way debug this is to create a small Java program that works in your environment.  I am confident this should work, we just need to figure out the idiosyncrasies of netazza and your environment. "}}
{"actor":{"display_login":"aviks"}}