cancel
Showing results for 
Search instead for 
Did you mean: 

Error Creating Trigger bean for Scheduler

piyush48
Star Contributor
Star Contributor

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

imageerror of conversion from string to long

1 REPLY 1

kaynezhang
World-Class Innovator
World-Class Innovator
<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