You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when i use C3p0PoolingConnectionProvider it default use ComboPooledDataSource 。
at StdSchedulerFactory line 1392 private void populateProviderWithExtraProps(PoolingConnectionProvider cp, Properties props) throws Exception { Properties copyProps = new Properties(); copyProps.putAll(props); // Remove all the default properties first (they don't always match to setter name, and they are already // been set!) copyProps.remove(PoolingConnectionProvider.DB_DRIVER); copyProps.remove(PoolingConnectionProvider.DB_URL); copyProps.remove(PoolingConnectionProvider.DB_USER); copyProps.remove(PoolingConnectionProvider.DB_PASSWORD); copyProps.remove(PoolingConnectionProvider.DB_MAX_CONNECTIONS); copyProps.remove(PoolingConnectionProvider.DB_VALIDATION_QUERY); props.remove(PoolingConnectionProvider.POOLING_PROVIDER); setBeanProps(cp.getDataSource(), copyProps); }
"copyProps" not remove properties "validateOnCheckout",but ComboPooledDataSource don't have this properties ,lead to Exception Caused by: java.lang.NoSuchMethodException: No setter for property 'validateOnCheckout' at org.quartz.impl.StdSchedulerFactory.setBeanProps(StdSchedulerFactory.java:1447) ~[quartz-2.3.0.jar:na] at org.quartz.impl.StdSchedulerFactory.populateProviderWithExtraProps(StdSchedulerFactory.java:1405) ~[quartz-2.3.0.jar:na] at org.quartz.impl.StdSchedulerFactory.instantiate(StdSchedulerFactory.java:1040) ~[quartz-2.3.0.jar:na] ... 74 common frames omitted
Hm... yeah, I think this might be a bug. I will look into it little more next time.
For now, can you change "org.quartz.dataSource.freudDS.validateOnCheckout" to "org.quartz.dataSource.freudDS.testConnectionOnCheckin" and see if it works for you?
Hm... yeah, I think this might be a bug. I will look into it little more next time.
For now, can you change "org.quartz.dataSource.freudDS.validateOnCheckout" to "org.quartz.dataSource.freudDS.testConnectionOnCheckin" and see if it works for you?
Activity
zemian commentedon Dec 7, 2018
What's your quartz.properties like on configuring these datasource?
zemian commentedon Dec 28, 2018
Close as not an issue
zhuangjiaju commentedon Dec 28, 2018
I'm sorry that I didn't see your reply recently.
My quartz.properties is as follows:
when i use
there will be
zhuangjiaju commentedon Dec 28, 2018
I'm sorry that I didn't see your reply recently.
Please help to look at the problem again/
zemian commentedon Dec 28, 2018
Hm... yeah, I think this might be a bug. I will look into it little more next time.
For now, can you change "org.quartz.dataSource.freudDS.validateOnCheckout" to "org.quartz.dataSource.freudDS.testConnectionOnCheckin" and see if it works for you?
zhuangjiaju commentedon Dec 28, 2018
I use
it is working .
I want to contribute to open source code , and i will fix this issue and pull requests in a week . Please give me the opportunity ,Thank you!
zemian commentedon Dec 28, 2018
Hi @fish7790714 That's great to hear. We welcome any contribution. And thanks for the PR!!!
zemian commentedon Dec 29, 2018
I have accepted the PR against the master branch, but I still need to back port to other active older branches. Will close this after those are done.
zemian commentedon Dec 29, 2018
Resolved ece2753