Error Creating Trigger bean for Scheduler

cancel
Showing results for 
Search instead for 
Did you mean: 
piyush48
Established Member

Error Creating Trigger bean for Scheduler

Hi All,

I am facing issue/error while creating Trigger bean. While passing value for start delay property of bean in Alfresco-global.properties.

My trigger bean is as follow:-

<bean id="org.alfresco.tutorial.scheduledjob.trigger"
                class="org.springframework.scheduling.quartz.CronTriggerFactoryBean">
              <property name="jobDetail" ref="com.aviva.repo.webscripts.scheduledjob.jobDetail" />
              <property name="cronExpression" value="${com.abc.repo.webscripts.scheduledjob.cronexpression}" />
              <property name="startDelay" value="${com.abc.repo.webscripts.scheduledjob.cronstartdelay}"/>
          </bean>

and value for property name=startDelay is :-

com.abc.repo.webscript.scheduledjob.cronstartdelay=100

 

I am getting error as below:-

 

error of conversion from string to longerror of conversion from string to long

1 Reply
kaynezhang
Advanced

Re: Error Creating Trigger bean for Scheduler

<property name="startDelay" value="${com.abc.repo.webscripts.scheduledjob.cronstartdelay}"/>

 There is a "s" in spring property name  but not in Alfresco-global.properties.

 

com.abc.repo.webscript.scheduledjob.cronstartdelay=100