qq_34121797
Doutzen丶
2017-09-09 08:55
采纳率: 100%
浏览 2.0k
已采纳

SpringMVC+quartz 报错

配置文件:

```<!-- 执行调度任务业务类 -->

<!--  配置执行类和方法 -->
<bean id="consultJobDetail" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
    <property name="targetObject" ref="consultJob"></property>
    <property name="targetMethod" value="consultTypeCopy"></property>
    <property name="concurrent" value="false"></property>
</bean>

<!--  配置定时执行时间 -->
<bean id="consultTrigger" class="org.springframework.scheduling.quartz.CronTriggerFactoryBean">
    <property name="jobDetail" ref="consultJobDetail"></property>
    <property name="cronExpression">
        <value>0/10 * * * * ?</value>
    </property>
</bean>

<!--  配置调度资源 -->
<bean class="org.springframework.scheduling.quartz.SchedulerFactoryBean"
      lazy-init="false" autowire="no">
    <property name="autoStartup" value="true"></property>
    <property name="startupDelay" value="0"/>
    <property name="triggers">
        <list>
            <ref local="consultTrigger"/>
        </list>
    </property>
</bean>
报错信息:

```Caused by: org.quartz.JobPersistenceException: The job (DEFAULT.consultJobDetail) referenced by the trigger does not exist.
    at org.quartz.simpl.RAMJobStore.storeTrigger(RAMJobStore.java:422)
    at org.quartz.core.QuartzScheduler.scheduleJob(QuartzScheduler.java:932)
    at org.quartz.impl.StdScheduler.scheduleJob(StdScheduler.java:258)
    at org.springframework.scheduling.quartz.SchedulerAccessor.addTriggerToScheduler(SchedulerAccessor.java:312)
    at org.springframework.scheduling.quartz.SchedulerAccessor.registerJobsAndTriggers(SchedulerAccessor.java:235)
    at org.springframework.scheduling.quartz.SchedulerFactoryBean.afterPropertiesSet(SchedulerFactoryBean.java:512)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1637)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1574)
    ... 57 more

使用 RAMJobStore 模式,不需要持久化到数据,启动时抛出如上异常?求解答!!

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

5条回答 默认 最新

  • lkhog
    lkhog 2017-09-09 15:57
    已采纳

    Autowire注入时候报错了?错误信息太少了~是不是和autowire="no"有关~

    点赞 评论
  • sun1021873926
    夕阳雨晴 2017-09-09 09:43
    点赞 评论
  • qq_34121797
    Doutzen丶 2017-09-10 02:56

    ```F:\apache-tomcat-7.0.67\bin\catalina.bat run
    [2017-09-10 10:51:34,492] Artifact consult-server-web:war: Server is not connected. Deploy is not available.
    Using CATALINA_BASE: "C:\Users\Administrator.IntelliJIdea2016.2\system\tomcat\Unnamed_com_bytc_consult_2"
    Using CATALINA_HOME: "F:\apache-tomcat-7.0.67"
    Using CATALINA_TMPDIR: "F:\apache-tomcat-7.0.67\temp"
    Using JRE_HOME: "D:\JAVA\jdk\jre"
    Using CLASSPATH: "F:\apache-tomcat-7.0.67\bin\bootstrap.jar;F:\apache-tomcat-7.0.67\bin\tomcat-juli.jar"
    Connected to the target VM, address: '127.0.0.1:53833', transport: 'socket'
    九月 10, 2017 10:51:38 上午 org.apache.catalina.startup.VersionLoggerListener log
    信息: Server version: Apache Tomcat/7.0.67
    九月 10, 2017 10:51:38 上午 org.apache.catalina.startup.VersionLoggerListener log
    信息: Server built: Dec 7 2015 13:07:11 UTC
    九月 10, 2017 10:51:38 上午 org.apache.catalina.startup.VersionLoggerListener log
    信息: Server number: 7.0.67.0
    九月 10, 2017 10:51:38 上午 org.apache.catalina.startup.VersionLoggerListener log
    信息: OS Name: Windows 10
    九月 10, 2017 10:51:38 上午 org.apache.catalina.startup.VersionLoggerListener log
    信息: OS Version: 10.0
    九月 10, 2017 10:51:38 上午 org.apache.catalina.startup.VersionLoggerListener log
    信息: Architecture: amd64
    九月 10, 2017 10:51:38 上午 org.apache.catalina.startup.VersionLoggerListener log
    信息: Java Home: D:\JAVA\jdk\jre
    九月 10, 2017 10:51:38 上午 org.apache.catalina.startup.VersionLoggerListener log
    信息: JVM Version: 1.8.0_144-b01
    九月 10, 2017 10:51:38 上午 org.apache.catalina.startup.VersionLoggerListener log
    信息: JVM Vendor: Oracle Corporation
    九月 10, 2017 10:51:38 上午 org.apache.catalina.startup.VersionLoggerListener log
    信息: CATALINA_BASE: C:\Users\Administrator.IntelliJIdea2016.2\system\tomcat\Unnamed_com_bytc_consult_2
    九月 10, 2017 10:51:38 上午 org.apache.catalina.startup.VersionLoggerListener log
    信息: CATALINA_HOME: F:\apache-tomcat-7.0.67
    九月 10, 2017 10:51:38 上午 org.apache.catalina.startup.VersionLoggerListener log
    信息: Command line argument: -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:53833,suspend=y,server=n
    九月 10, 2017 10:51:38 上午 org.apache.catalina.startup.VersionLoggerListener log
    信息: Command line argument: -Dcom.sun.management.jmxremote=
    九月 10, 2017 10:51:38 上午 org.apache.catalina.startup.VersionLoggerListener log
    信息: Command line argument: -Dcom.sun.management.jmxremote.port=1103
    九月 10, 2017 10:51:38 上午 org.apache.catalina.startup.VersionLoggerListener log
    信息: Command line argument: -Dcom.sun.management.jmxremote.ssl=false
    九月 10, 2017 10:51:38 上午 org.apache.catalina.startup.VersionLoggerListener log
    信息: Command line argument: -Dcom.sun.management.jmxremote.authenticate=false
    九月 10, 2017 10:51:38 上午 org.apache.catalina.startup.VersionLoggerListener log
    信息: Command line argument: -Djava.rmi.server.hostname=127.0.0.1
    九月 10, 2017 10:51:38 上午 org.apache.catalina.startup.VersionLoggerListener log
    信息: Command line argument: -Djava.util.logging.config.file=C:\Users\Administrator.IntelliJIdea2016.2\system\tomcat\Unnamed_com_bytc_consult_2\conf\logging.properties
    九月 10, 2017 10:51:38 上午 org.apache.catalina.startup.VersionLoggerListener log
    信息: Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
    九月 10, 2017 10:51:38 上午 org.apache.catalina.startup.VersionLoggerListener log
    信息: Command line argument: -Djava.endorsed.dirs=F:\apache-tomcat-7.0.67\endorsed
    九月 10, 2017 10:51:38 上午 org.apache.catalina.startup.VersionLoggerListener log
    信息: Command line argument: -Dcatalina.base=C:\Users\Administrator.IntelliJIdea2016.2\system\tomcat\Unnamed_com_bytc_consult_2
    九月 10, 2017 10:51:38 上午 org.apache.catalina.startup.VersionLoggerListener log
    信息: Command line argument: -Dcatalina.home=F:\apache-tomcat-7.0.67
    九月 10, 2017 10:51:38 上午 org.apache.catalina.startup.VersionLoggerListener log
    信息: Command line argument: -Djava.io.tmpdir=F:\apache-tomcat-7.0.67\temp
    九月 10, 2017 10:51:38 上午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
    信息: Loaded APR based Apache Tomcat Native library 1.1.33 using APR version 1.5.1.
    九月 10, 2017 10:51:38 上午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
    信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
    九月 10, 2017 10:51:39 上午 org.apache.catalina.core.AprLifecycleListener initializeSSL
    信息: OpenSSL successfully initialized (OpenSSL 1.0.1m 19 Mar 2015)
    九月 10, 2017 10:51:41 上午 org.apache.coyote.AbstractProtocol init
    信息: Initializing ProtocolHandler ["http-apr-8084"]
    九月 10, 2017 10:51:41 上午 org.apache.coyote.AbstractProtocol init
    信息: Initializing ProtocolHandler ["ajp-apr-8009"]
    九月 10, 2017 10:51:41 上午 org.apache.catalina.startup.Catalina load
    信息: Initialization processed in 4877 ms
    九月 10, 2017 10:51:41 上午 org.apache.catalina.core.StandardService startInternal
    信息: Starting service Catalina
    九月 10, 2017 10:51:41 上午 org.apache.catalina.core.StandardEngine startInternal
    信息: Starting Servlet Engine: Apache Tomcat/7.0.67
    九月 10, 2017 10:51:41 上午 org.apache.coyote.AbstractProtocol start
    信息: Starting ProtocolHandler ["http-apr-8084"]
    九月 10, 2017 10:51:41 上午 org.apache.coyote.AbstractProtocol start
    信息: Starting ProtocolHandler ["ajp-apr-8009"]
    九月 10, 2017 10:51:41 上午 org.apache.catalina.startup.Catalina start
    信息: Server startup in 185 ms
    Connected to server
    [2017-09-10 10:51:42,239] Artifact consult-server-web:war: Artifact is being deployed, please wait...
    九月 10, 2017 10:51:43 上午 org.apache.catalina.deploy.WebXml setVersion
    警告: Unknown version string [3.1]. Default version will be used.
    九月 10, 2017 10:51:46 上午 org.apache.catalina.startup.TldConfig execute
    信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
    log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).
    log4j:WARN Please initialize the log4j system properly.
    DEBUG [RMI TCP Connection(7)-127.0.0.1] LogFactory.setImplementation(128) | Logging initialized using 'class org.apache.ibatis.logging.slf4j.Slf4jImpl' adapter.
    DEBUG [RMI TCP Connection(7)-127.0.0.1] ResolverUtil.getClass(101) | Class not found: org.jboss.vfs.VFS
    DEBUG [RMI TCP Connection(7)-127.0.0.1] ResolverUtil.setInvalid(137) | JBoss 6 VFS API is not available in this environment.
    DEBUG [RMI TCP Connection(7)-127.0.0.1] ResolverUtil.getClass(101) | Class not found: org.jboss.vfs.VirtualFile
    DEBUG [RMI TCP Connection(7)-127.0.0.1] ResolverUtil.getInstance(68) | VFS implementation org.apache.ibatis.io.JBoss6VFS is not valid in this environment.
    DEBUG [RMI TCP Connection(7)-127.0.0.1] ResolverUtil.getInstance(80) | Using VFS adapter org.apache.ibatis.io.DefaultVFS
    DEBUG [RMI TCP Connection(7)-127.0.0.1] ResolverUtil.findJarForResource(197) | Find JAR URL: jar:file:/F:/apache-tomcat-7.0.67/webapps/consultservice/WEB-INF/lib/core-1.0-SNAPSHOT.jar!/com/bytc/domain/consult
    DEBUG [RMI TCP Connection(7)-127.0.0.1] ResolverUtil.findJarForResource(203) | Inner URL: file:/F:/apache-tomcat-7.0.67/webapps/consultservice/WEB-INF/lib/core-1.0-SNAPSHOT.jar!/com/bytc/domain/consult
    DEBUG [RMI TCP Connection(7)-127.0.0.1] ResolverUtil.findJarForResource(214) | Extracted JAR URL: file:/F:/apache-tomcat-7.0.67/webapps/consultservice/WEB-INF/lib/core-1.0-SNAPSHOT.jar
    DEBUG [RMI TCP Connection(7)-127.0.0.1] ResolverUtil.isJar(291) | Found JAR: file:/F:/apache-tomcat-7.0.67/webapps/consultservice/WEB-INF/lib/core-1.0-SNAPSHOT.jar
    DEBUG [RMI TCP Connection(7)-127.0.0.1] ResolverUtil.list(64) | Listing jar:file:/F:/apache-tomcat-7.0.67/webapps/consultservice/WEB-INF/lib/core-1.0-SNAPSHOT.jar!/com/bytc/domain/consult
    DEBUG [RMI TCP Connection(7)-127.0.0.1] ResolverUtil.listResources(178) | Found resource: /com/bytc/domain/consult/ConsultAttachment.class
    DEBUG [RMI TCP Connection(7)-127.0.0.1] ResolverUtil.listResources(178) | Found resource: /com/bytc/domain/consult/ConsultContent.class
    DEBUG [RMI TCP Connection(7)-127.0.0.1] ResolverUtil.listResources(178) | Found resource: /com/bytc/domain/consult/ConsultDeviceType.class
    DEBUG [RMI TCP Connection(7)-127.0.0.1] ResolverUtil.listResources(178) | Found resource: /com/bytc/domain/consult/ConsultType.class
    DEBUG [RMI TCP Connection(7)-127.0.0.1] ResolverUtil.listResources(178) | Found resource: /com/bytc/domain/consult/ConsultUserType.class
    DEBUG [RMI TCP Connection(7)-127.0.0.1] ResolverUtil.addIfMatching(250) | Checking to see if class com.bytc.domain.consult.ConsultAttachment matches criteria [is assignable to Object]
    DEBUG [RMI TCP Connection(7)-127.0.0.1] ResolverUtil.addIfMatching(250) | Checking to see if class com.bytc.domain.consult.ConsultContent matches criteria [is assignable to Object]
    DEBUG [RMI TCP Connection(7)-127.0.0.1] ResolverUtil.addIfMatching(250) | Checking to see if class com.bytc.domain.consult.ConsultDeviceType matches criteria [is assignable to Object]
    DEBUG [RMI TCP Connection(7)-127.0.0.1] ResolverUtil.addIfMatching(250) | Checking to see if class com.bytc.domain.consult.ConsultType matches criteria [is assignable to Object]
    DEBUG [RMI TCP Connection(7)-127.0.0.1] ResolverUtil.addIfMatching(250) | Checking to see if class com.bytc.domain.consult.ConsultUserType matches criteria [is assignable to Object]
    INFO [RMI TCP Connection(7)-127.0.0.1] PropertiesFactoryBean.loadProperties(172) | Loading properties file from URL [file:/opt/local/boYuConfig/quartz.properties]
    INFO [RMI TCP Connection(7)-127.0.0.1] StdSchedulerFactory.instantiate(1172) | Using default implementation for ThreadExecutor
    INFO [RMI TCP Connection(7)-127.0.0.1] SchedulerSignalerImpl.(61) | Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl
    INFO [RMI TCP Connection(7)-127.0.0.1] QuartzScheduler.(240) | Quartz Scheduler v.2.2.3 created.
    INFO [RMI TCP Connection(7)-127.0.0.1] RAMJobStore.initialize(155) | RAMJobStore initialized.
    INFO [RMI TCP Connection(7)-127.0.0.1] QuartzScheduler.initialize(305) | Scheduler meta-data: Quartz Scheduler (v2.2.3) 'org.springframework.scheduling.quartz.SchedulerFactoryBean#0' with instanceId 'NON_CLUSTERED'
    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 10 threads.
    Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered.

    INFO [RMI TCP Connection(7)-127.0.0.1] StdSchedulerFactory.instantiate(1327) | Quartz scheduler 'org.springframework.scheduling.quartz.SchedulerFactoryBean#0' initialized from an externally provided properties instance.
    INFO [RMI TCP Connection(7)-127.0.0.1] StdSchedulerFactory.instantiate(1331) | Quartz scheduler version: 2.2.3
    INFO [RMI TCP Connection(7)-127.0.0.1] QuartzScheduler.setJobFactory(2311) | JobFactory set to: org.springframework.scheduling.quartz.AdaptableJobFactory@c5ab451
    INFO [RMI TCP Connection(7)-127.0.0.1] StdSchedulerFactory.instantiate(1172) | Using default implementation for ThreadExecutor
    INFO [RMI TCP Connection(7)-127.0.0.1] SchedulerSignalerImpl.(61) | Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl
    INFO [RMI TCP Connection(7)-127.0.0.1] QuartzScheduler.(240) | Quartz Scheduler v.2.2.3 created.
    INFO [RMI TCP Connection(7)-127.0.0.1] RAMJobStore.initialize(155) | RAMJobStore initialized.
    INFO [RMI TCP Connection(7)-127.0.0.1] QuartzScheduler.initialize(305) | Scheduler meta-data: Quartz Scheduler (v2.2.3) 'org.springframework.scheduling.quartz.SchedulerFactoryBean#1' with instanceId 'NON_CLUSTERED'
    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 10 threads.
    Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered.

    INFO [RMI TCP Connection(7)-127.0.0.1] StdSchedulerFactory.instantiate(1327) | Quartz scheduler 'org.springframework.scheduling.quartz.SchedulerFactoryBean#1' initialized from an externally provided properties instance.
    INFO [RMI TCP Connection(7)-127.0.0.1] StdSchedulerFactory.instantiate(1331) | Quartz scheduler version: 2.2.3
    INFO [RMI TCP Connection(7)-127.0.0.1] QuartzScheduler.setJobFactory(2311) | JobFactory set to: org.springframework.scheduling.quartz.AdaptableJobFactory@62893fb9
    WARN [RMI TCP Connection(7)-127.0.0.1] XmlWebApplicationContext.refresh(546) | Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.scheduling.quartz.SchedulerFactoryBean#1' defined in class path resource [context/consult-spring-quartz.xml]: Invocation of init method failed; nested exception is org.quartz.JobPersistenceException: The job (DEFAULT.consultJobDetail) referenced by the trigger does not exist.
    INFO [RMI TCP Connection(7)-127.0.0.1] SchedulerFactoryBean.destroy(765) | Shutting down Quartz Scheduler
    INFO [RMI TCP Connection(7)-127.0.0.1] QuartzScheduler.shutdown(694) | Scheduler org.springframework.scheduling.quartz.SchedulerFactoryBean#0_$_NON_CLUSTERED shutting down.
    INFO [RMI TCP Connection(7)-127.0.0.1] QuartzScheduler.standby(613) | Scheduler org.springframework.scheduling.quartz.SchedulerFactoryBean#0_$_NON_CLUSTERED paused.
    INFO [RMI TCP Connection(7)-127.0.0.1] QuartzScheduler.shutdown(771) | Scheduler org.springframework.scheduling.quartz.SchedulerFactoryBean#0_$_NON_CLUSTERED shutdown complete.
    ERROR [RMI TCP Connection(7)-127.0.0.1] ContextLoader.initWebApplicationContext(351) | Context initialization failed
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.scheduling.quartz.SchedulerFactoryBean#1' defined in class path resource [context/consult-spring-quartz.xml]: Invocation of init method failed; nested exception is org.quartz.JobPersistenceException: The job (DEFAULT.consultJobDetail) referenced by the trigger does not exist.
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1578)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:753)
    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:839)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:538)
    at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:444)
    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:326)
    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5077)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5591)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
    at org.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1836)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:301)
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
    at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
    at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:618)
    at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:565)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:301)
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
    at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
    at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1468)
    at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:76)
    at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1309)
    at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1401)
    at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:829)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:357)
    at sun.rmi.transport.Transport$1.run(Transport.java:200)
    at sun.rmi.transport.Transport$1.run(Transport.java:197)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport.java:196)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:568)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:826)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:683)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:682)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
    Caused by: org.quartz.JobPersistenceException: The job (DEFAULT.consultJobDetail) referenced by the trigger does not exist.
    at org.quartz.simpl.RAMJobStore.storeTrigger(RAMJobStore.java:422)
    at org.quartz.core.QuartzScheduler.scheduleJob(QuartzScheduler.java:932)
    at org.quartz.impl.StdScheduler.scheduleJob(StdScheduler.java:258)
    at org.springframework.scheduling.quartz.SchedulerAccessor.addTriggerToScheduler(SchedulerAccessor.java:312)
    at org.springframework.scheduling.quartz.SchedulerAccessor.registerJobsAndTriggers(SchedulerAccessor.java:235)
    at org.springframework.scheduling.quartz.SchedulerFactoryBean.afterPropertiesSet(SchedulerFactoryBean.java:512)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1637)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1574)
    ... 57 more
    九月 10, 2017 10:51:50 上午 org.apache.catalina.core.StandardContext startInternal
    严重: One or more listeners failed to start. Full details will be found in the appropriate container log file
    九月 10, 2017 10:51:50 上午 org.apache.catalina.core.StandardContext startInternal
    严重: Context [/consultservice] startup failed due to previous errors
    九月 10, 2017 10:51:51 上午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
    严重: The web application [/consultservice] appears to have started a thread named [org.springframework.scheduling.quartz.SchedulerFactoryBean#1_QuartzSchedulerThread] but has failed to stop it. This is very likely to create a memory leak.
    [2017-09-10 10:51:51,177] Artifact consult-server-web:war: Error during artifact deployment. See server log for details.
    九月 10, 2017 10:51:52 上午 org.apache.catalina.startup.HostConfig deployDirectory
    信息: Deploying web application directory F:\apache-tomcat-7.0.67\webapps\manager
    九月 10, 2017 10:51:52 上午 org.apache.catalina.startup.HostConfig deployDirectory
    信息: Deployment of web application directory F:\apache-tomcat-7.0.67\webapps\manager has finished in 203 ms

    项目启动 初始化quartz配置的时候 出错的,实例化 SchedulerFactoryBean 出错的,感觉是关联指定的执行调度任务的类 出错的 。执行任务类 就是个普通的java类 没有继承没有实现 
    
    
    点赞 评论
  • qq_27158767
    qq_27158767 2017-09-10 07:09
    点赞 评论
  • lkhog
    lkhog 2017-09-11 03:08

    Invocation of init method failed; nested exception is org.quartz.JobPersistenceException: The job (DEFAULT.consultJobDetail) referenced by the trigger does not exist.检查一下个配置文件中trigger的配置。找不到trigger

    点赞 评论

相关推荐