Announcement Announcement Module
Collapse
No announcement yet.
No setter found for property Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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

    Comment


    • #3
      Thanks Torsten,

      That has sorted my problems

      Regards

      Mark Smithson

      Comment


      • #4
        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

        Comment

        Working...
        X