No Suitable Driver Found Using Java 11 and Gatling JDBC

276 views
Skip to first unread message

adriant...@gmail.com

unread,
Apr 3, 2019, 3:59:35 PM4/3/19
to Gatling User Group
This worked in Java 8, but in 11 seeing the below error: 
 
java.sql.SQLException: No suitable driver found for jdbc:sqlserver://stgodssql01                                                                                                                                                                                              
        at java.sql.DriverManager.getConnection(DriverManager.java:689)                                                                                                                                                                                                        
        at java.sql.DriverManager.getConnection(DriverManager.java:247)                                                                                                                                                                                                        
        at io.gatling.jdbc.feeder.JdbcFeederSource$.apply(JdbcFeederSource.scala:30)                                                                                                                                                                                          
        at io.gatling.jdbc.Predef$.jdbcFeeder(Predef.scala:26)                                                                                                                                                                                                                
        at tests.sites.get_sites_baseline.(get_sites_baseline.scala:13)                                                                                                                                                                                                  


  POM:

<properties>
  <maven.compiler.source>11.2</maven.compiler.source>
  <maven.compiler.target>11.2</maven.compiler.target>
  <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  <gatling.version>3.0.3</gatling.version>
  <gatling-plugin.version>3.0.2</gatling-plugin.version>
</properties>

<dependency>
  <groupId>io.gatling</groupId>
  <artifactId>gatling-jdbc</artifactId>
  <version>3.0.3</version>
</dependency>

<dependency>
  <groupId>com.microsoft.sqlserver</groupId>
  <artifactId>mssql-jdbc</artifactId>
  <version>7.2.1.jre11</version>
</dependency>


 




Reply all
Reply to author
Forward
0 new messages