HDC调试需求开发(15万预算),能者速来!>>>
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调试需求开发(15万预算),能者速来!>>>
Support for specifying both a day-of-week AND a day-of-month parameter is not implemented.
google翻译下,不支持指定参数 ;
这是网上对于这个地方的理解? 看不太懂2)?:只能用在DayofMonth和DayofWeek两个域。它也匹配域的任意值,但实际不会。因为DayofMonth和DayofWeek会相互影响。例如想在每月的20日触发调度,不管20日到底是星期几,则只能使用如下写法: 13 13 15 20 * ?, 其中最后一位只能用?,而不能使用*,如果使用*表示不管星期几都会触发,实际上并不是这样;
如果我就是想让它周日到周一都触发呢?
HDC调试需求开发(15万预算),能者速来!>>>
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调试需求开发(15万预算),能者速来!>>>
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调试需求开发(15万预算),能者速来!>>>
----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 : 任务开始执行 - 名称:null 方法:null
2019-05-22 13:23:57.137 INFO 9660 --- [duler_Worker-12] c.r.p.monitor.job.util.ScheduleJob : 任务执行失败 - 名称:null 方法:null
2019-05-22 13:23:57.137 ERROR 9660 --- [duler_Worker-12] c.r.p.monitor.job.util.ScheduleJob : 任务执行异常 - :
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调试需求开发(15万预算),能者速来!>>>
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调试需求开发(15万预算),能者速来!>>>
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调试需求开发(15万预算),能者速来!>>> @Configuration public class CorsConfig extends WebMvcConfigurationSupport{ @Override protected void addCorsMappings(CorsRegistry registry) { registry .addMapping("/**")// 4对接口配置跨域设置 .allowedMethods("*")// 3允许任何方法(post、get等) .allowedHeaders("*")// 2允许任何头 .allowedOrigins("*")//1允许任何域名使用, .allowCredentials(true);// 默认不支持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); } }
问题如下:
我已经配置好,CORS,配置代码如上,现在的问题是.前端 使用localhost:8087 登陆,保存在session中的信息不会丢失,一切正常,但是使用192.169.0.22:8087的时候,在ie9的环境里,session保存的用户信息就丢失了.经理说参考一下P3P的配置.但是百度了好久,没有关于springboot下的p3p配置,参考了一下帖子里的配置,并没有生效.所以想问一下原因.以及解决方案.
我目前想到的是把session 换成 redis session试试,结果在使用redis的时候.发现redis 的包.和我在用的quartz包起冲突了,实在莫得办法了.请教一下各位大佬. 报错信息 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调试需求开发(15万预算),能者速来!>>>
RegController.java
Controller Springmvc的方法: IMUsers.Main(nkname, password);
在RegController中调用IMUsers的Main执行就错误了
在IMUsers中创建一个Main方法,然后调用Main就没有错。
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("为空"); } } /** * 注册IM用户[单个] * * 给指定Constants.APPKEY创建一个新的用户 * * @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("错误"); 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)