heavydb icon indicating copy to clipboard operation
heavydb copied to clipboard

JDBC driver has a wrong value in META-INF/services/java.sql.Driver

Open cdessanti opened this issue 8 years ago • 3 comments

The jar containing the mapd JDBC driver has a wrong value in META-INF/services/java.sql.Driver leading to the exception "java.sql.SQLException: No suitable driver found" on third-party products that rely upon that value to register the class of the driver.

The actual value for the file is org.postgresql.Driver

cdessanti avatar Sep 18 '18 13:09 cdessanti

@cdessanti I think you may be looking at or using an older driver. Please confirm you are looking at the new jdbc driver labelled something like

mapdjdbc-4.x.x-SNAPSHOT.jar

dwayneberry avatar Sep 18 '18 22:09 dwayneberry

The older drivers labeled mapdjdbc-1.0 were fine; I noticed this problem when I tried to modify the driver compiling a recent snapshot of mapd-core. After that, I checked the jdbc driver on 4.1, and 4.1.1 release of mapd-ce and the 4.1.1 release has the Postgres class into the file

Ottieni Outlook per Androidhttps://aka.ms/ghei36

Da: Michael Thomson Inviato: mercoledì 19 settembre, 00:41 Oggetto: Re: [mapd/mapd-core] JDBC driver has a wrong value in META-INF/services/java.sql.Driver (#267) A: mapd/mapd-core Cc: Candido Dessanti, Mention

@https://github.com/cdessanticdessantihttps://github.com/cdessanti I think you may be looking at or using an older driver. Please confirm you are looking at the new JDBC driver labeled something like mapdjdbc-4.x.x-SNAPSHT.jar — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/mapd/mapd-core/issues/267#issuecomment-422582156, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AdZQl8ayJA5SYHWNgq9s1IfRi00KInB0ks5ucXaRgaJpZM4Wt9m6.

cdessanti avatar Sep 19 '18 07:09 cdessanti

Marking this resolved. The original postgres reference is incorrect and corrected.

randyzwitch avatar Nov 29 '18 15:11 randyzwitch