Cannot get the trigger to fire
gigenthomas opened this issue · 3 comments
What am I missing ? I cannot seem to get the trigger to fire. Please help !!
Can you paste here your logs?
I am also facing the same issue. I believe the job is not getting triggered at all. Pasting the logs here.
"C:\Program Files\Java\jdk1.8.0_71\bin\java" -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:10109,suspend=y,server=n -Dfile.encoding=UTF-8 -classpath "C:\Program Files\Java\jdk1.8.0_71\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_71\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.8.0_71\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.8.0_71\jre\lib\jce.jar;C:\Program Files\Java\jdk1.8.0_71\jre\lib\jfr.jar;C:\Program Files\Java\jdk1.8.0_71\jre\lib\jfxswt.jar;C:\Program Files\Java\jdk1.8.0_71\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.8.0_71\jre\lib\management-agent.jar;C:\Program Files\Java\jdk1.8.0_71\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.8.0_71\jre\lib\resources.jar;C:\Program Files\Java\jdk1.8.0_71\jre\lib\rt.jar;C:\Program Files\Java\jdk1.8.0_71\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jdk1.8.0_71\jre\lib\ext\cldrdata.jar;C:\Program Files\Java\jdk1.8.0_71\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.8.0_71\jre\lib\ext\jaccess.jar;C:\Program Files\Java\jdk1.8.0_71\jre\lib\ext\jfxrt.jar;C:\Program Files\Java\jdk1.8.0_71\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.8.0_71\jre\lib\ext\nashorn.jar;C:\Program Files\Java\jdk1.8.0_71\jre\lib\ext\sunec.jar;C:\Program Files\Java\jdk1.8.0_71\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.8.0_71\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\jdk1.8.0_71\jre\lib\ext\sunpkcs11.jar;C:\Program Files\Java\jdk1.8.0_71\jre\lib\ext\zipfs.jar;C:\Users\UC188390\Desktop\optimus\spring-boot-quartz-demo\target\classes;C:\Users\UC188390.m2\repository\org\springframework\boot\spring-boot-starter-web\1.2.1.RELEASE\spring-boot-starter-web-1.2.1.RELEASE.jar;C:\Users\UC188390.m2\repository\org\springframework\boot\spring-boot-starter\1.2.1.RELEASE\spring-boot-starter-1.2.1.RELEASE.jar;C:\Users\UC188390.m2\repository\org\springframework\boot\spring-boot\1.2.1.RELEASE\spring-boot-1.2.1.RELEASE.jar;C:\Users\UC188390.m2\repository\org\springframework\boot\spring-boot-autoconfigure\1.2.1.RELEASE\spring-boot-autoconfigure-1.2.1.RELEASE.jar;C:\Users\UC188390.m2\repository\org\springframework\boot\spring-boot-starter-logging\1.2.1.RELEASE\spring-boot-starter-logging-1.2.1.RELEASE.jar;C:\Users\UC188390.m2\repository\org\slf4j\jcl-over-slf4j\1.7.8\jcl-over-slf4j-1.7.8.jar;C:\Users\UC188390.m2\repository\org\slf4j\jul-to-slf4j\1.7.8\jul-to-slf4j-1.7.8.jar;C:\Users\UC188390.m2\repository\org\slf4j\log4j-over-slf4j\1.7.8\log4j-over-slf4j-1.7.8.jar;C:\Users\UC188390.m2\repository\ch\qos\logback\logback-classic\1.1.2\logback-classic-1.1.2.jar;C:\Users\UC188390.m2\repository\ch\qos\logback\logback-core\1.1.2\logback-core-1.1.2.jar;C:\Users\UC188390.m2\repository\org\springframework\boot\spring-boot-starter-tomcat\1.2.1.RELEASE\spring-boot-starter-tomcat-1.2.1.RELEASE.jar;C:\Users\UC188390.m2\repository\org\apache\tomcat\embed\tomcat-embed-core\8.0.15\tomcat-embed-core-8.0.15.jar;C:\Users\UC188390.m2\repository\org\apache\tomcat\embed\tomcat-embed-el\8.0.15\tomcat-embed-el-8.0.15.jar;C:\Users\UC188390.m2\repository\org\apache\tomcat\embed\tomcat-embed-logging-juli\8.0.15\tomcat-embed-logging-juli-8.0.15.jar;C:\Users\UC188390.m2\repository\org\apache\tomcat\embed\tomcat-embed-websocket\8.0.15\tomcat-embed-websocket-8.0.15.jar;C:\Users\UC188390.m2\repository\com\fasterxml\jackson\core\jackson-databind\2.4.4\jackson-databind-2.4.4.jar;C:\Users\UC188390.m2\repository\com\fasterxml\jackson\core\jackson-annotations\2.4.4\jackson-annotations-2.4.4.jar;C:\Users\UC188390.m2\repository\com\fasterxml\jackson\core\jackson-core\2.4.4\jackson-core-2.4.4.jar;C:\Users\UC188390.m2\repository\org\hibernate\hibernate-validator\5.1.3.Final\hibernate-validator-5.1.3.Final.jar;C:\Users\UC188390.m2\repository\javax\validation\validation-api\1.1.0.Final\validation-api-1.1.0.Final.jar;C:\Users\UC188390.m2\repository\org\jboss\logging\jboss-logging\3.1.3.GA\jboss-logging-3.1.3.GA.jar;C:\Users\UC188390.m2\repository\com\fasterxml\classmate\1.0.0\classmate-1.0.0.jar;C:\Users\UC188390.m2\repository\org\springframework\spring-core\4.1.4.RELEASE\spring-core-4.1.4.RELEASE.jar;C:\Users\UC188390.m2\repository\org\springframework\spring-web\4.1.4.RELEASE\spring-web-4.1.4.RELEASE.jar;C:\Users\UC188390.m2\repository\org\springframework\spring-aop\4.1.4.RELEASE\spring-aop-4.1.4.RELEASE.jar;C:\Users\UC188390.m2\repository\aopalliance\aopalliance\1.0\aopalliance-1.0.jar;C:\Users\UC188390.m2\repository\org\springframework\spring-webmvc\4.1.4.RELEASE\spring-webmvc-4.1.4.RELEASE.jar;C:\Users\UC188390.m2\repository\org\springframework\spring-expression\4.1.4.RELEASE\spring-expression-4.1.4.RELEASE.jar;C:\Users\UC188390.m2\repository\org\springframework\boot\spring-boot-starter-jdbc\1.2.1.RELEASE\spring-boot-starter-jdbc-1.2.1.RELEASE.jar;C:\Users\UC188390.m2\repository\org\springframework\spring-jdbc\4.1.4.RELEASE\spring-jdbc-4.1.4.RELEASE.jar;C:\Users\UC188390.m2\repository\org\apache\tomcat\tomcat-jdbc\8.0.15\tomcat-jdbc-8.0.15.jar;C:\Users\UC188390.m2\repository\org\apache\tomcat\tomcat-juli\8.0.15\tomcat-juli-8.0.15.jar;C:\Users\UC188390.m2\repository\org\springframework\spring-tx\4.1.4.RELEASE\spring-tx-4.1.4.RELEASE.jar;C:\Users\UC188390.m2\repository\org\springframework\spring-context-support\4.1.4.RELEASE\spring-context-support-4.1.4.RELEASE.jar;C:\Users\UC188390.m2\repository\org\springframework\spring-beans\4.1.4.RELEASE\spring-beans-4.1.4.RELEASE.jar;C:\Users\UC188390.m2\repository\org\springframework\spring-context\4.1.4.RELEASE\spring-context-4.1.4.RELEASE.jar;C:\Users\UC188390.m2\repository\org\liquibase\liquibase-core\3.3.0\liquibase-core-3.3.0.jar;C:\Users\UC188390.m2\repository\junit\junit\4.12\junit-4.12.jar;C:\Users\UC188390.m2\repository\org\yaml\snakeyaml\1.14\snakeyaml-1.14.jar;C:\Users\UC188390.m2\repository\org\quartz-scheduler\quartz\2.2.1\quartz-2.2.1.jar;C:\Users\UC188390.m2\repository\c3p0\c3p0\0.9.1.1\c3p0-0.9.1.1.jar;C:\Users\UC188390.m2\repository\org\slf4j\slf4j-api\1.7.8\slf4j-api-1.7.8.jar;C:\Users\UC188390.m2\repository\com\h2database\h2\1.4.185\h2-1.4.185.jar;C:\Users\UC188390.m2\repository\org\hamcrest\hamcrest-core\1.3\hamcrest-core-1.3.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA 14.1.5\lib\idea_rt.jar" com.kaviddiss.bootquartz.Application --spring.output.ansi.enabled=always
Connected to the target VM, address: '127.0.0.1:10109', transport: 'socket'
. ____ _ __ _ _
/\ / ' __ _ ()_ __ __ _ \ \ \
( ( )_ | '_ | '| | ' / ` | \ \ \
/ )| |)| | | | | || (| | ) ) ) )
' || .**|| ||| |**, | / / / /
=========||==============|/=///_/
:: Spring Boot :: (v1.2.1.RELEASE)
2016-06-21 16:10:46.058 INFO 24856 --- [ main] com.kaviddiss.bootquartz.Application : Starting Application on UC188390-TPD-A with PID 24856 (C:\Users\UC188390\Desktop\optimus\spring-boot-quartz-demo\target\classes started by UC188390 in C:\Users\UC188390\Desktop\optimus\spring-boot-quartz-demo)
2016-06-21 16:10:46.108 INFO 24856 --- [ main] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@5e7cd6cc: startup date [Tue Jun 21 16:10:46 CDT 2016]; root of context hierarchy
2016-06-21 16:10:46.880 INFO 24856 --- [ main] o.s.b.f.s.DefaultListableBeanFactory : Overriding bean definition for bean 'beanNameViewResolver': replacing [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration$WhitelabelErrorViewConfiguration; factoryMethodName=beanNameViewResolver; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [org/springframework/boot/autoconfigure/web/ErrorMvcAutoConfiguration$WhitelabelErrorViewConfiguration.class]] with [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration$WebMvcAutoConfigurationAdapter; factoryMethodName=beanNameViewResolver; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [org/springframework/boot/autoconfigure/web/WebMvcAutoConfiguration$WebMvcAutoConfigurationAdapter.class]]
2016-06-21 16:10:47.273 INFO 24856 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [class org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$325e3290] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2016-06-21 16:10:47.299 INFO 24856 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'transactionAttributeSource' of type [class org.springframework.transaction.annotation.AnnotationTransactionAttributeSource] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2016-06-21 16:10:47.309 INFO 24856 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'transactionInterceptor' of type [class org.springframework.transaction.interceptor.TransactionInterceptor] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2016-06-21 16:10:47.315 INFO 24856 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.transaction.config.internalTransactionAdvisor' of type [class org.springframework.transaction.interceptor.BeanFactoryTransactionAttributeSourceAdvisor] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2016-06-21 16:10:47.641 INFO 24856 --- [ main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat initialized with port(s): 8080 (http)
2016-06-21 16:10:47.796 INFO 24856 --- [ main] o.apache.catalina.core.StandardService : Starting service Tomcat
2016-06-21 16:10:47.797 INFO 24856 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet Engine: Apache Tomcat/8.0.15
2016-06-21 16:10:47.966 INFO 24856 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2016-06-21 16:10:47.967 INFO 24856 --- [ost-startStop-1] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 1862 ms
2016-06-21 16:10:48.458 INFO 24856 --- [ost-startStop-1] o.s.b.c.e.ServletRegistrationBean : Mapping servlet: 'dispatcherServlet' to [/]
2016-06-21 16:10:48.461 INFO 24856 --- [ost-startStop-1] o.s.b.c.embedded.FilterRegistrationBean : Mapping filter: 'characterEncodingFilter' to: [/]
2016-06-21 16:10:48.462 INFO 24856 --- [ost-startStop-1] o.s.b.c.embedded.FilterRegistrationBean : Mapping filter: 'hiddenHttpMethodFilter' to: [/]
2016-06-21 16:10:49.524 INFO 24856 --- [ main] liquibase : Successfully acquired change log lock
2016-06-21 16:10:50.132 INFO 24856 --- [ main] liquibase : Creating database history table with name: PUBLIC.DATABASECHANGELOG
2016-06-21 16:10:50.136 INFO 24856 --- [ main] liquibase : Reading from PUBLIC.DATABASECHANGELOG
2016-06-21 16:10:50.168 INFO 24856 --- [ main] liquibase : classpath:db/changelog/db.changelog-master.xml: classpath:db/changelog/db.changelog-master.xml::quartz_tables_h2::david: SQL in file db/changelog/sql/quartz_tables_h2.sql executed
2016-06-21 16:10:50.169 INFO 24856 --- [ main] liquibase : classpath:db/changelog/db.changelog-master.xml: classpath:db/changelog/db.changelog-master.xml::quartz_tables_h2::david: ChangeSet classpath:db/changelog/db.changelog-master.xml::quartz_tables_h2::david ran successfully in 29ms
2016-06-21 16:10:50.181 INFO 24856 --- [ main] liquibase : Successfully released change log lock
2016-06-21 16:10:50.218 INFO 24856 --- [ main] o.s.b.f.config.PropertiesFactoryBean : Loading properties file from class path resource [quartz.properties]
2016-06-21 16:10:50.260 INFO 24856 --- [ main] org.quartz.impl.StdSchedulerFactory : Using default implementation for ThreadExecutor
2016-06-21 16:10:50.272 INFO 24856 --- [ main] org.quartz.core.SchedulerSignalerImpl : Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl
2016-06-21 16:10:50.273 INFO 24856 --- [ main] org.quartz.core.QuartzScheduler : Quartz Scheduler v.2.2.1 created.
2016-06-21 16:10:50.281 INFO 24856 --- [ main] o.s.s.quartz.LocalDataSourceJobStore : Using db table-based data access locking (synchronization).
2016-06-21 16:10:50.282 INFO 24856 --- [ main] o.s.s.quartz.LocalDataSourceJobStore : JobStoreCMT initialized.
2016-06-21 16:10:50.283 INFO 24856 --- [ main] org.quartz.core.QuartzScheduler : Scheduler meta-data: Quartz Scheduler (v2.2.1) 'schedulerFactoryBean' with instanceId 'UC188390-TPD-A1466543450261'
Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
NOT STARTED.
Currently in standby mode.
Number of jobs executed: 0
Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 5 threads.
Using job-store 'org.springframework.scheduling.quartz.LocalDataSourceJobStore' - which supports persistence. and is clustered.
2016-06-21 16:10:50.284 INFO 24856 --- [ main] org.quartz.impl.StdSchedulerFactory : Quartz scheduler 'schedulerFactoryBean' initialized from an externally provided properties instance.
2016-06-21 16:10:50.284 INFO 24856 --- [ main] org.quartz.impl.StdSchedulerFactory : Quartz scheduler version: 2.2.1
2016-06-21 16:10:50.284 INFO 24856 --- [ main] org.quartz.core.QuartzScheduler : JobFactory set to: com.kaviddiss.bootquartz.spring.AutowiringSpringBeanJobFactory@aca3c85
2016-06-21 16:10:50.478 INFO 24856 --- [ main] s.w.s.m.m.a.RequestMappingHandlerAdapter : Looking for @ControllerAdvice: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@5e7cd6cc: startup date [Tue Jun 21 16:10:46 CDT 2016]; root of context hierarchy
2016-06-21 16:10:50.554 INFO 24856 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.BasicErrorController.error(javax.servlet.http.HttpServletRequest)
2016-06-21 16:10:50.554 INFO 24856 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error],methods=[],params=[],headers=[],consumes=[],produces=[text/html],custom=[]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest)
2016-06-21 16:10:50.582 INFO 24856 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/webjars/] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2016-06-21 16:10:50.582 INFO 24856 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2016-06-21 16:10:50.619 INFO 24856 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2016-06-21 16:10:50.748 INFO 24856 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Registering beans for JMX exposure on startup
2016-06-21 16:10:50.755 INFO 24856 --- [ main] o.s.c.support.DefaultLifecycleProcessor : Starting beans in phase 2147483647
2016-06-21 16:10:50.755 INFO 24856 --- [ main] o.s.s.quartz.SchedulerFactoryBean : Starting Quartz Scheduler now
2016-06-21 16:10:50.772 INFO 24856 --- [ main] org.quartz.core.QuartzScheduler : Scheduler schedulerFactoryBean_$_UC188390-TPD-A1466543450261 started.
2016-06-21 16:10:50.868 INFO 24856 --- [ main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat started on port(s): 8080 (http)
2016-06-21 16:10:50.869 INFO 24856 --- [ main] com.kaviddiss.bootquartz.Application : Started Application in 5.221 seconds (JVM running for 5.662)
Ok ... I resolved the issue by un-commenting factory.setTriggers(sampleJobTrigger);