<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=shaug" rel="nofollow">Scott Haug</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-2850?redirect=false" rel="nofollow">SPR-2850</a></strong> and commented</p>
<p dir="auto">Similar to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398073279" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/7571" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/7571/hovercard" href="https://github.com/spring-projects/spring-framework/issues/7571">#7571</a>, a change in the Quartz 1.6 API has made some of the nice Spring-related features incompatible with that release. Namely, the changes related to the following issue have made SimpleTriggerBean and CronTriggerBean useless with Quartz 1.6</p>
<p dir="auto"><a href="http://jira.opensymphony.com/browse/QUARTZ-417" rel="nofollow">http://jira.opensymphony.com/browse/QUARTZ-417</a></p>
<p dir="auto">This change resulted in org.quartz.impl.jdbcjobstore.JobStoreSupport#storeTrigger using '==' rather than instanceof to determine if the trigger is a SimpleTrigger or CronTrigger. Ostensibly, this is  to allow custom triggers to extend either of these classes, but it prevents Spring from providing extended configuration functionality through subclassing. Personally, I think a better solution on Quartz's part would have been to introduce a marker interface like CustomTrigger, but I'm not sure how receptive the Quartz team will be to change this yet again to accomodate Spring code.</p>
<p dir="auto">My workaround has been to turn SimpleTriggerBean and CronTriggerBean into FactoryBeans. This is much clunkier, as it requires a lot more copying of data, but it gets the job done and is backwards-compatible.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.0 final</p>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398074401" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/7705" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/7705/hovercard" href="https://github.com/spring-projects/spring-framework/issues/7705">#7705</a>  Quartz 1.6/CronTriggerBean persistence problem (<em><strong>"is duplicated by"</strong></em>)</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398073196" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/7564" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/7564/hovercard" href="https://github.com/spring-projects/spring-framework/issues/7564">#7564</a> Spring Quartz support, persistent jobs.  (<em><strong>"is duplicated by"</strong></em>)</li>
</ul>
<p dir="auto">19 votes, 22 watchers</p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=cae29" rel="nofollow">Caesar Loh</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-4597?redirect=false" rel="nofollow">SPR-4597</a></strong> and commented</p>
<p dir="auto">In line 108 of NativeJdbcExtractorAdapter, it will return a null for connection.</p>
<p dir="auto">This occur when the datasource is being retrieved from another server rather than the holding server. The metadata.getConnection() will return a null, and obviously by comparing it with the original connection, it will be different. Thus, this method will return a null.</p>
<p dir="auto">How about doing a simple check for null before returning the connection? In any case, metadataConnection will simply return the same connection.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.0.6, 2.0.7, 2.0.8, 2.5.1, 2.5.2</p>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398086493" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/9273" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/9273/hovercard" href="https://github.com/spring-projects/spring-framework/issues/9273">#9273</a> NativeJdbcExtractorAdapter .getNativeConnectionConnection (<em><strong>"is duplicated by"</strong></em>)</li>
</ul>
<p dir="auto"><strong>Backported to:</strong> <a href="https://github.com/spring-projects/spring-framework/milestone/46?closed=1">2.0.9</a></p>