org.quartz.JobPersistenceException: Couldn't determine job existence (DEFAULT.job1): No database selected [See nested exception: java.sql.SQLException: No database selected]

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

,
Expert tip

MySQL doesn't support some types of characters (such as emojis) with the utf8 encoding. You need to be on MySQL 5.5+ and force utf8mb4 (everywhere, client and server). You can do this sending the query "SET NAMES utf8mb4". Check this https://goo.gl/3E2qzg

Solutions on the web

via Terracotta by tparamas, 1 year ago
Couldn't determine job existence (DEFAULT.job1): No database selected [See nested exception: java.sql.SQLException: No database selected]
via terracotta.org by Unknown author, 2 years ago
Couldn't determine job existence (DEFAULT.job1): No database selected [See nested exception: java.sql.SQLException: No database selected]
org.quartz.JobPersistenceException: Couldn't determine job existence (DEFAULT.job1): No database selected [See nested exception: java.sql.SQLException: No database selected]
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1072)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3563)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3495)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1959)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2113)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2693)
at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2102)
at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:2261)
at org.quartz.impl.jdbcjobstore.StdJDBCDelegate.jobExists(StdJDBCDelegate.java:796)
at org.quartz.impl.jdbcjobstore.JobStoreSupport.jobExists(JobStoreSupport.java:1116)
at org.quartz.impl.jdbcjobstore.JobStoreSupport.storeJob(JobStoreSupport.java:1090)
at org.quartz.impl.jdbcjobstore.JobStoreSupport$2.execute(JobStoreSupport.java:1048)
at org.quartz.impl.jdbcjobstore.JobStoreSupport$45.execute(JobStoreSupport.java:3735)
at org.quartz.impl.jdbcjobstore.JobStoreSupport.executeInNonManagedTXLock(JobStoreSupport.java:3807)
at org.quartz.impl.jdbcjobstore.JobStoreTX.executeInLock(JobStoreTX.java:93)
at org.quartz.impl.jdbcjobstore.JobStoreSupport.executeInLock(JobStoreSupport.java:3731)
at org.quartz.impl.jdbcjobstore.JobStoreSupport.storeJobAndTrigger(JobStoreSupport.java:1044)
at org.quartz.core.QuartzScheduler.scheduleJob(QuartzScheduler.java:832)
at org.quartz.impl.StdScheduler.scheduleJob(StdScheduler.java:250)
at com.mcafee.quartz.test.CronSchedClient.scheduleCronJob(CronSchedClient.java:64)
at com.mcafee.quartz.test.CronSchedClient.main(CronSchedClient.java:140)

Users with the same issue

Once, 3 months ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
11 times, 11 months ago
1848 times, 19 hours ago

Write tip

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