HDC調(diào)試需求開(kāi)發(fā)(15萬(wàn)預(yù)算),能者速來(lái)!>>>
Exception in thread "Quartz Scheduler [fbidp_schedulerTarget]" org.springframework.scheduling.SchedulingException: Could not start Quartz Scheduler after delay; nested exception is org.quartz.SchedulerException: The Scheduler cannot be restarted after shutdown() has been called.
at org.springframework.scheduling.quartz.SchedulerFactoryBean$1.run(SchedulerFactoryBean.java:671)
Caused by: org.quartz.SchedulerException: The Scheduler cannot be restarted after shutdown() has been called.
at org.quartz.core.QuartzScheduler.start(QuartzScheduler.java:557)
at org.quartz.impl.StdScheduler.start(StdScheduler.java:142)
at org.springframework.scheduling.quartz.SchedulerFactoryBean$1.run(SchedulerFactoryBean.java:668)
HDC調(diào)試需求開(kāi)發(fā)(15萬(wàn)預(yù)算),能者速來(lái)!>>>
Support for specifying both a day-of-week AND a day-of-month parameter is not implemented.
google翻譯下,不支持指定參數(shù) ;
這是網(wǎng)上對(duì)于這個(gè)地方的理解? 看不太懂2)?:只能用在DayofMonth和DayofWeek兩個(gè)域。它也匹配域的任意值,但實(shí)際不會(huì)。因?yàn)镈ayofMonth和DayofWeek會(huì)相互影響。例如想在每月的20日觸發(fā)調(diào)度,不管20日到底是星期幾,則只能使用如下寫(xiě)法: 13 13 15 20 * ?, 其中最后一位只能用?,而不能使用*,如果使用*表示不管星期幾都會(huì)觸發(fā),實(shí)際上并不是這樣;
如果我就是想讓它周日到周一都觸發(fā)呢?
HDC調(diào)試需求開(kāi)發(fā)(15萬(wàn)預(yù)算),能者速來(lái)!>>>
2019-05-31 10:19:04.278 INFO 2832 --- [ restartedMain] org.quartz.core.QuartzScheduler : Scheduler RASScheduler_$_20160101-0008041559269139417 shutting down.
2019-05-31 10:19:04.278 INFO 2832 --- [ restartedMain] org.quartz.core.QuartzScheduler : Scheduler RASScheduler_$_20160101-0008041559269139417 paused.
2019-05-31 10:19:04.278 INFO 2832 --- [ restartedMain] org.quartz.core.QuartzScheduler : Scheduler RASScheduler_$_20160101-0008041559269139417 shutdown complete.
2019-05-31 10:19:04.291 INFO 2832 --- [ restartedMain] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closed
2019-05-31 10:19:05.185 INFO 2832 --- [ [RASScheduler]] o.s.s.quartz.SchedulerFactoryBean : Starting Quartz Scheduler now, after delay of 1 seconds
Exception in thread "Quartz Scheduler [RASScheduler]" org.springframework.scheduling.SchedulingException: Could not start Quartz Scheduler after delay; nested exception is org.quartz.SchedulerException: The Scheduler cannot be restarted after shutdown() has been called.
at org.springframework.scheduling.quartz.SchedulerFactoryBean$1.run(SchedulerFactoryBean.java:727)
Caused by: org.quartz.SchedulerException: The Scheduler cannot be restarted after shutdown() has been called.
at org.quartz.core.QuartzScheduler.start(QuartzScheduler.java:529)
at org.quartz.impl.StdScheduler.start(StdScheduler.java:142)
at org.springframework.scheduling.quartz.SchedulerFactoryBean$1.run(SchedulerFactoryBean.java:724)
HDC調(diào)試需求開(kāi)發(fā)(15萬(wàn)預(yù)算),能者速來(lái)!>>>
Freed 0 triggers from 'acquired' / 'blocked' state.
2019-05-22 14:59:00.548 INFO 11624 --- [ [RASScheduler]] o.s.s.quartz.LocalDataSourceJobStore : Recovering 0 jobs that were in-progress at the time of the last shut-down.
2019-05-22 14:59:00.548 INFO 11624 --- [ [RASScheduler]] o.s.s.quartz.LocalDataSourceJobStore : Recovery complete.
2019-05-22 14:59:00.553 INFO 11624 --- [ [RASScheduler]] o.s.s.quartz.LocalDataSourceJobStore : Removed 0 'complete' triggers.
2019-05-22 14:59:00.555 INFO 11624 --- [ [RASScheduler]] o.s.s.quartz.LocalDataSourceJobStore : Removed 0 stale fired job entries.
HDC調(diào)試需求開(kāi)發(fā)(15萬(wàn)預(yù)算),能者速來(lái)!>>>
----job.getJobName()--null
----SpringUtils--beanName--null
2019-05-22 13:23:57.137 INFO 9660 --- [duler_Worker-12] c.r.p.monitor.job.util.ScheduleJob : 任務(wù)開(kāi)始執(zhí)行 - 名稱:null 方法:null
2019-05-22 13:23:57.137 INFO 9660 --- [duler_Worker-12] c.r.p.monitor.job.util.ScheduleJob : 任務(wù)執(zhí)行失敗 - 名稱:null 方法:null
2019-05-22 13:23:57.137 ERROR 9660 --- [duler_Worker-12] c.r.p.monitor.job.util.ScheduleJob : 任務(wù)執(zhí)行異常 - :
java.lang.IllegalArgumentException: 'name' must not be null
at org.springframework.util.Assert.notNull(Assert.java:193) ~[spring-core-5.0.7.RELEASE.jar:5.0.7.RELEASE]
at org.springframework.beans.factory.BeanFactoryUtils.transformedBeanName(BeanFactoryUtils.java:74) ~[spring-beans-5.0.7.RELEASE.jar:5.0.7.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.transformedBeanName(AbstractBeanFactory.java:1122) ~[spring-beans-5.0.7.RELEASE.jar:5.0.7.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:242) ~[spring-beans-5.0.7.RELEASE.jar:5.0.7.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans-5.0.7.RELEASE.jar:5.0.7.RELEASE]
at com.ras.common.utils.spring.SpringUtils.getBean(SpringUtils.java:37) ~[classes/:na]
at com.ras.project.monitor.job.util.ScheduleRunnable.(ScheduleRunnable.java:26) ~[classes/:na]
at com.ras.project.monitor.job.util.ScheduleJob.executeInternal(ScheduleJob.java:83) ~[classes/:na]
at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:75) [spring-context-support-5.0.7.RELEASE.jar:5.0.7.RELEASE]
at org.quartz.core.JobRunShell.run(JobRunShell.java:202) [quartz-2.3.0.jar:na]
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573) [quartz-2.3.0.jar:na]
HDC調(diào)試需求開(kāi)發(fā)(15萬(wàn)預(yù)算),能者速來(lái)!>>>
2019-05-21 14:38:01.433 WARN 10480 --- [_ClusterManager] o.s.s.quartz.LocalDataSourceJobStore : This scheduler instance (20160101-0008041558420551959) is still active but was recovered by another instance in the cluster. This may cause inconsistent behavior.
HDC調(diào)試需求開(kāi)發(fā)(15萬(wàn)預(yù)算),能者速來(lái)!>>>
2019-05-14 16:56:27.198 WARN 11328 --- [_ClusterManager] o.s.s.quartz.LocalDataSourceJobStore : This scheduler instance (20160101-0008041557823889728) is still active but was recovered by another instance in the cluster. This may cause inconsistent behavior.
2019-05-14 16:56:42.203 WARN 11328 --- [_ClusterManager] o.s.s.quartz.LocalDataSourceJobStore : This scheduler instance (20160101-0008041557823889728) is still active but was recovered by another instance in the cluster. This may cause inconsistent behavior.
HDC調(diào)試需求開(kāi)發(fā)(15萬(wàn)預(yù)算),能者速來(lái)!>>> @Configuration public class CorsConfig extends WebMvcConfigurationSupport{ @Override protected void addCorsMappings(CorsRegistry registry) { registry .addMapping("/**")// 4對(duì)接口配置跨域設(shè)置 .allowedMethods("*")// 3允許任何方法(post、get等) .allowedHeaders("*")// 2允許任何頭 .allowedOrigins("*")//1允許任何域名使用, .allowCredentials(true);// 默認(rèn)不支持User Credentials } //swagger2 跨域配置 @Override protected void addResourceHandlers(ResourceHandlerRegistry registry) { registry.addResourceHandler("/**").addResourceLocations("classpath:/static/"); registry.addResourceHandler("doc.html") .addResourceLocations("classpath:/META-INF/resources/"); registry.addResourceHandler("/webjars/**") .addResourceLocations("classpath:/META-INF/resources/webjars/"); super.addResourceHandlers(registry); } }
問(wèn)題如下:
我已經(jīng)配置好,CORS,配置代碼如上,現(xiàn)在的問(wèn)題是.前端 使用localhost:8087 登陸,保存在session中的信息不會(huì)丟失,一切正常,但是使用192.169.0.22:8087的時(shí)候,在ie9的環(huán)境里,session保存的用戶信息就丟失了.經(jīng)理說(shuō)參考一下P3P的配置.但是百度了好久,沒(méi)有關(guān)于springboot下的p3p配置,參考了一下帖子里的配置,并沒(méi)有生效.所以想問(wèn)一下原因.以及解決方案.
我目前想到的是把session 換成 redis session試試,結(jié)果在使用redis的時(shí)候.發(fā)現(xiàn)redis 的包.和我在用的quartz包起沖突了,實(shí)在莫得辦法了.請(qǐng)教一下各位大佬. 報(bào)錯(cuò)信息 Description: An attempt was made to call the method org.quartz.Scheduler.getListenerManager()Lorg/quartz/ListenerManager; but it does not exist. Its class, org.quartz.Scheduler, is available from the following locations: jar:file:/C:/Users/Zmm/.m2/repository/org/quartz-scheduler/quartz/1.8.6/quartz-1.8.6.jar!/org/quartz/Scheduler.class It was loaded from the following location: file:/C:/Users/Zmm/.m2/repository/org/quartz-scheduler/quartz/1.8.6/quartz-1.8.6.jar Action: Correct the classpath of your application so that it contains a single, compatible version of org.quartz.Scheduler
HDC調(diào)試需求開(kāi)發(fā)(15萬(wàn)預(yù)算),能者速來(lái)!>>>
RegController.java
Controller Springmvc的方法: IMUsers.Main(nkname, password);
在RegController中調(diào)用IMUsers的Main執(zhí)行就錯(cuò)誤了
在IMUsers中創(chuàng)建一個(gè)Main方法,然后調(diào)用Main就沒(méi)有錯(cuò)。
IMUsers.java
public static final Logger LOGGER = LoggerFactory.getLogger(IMUsers.class); public static final JsonNodeFactory factory = new JsonNodeFactory(false); //35行 public static Credential credential = new ClientSecretCredential(Constants.APP_CLIENT_ID, Constants.APP_CLIENT_SECRET, Roles.USER_ROLE_APPADMIN); public static void Main(String username,String password){ ObjectNode datanode = JsonNodeFactory.instance.objectNode(); datanode.put("username",username); datanode.put("password", password); System.out.println(datanode); ObjectNode createNewIMUserSingleNode = IMUsers.createNewIMUserSingle(datanode); if (null != createNewIMUserSingleNode) { System.out.println("為空"); } } /** * 注冊(cè)IM用戶[單個(gè)] * * 給指定Constants.APPKEY創(chuàng)建一個(gè)新的用戶 * * @param dataNode * @return */ public static ObjectNode createNewIMUserSingle(ObjectNode dataNode) { ObjectNode objectNode = factory.objectNode(); // check Constants.APPKEY format if (!HTTPClientUtils.match("^(?!-)[0-9a-zA-Z\\-]+#[0-9a-zA-Z]+", Constants.APPKEY)) { LOGGER.error("Bad format of Constants.APPKEY: " + Constants.APPKEY); System.out.println("錯(cuò)誤"); objectNode.put("message", "Bad format of Constants.APPKEY"); return objectNode; } objectNode.removeAll(); // check properties that must be provided if (null != dataNode && !dataNode.has("username")) { LOGGER.error("Property that named username must be provided ."); objectNode.put("message", "Property that named username must be provided ."); return objectNode; } if (null != dataNode && !dataNode.has("password")) { LOGGER.error("Property that named password must be provided ."); objectNode.put("message", "Property that named password must be provided ."); return objectNode; } try { objectNode = HTTPClientUtils.sendHTTPRequest(EndPoints.USERS_URL, credential, dataNode, HTTPMethod.METHOD_POST); } catch (Exception e) { e.printStackTrace(); } return objectNode; }
java.lang.ClassNotFoundException: org.apache.http.HttpEntity
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)
at com.datanum.user.httpclient.api.IMUsers.(IMUsers.java:35)
at com.datanum.user.web.RegController.RegQQ(RegController.java:172)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:219)
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:132)
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:745)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:686)
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:925)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:936)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:838)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:812)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:124)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2440)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2429)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:724)