java.sql.SQLException: Cannot create PoolableConnectionFactory (Unknown database 'connect_db_0')

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

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Stack Overflow by Rasputin Jones
, 1 year ago
Cannot create PoolableConnectionFactory (Unknown database 'connect_db_0')
via Google Groups by Gopalakrishnan S, 9 months ago
Cannot create PoolableConnectionFactory (Prot ocol error. Session setup failed.)
via GitHub by ligadatahari
, 1 year ago
Cannot create PoolableConnectionFactory (Database may be already in use: null. Possible solutions: close all other connection(s); use the server mode [90020-192])
via Stack Overflow by user2683906
, 1 year ago
Cannot create PoolableConnectionFactory (I/O-Fehler: The Network Adapter could not establish the connection)
via GitHub by ligadatahari
, 1 year ago
Cannot create PoolableConnectionFactory (Connection is broken: "javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?: localhost:9100" [90067-192])
via GitHub by xuyang198711
, 2 years ago
Cannot create PoolableConnectionFactory (isValid() returned false)
java.sql.SQLException: Cannot create PoolableConnectionFactory (Unknown database 'connect_db_0')
at org.apache.commons.dbcp2.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:2294)
at org.apache.commons.dbcp2.BasicDataSource.createDataSource(BasicDataSource.java:2039)
at com.memsql.spark.connector.MemSQLConnectionPool$.connect(MemSQLConnectionPool.scala:34)
at com.memsql.spark.connector.rdd.MemSQLRDD$$anon$1.(MemSQLRDD.scala:241)
at com.memsql.spark.connector.rdd.MemSQLRDD.compute(MemSQLRDD.scala:231)
at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:300)
at org.apache.spark.rdd.RDD.iterator(RDD.scala:264)
at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:300)
at org.apache.spark.rdd.RDD.iterator(RDD.scala:264)
at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:300)
at org.apache.spark.rdd.RDD.iterator(RDD.scala:264)
at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:300)
at org.apache.spark.rdd.RDD.iterator(RDD.scala:264)
at org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:66)
at org.apache.spark.scheduler.Task.run(Task.scala:88)
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)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 month ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.