<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=stevestorey" rel="nofollow">Steve Storey</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-8889?redirect=false" rel="nofollow">SPR-8889</a></strong> and commented</p>
<p dir="auto">Having put RC2 to work and testing out the fix for <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398115054" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13418" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13418/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13418">#13418</a> I now realise there's another problem. When the job I configured fires, I get the following exception2011-11-30 23:30:00,073 ERROR [JobRunShell] Job DEFAULT.job.reload.profiles threw an unhandled Exception:<br>
java.lang.IncompatibleClassChangeError: Found interface org.quartz.JobExecutionContext, but class was expected<br>
at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:79)<br>
at org.quartz.core.JobRunShell.run(JobRunShell.java:213)<br>
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557)<br>
2011-11-30 23:30:00,075 ERROR [ErrorLogger] Job (DEFAULT.job.reload.profiles threw an exception.<br>
org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: java.lang.IncompatibleClassChangeError: Found interface org.quartz.JobExecutionContext, but class was expected]<br>
at org.quartz.core.JobRunShell.run(JobRunShell.java:224)<br>
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557)<br>
Caused by: java.lang.IncompatibleClassChangeError: Found interface org.quartz.JobExecutionContext, but class was expected<br>
at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:79)<br>
at org.quartz.core.JobRunShell.run(JobRunShell.java:213)<br>
... 1 more</p>
<p dir="auto">Configuration for the job is:&lt;bean id="profileService.schedulerFactory" class="org.springframework.scheduling.quartz.SchedulerFactoryBean"&gt;<br>
&lt;property name="triggers"&gt;<br>
&lt;list&gt;<br>
&lt;bean class="org.quartz.impl.triggers.CronTriggerImpl"&gt;<br>
&lt;property name="name" value="job.reload.profiles.trigger" /&gt;<br>
&lt;property name="jobName" value="job.reload.profiles"/&gt;<br>
&lt;property name="jobGroup" value="DEFAULT" /&gt;</p>
<p dir="auto">&lt;!-- run every 10 mins --&gt;<br>
&lt;property name="cronExpression" value="0 0,10,20,30,40,50 * * * ?" /&gt;<br>
&lt;/bean&gt;<br>
&lt;/list&gt;<br>
&lt;/property&gt;<br>
&lt;property name="jobDetails"&gt;<br>
&lt;list&gt;<br>
&lt;bean class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean"&gt;<br>
&lt;property name="targetObject" ref="profileService"/&gt;<br>
&lt;property name="targetMethod" value="reloadProfiles"/&gt;<br>
&lt;property name="concurrent" value="false"/&gt;<br>
&lt;property name="name" value="job.reload.profiles"/&gt;<br>
&lt;property name="group" value="DEFAULT" /&gt;<br>
&lt;/bean&gt;<br>
&lt;/list&gt;<br>
&lt;/property&gt;<br>
&lt;/bean&gt;<br>
I assume that this is a build issue for the Spring framework? Will there need to be a separate package and so on for Quartz 2, like Hibernate4</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.1 RC2</p>
<p dir="auto"><strong>Attachments:</strong></p>
<ul dir="auto">
<li><a href="https://jira.spring.io/secure/attachment/19158/MethodInvokingJobDetailFactoryBean.java" rel="nofollow">MethodInvokingJobDetailFactoryBean.java</a> (<em>11.56 kB</em>)</li>
</ul>
<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="398115838" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13528" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13528/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13528">#13528</a> QuartzJobBean throws IncompatibleClassChangeError when using Quartz 2.x (<em><strong>"is duplicated by"</strong></em>)</li>
</ul>
<p dir="auto"><strong>Referenced from:</strong> commits <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/4831ca27d2a4e67b1811244049ea19140538f29a/hovercard" href="https://github.com/spring-projects/spring-framework/commit/4831ca27d2a4e67b1811244049ea19140538f29a"><tt>4831ca2</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/9506f8d883d4d2543784e459663e041c2afd2dfa/hovercard" href="https://github.com/spring-projects/spring-framework/commit/9506f8d883d4d2543784e459663e041c2afd2dfa"><tt>9506f8d</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/2b122816afa141c291fd269225366913d9b5d096/hovercard" href="https://github.com/spring-projects/spring-framework/commit/2b122816afa141c291fd269225366913d9b5d096"><tt>2b12281</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/00ff8fa2ccbaa4f689a74cc65a8bd20eda877484/hovercard" href="https://github.com/spring-projects/spring-framework/commit/00ff8fa2ccbaa4f689a74cc65a8bd20eda877484"><tt>00ff8fa</tt></a></p>
<p dir="auto">1 votes, 4 watchers</p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=tomdewire" rel="nofollow">Tom DeWire</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-3472?redirect=false" rel="nofollow">SPR-3472</a></strong> and commented</p>
<p dir="auto">Repeated from my original forum post: (<a href="http://forum.springframework.org/showthread.php?t=38619" rel="nofollow">http://forum.springframework.org/showthread.php?t=38619</a>)</p>
<p dir="auto">We have two pieces of advice that we would like to execute "around" a service method. The service method takes a single parameter.</p>
<p dir="auto">The first piece of advice (AdviceA in this example) wants to capture all of the methods in the class. It does not care about the parameters passed into those methods.</p>
<p dir="auto">The second piece of advice (AdviceB in this example) wants to capture a specific method. It does care about the parameter. It wants to record this transaction into the logs if certain criteria are met.</p>
<p dir="auto">This was all working fine in spring 2.0.2. We recently attempted to upgrade to 2.0.5, and we ran into some failures. We backed off the versions and determined the root cause appears to be a change introduced with 2.0.3.</p>
<p dir="auto">Specifically, we're receive this error immediately after calling proceed() from the first piece of advice:</p>
<p dir="auto">Exception in thread "main" java.lang.IllegalStateException: Required to bind 2 arguments, but only bound 1 (JoinPointMatch was NOT bound in invocation)</p>
<p dir="auto">It seems worth noting that either of these pieces of advice will execute just fine if they are allowed to execute alone. It is only when <strong>both</strong> pieces of advice are applied that we run into this issue.</p>
<p dir="auto">I've managed to replicate this behavior in a very small test. I'll attempt to attach that to this bug (if i'm allowed to do that sort of thing).</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.0.3, 2.0.4, 2.0.5</p>
<p dir="auto"><strong>Attachments:</strong></p>
<ul dir="auto">
<li><a href="https://jira.spring.io/secure/attachment/12591/aop-test.zip" rel="nofollow">aop-test.zip</a> (<em>12.96 kB</em>)</li>
<li><a href="https://jira.spring.io/secure/attachment/12595/aop-test-dependencies-corrected.zip" rel="nofollow">aop-test-dependencies-corrected.zip</a> (<em>13.13 kB</em>)</li>
</ul>
<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="398078267" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/8202" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/8202/hovercard" href="https://github.com/spring-projects/spring-framework/issues/8202">#8202</a> around advice does not bind parameters if another advise is active on same join point (<em><strong>"is duplicated by"</strong></em>)</li>
</ul>