Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

  1. ,

    You should check if you are using the right driver and url. My problem was that I was using com.mysql.jdbc.Driver but I should had to use org.mariadb.jdbc.Driver

  2. ,

    Make sure that the driver is available on the classpath. The database driver is null when slick tries to create the connection.

Solutions on the web

via Stack Overflow by Randomize
, 1 year ago
via GitHub by LirazRom
, 2 years ago
via Stack Overflow by Yadu Krishnan
, 2 years ago
java.lang.NullPointerException at slick.jdbc.DriverDataSource.getConnection(DriverDataSource.scala:101) at slick.jdbc.DataSourceJdbcDataSource.createConnection(JdbcDataSource.scala:72) at slick.jdbc.JdbcBackend$BaseSession.<init>(JdbcBackend.scala:439) at slick.jdbc.JdbcBackend$DatabaseDef.createSession(JdbcBackend.scala:47) at slick.jdbc.JdbcBackend$DatabaseDef.createSession(JdbcBackend.scala:38) at slick.basic.BasicBackend$DatabaseDef$class.acquireSession(BasicBackend.scala:218) at slick.jdbc.JdbcBackend$DatabaseDef.acquireSession(JdbcBackend.scala:38) at slick.basic.BasicBackend$DatabaseDef$$anon$2.run(BasicBackend.scala:239) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)