Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quartz Fails When MYSQL emulateLocators=true Is Enabled #1309

Open
atkawa7 opened this issue Feb 14, 2025 · 0 comments
Open

Quartz Fails When MYSQL emulateLocators=true Is Enabled #1309

atkawa7 opened this issue Feb 14, 2025 · 0 comments

Comments

@atkawa7
Copy link

atkawa7 commented Feb 14, 2025

When emulateLocators=true is enable via MYSQL JDBC API all calls to getObjectFromBlob fail because quartz column do not currently support aliasing.

As a result you get errors such as

org.quartz.JobPersistenceException: Couldn't acquire next trigger: Couldn't retrieve trigger: Unknown column '' in 'field list'
	at org.quartz.impl.jdbcjobstore.JobStoreSupport.acquireNextTrigger(JobStoreSupport.java:2818) ~[quartz-2.5.0.jar:2.5.0]
	at org.quartz.impl.jdbcjobstore.JobStoreSupport.lambda$acquireNextTriggers$13(JobStoreSupport.java:2703) ~[quartz-2.5.0.jar:2.5.0]
	at org.quartz.impl.jdbcjobstore.JobStoreSupport.executeInNonManagedTXLock(JobStoreSupport.java:3736) ~[quartz-2.5.0.jar:2.5.0]
	at org.quartz.impl.jdbcjobstore.JobStoreSupport.acquireNextTriggers(JobStoreSupport.java:2702) ~[quartz-2.5.0.jar:2.5.0]
	at org.quartz.core.QuartzSchedulerThread.run(QuartzSchedulerThread.java:294) ~[quartz-2.5.0.jar:2.5.0]
Caused by: org.quartz.JobPersistenceException: Couldn't retrieve trigger: Unknown column '' in 'field list'
	at org.quartz.impl.jdbcjobstore.JobStoreSupport.retrieveTrigger(JobStoreSupport.java:1522) ~[quartz-2.5.0.jar:2.5.0]
	at org.quartz.impl.jdbcjobstore.JobStoreSupport.acquireNextTrigger(JobStoreSupport.java:2748) ~[quartz-2.5.0.jar:2.5.0]
	... 4 common frames omitted
Caused by: java.sql.SQLSyntaxErrorException: Unknown column '' in 'field list'
	at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:112) ~[mysql-connector-j-9.2.0.jar:9.2.0]
	at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:114) ~[mysql-connector-j-9.2.0.jar:9.2.0]
	at com.mysql.cj.jdbc.ClientPreparedStatement.executeInternal(ClientPreparedStatement.java:990) ~[mysql-connector-j-9.2.0.jar:9.2.0]
	at com.mysql.cj.jdbc.ClientPreparedStatement.executeQuery(ClientPreparedStatement.java:1058) ~[mysql-connector-j-9.2.0.jar:9.2.0]
	at com.mysql.cj.jdbc.BlobFromLocator.length(BlobFromLocator.java:286) ~[mysql-connector-j-9.2.0.jar:9.2.0]
	at org.quartz.impl.jdbcjobstore.StdJDBCDelegate.getObjectFromBlob(StdJDBCDelegate.java:3154) ~[quartz-2.5.0.jar:2.5.0]
	at org.quartz.impl.jdbcjobstore.StdJDBCDelegate.selectTrigger(StdJDBCDelegate.java:1761) ~[quartz-2.5.0.jar:2.5.0]
	at org.quartz.impl.jdbcjobstore.JobStoreSupport.retrieveTrigger(JobStoreSupport.java:1519) ~[quartz-2.5.0.jar:2.5.0]
	... 5 common frames omitted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant