Results 1 to 4 of 4

Thread: No setter found for property

Hybrid View

  1. #1

    Default No setter found for property

    I am getting this validation error

    No setter found for property 'cronExpression' in class 'org.springframework.scheduling.quartz.CronTrigger Bean'

    For this bean definition:

    <bean id="sendMailingsJob" class="org.springframework.scheduling.quartz.CronT riggerBean">
    <property name="jobDetail">
    <bean class="org.springframework.scheduling.quartz.Metho dInvokingJobDetailFactoryBean">
    <property name="targetObject"><ref bean="mailingSender" /></property>
    <property name="targetMethod"><value>sendPendingMailsBatch</value></property>
    <property name="concurrent"><value>false</value></property>
    </bean>
    </property>
    <property name="cronExpression">
    <!-- run once an hour at quarter past the hour -->
    <value>0 15 * * * ?</value>
    </property>
    </bean>

    I have checked that org.springframework.scheduling.quartz.CronTriggerB ean does have a setCronExpression property, and this works when loaded in spring.

    Can anyone suggest what is happening.

    I am using Spring IDE 1.2.3 and spring 1.2.3

  2. #2
    Join Date
    Aug 2004
    Location
    Frankfurt/Main, Germany
    Posts
    253

    Default

    Mark,

    I can second your observation.

    This is due to the setter for the property "cronExpression" is not defined in "org.springframework.scheduling.quartz.CronTrigger Bean" but in it's super class "org.quartz.CronTrigger". To validate this property you have to add "quartz.jar" to the corresponding Spring project's build path.

    Cheers,
    Torsten

  3. #3

    Default

    Thanks Torsten,

    That has sorted my problems

    Regards

    Mark Smithson

  4. #4
    Join Date
    Oct 2004
    Posts
    151

    Default

    Quote Originally Posted by Torsten Juergeleit
    Mark,

    I can second your observation.

    This is due to the setter for the property "cronExpression" is not defined in "org.springframework.scheduling.quartz.CronTrigger Bean" but in it's super class "org.quartz.CronTrigger". To validate this property you have to add "quartz.jar" to the corresponding Spring project's build path.
    Thanks for posting this solution!

    I had this problem on eclipse 3.2M2, eclipseide 1.2.3 and spring 1.2.4. I tried to add quarz-1.4.2.jar to the project's build path, but that didn't help. I havn't managed to reproduce this issue on eclipse 3.1.

    Anyone else seen this on eclipse 3.2M2?


    -Kaj

Similar Threads

  1. Order of Bean definitions matters?
    By cfuser in forum Container
    Replies: 2
    Last Post: Oct 21st, 2005, 10:29 AM
  2. Unit testing with JOTM and JtaTransactionManager
    By lalle in forum Architecture
    Replies: 1
    Last Post: Oct 15th, 2005, 09:05 AM
  3. EHCaching Hibernate
    By dencamel in forum Data
    Replies: 3
    Last Post: Sep 6th, 2005, 09:03 PM
  4. Replies: 4
    Last Post: Aug 17th, 2005, 04:42 AM
  5. Replies: 1
    Last Post: Apr 13th, 2005, 10:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •