提示错误24 common frames omitted
1 E:\xwj\attendanceAlert\target>java -jar attendanceAlert-0.0.1-SNAPSHOT.jar
2
3 . ____ _ __ _ _
4 /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
5 ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
6 \\/ ___)| |_)| | | | | || (_| | ) ) ) )
7 ' |____| .__|_| |_|_| |_\__, | / / / /
8 =========|_|==============|___/=/_/_/_/
9 :: Spring Boot :: (v2.4.5)
10
11 2023-04-11 11:24:59.337 INFO 8060 --- [ main] c.e.c.a.AutoProcessAppl
12 ication : Starting AutoProcessApplication v0.0.1-SNAPSHOT using Java 1
13 .8.0_301 on USER-20220323DF with PID 8060 (E:\xwj\attendanceAlert\target\attenda
14 nceAlert-0.0.1-SNAPSHOT.jar started by Administrator in E:\xwj\attendanceAlert\t
15 arget)
16 2023-04-11 11:24:59.341 INFO 8060 --- [ main] c.e.c.a.AutoProcessAppl
17 ication : No active profile set, falling back to default profiles: def
18 ault
19 2023-04-11 11:25:00.775 INFO 8060 --- [ main] trationDelegate$BeanPos
20 tProcessorChecker : Bean 'org.springframework.ws.config.annotation.DelegatingWsC
21 onfiguration' of type [org.springframework.ws.config.annotation.DelegatingWsConf
22 iguration$$EnhancerBySpringCGLIB$$ffd70493] is not eligible for getting processe
23 d by all BeanPostProcessors (for example: not eligible for auto-proxying)
24 2023-04-11 11:25:00.859 INFO 8060 --- [ main] .w.s.a.s.AnnotationActi
25 onEndpointMapping : Supporting [WS-Addressing August 2004, WS-Addressing 1.0]
26 2023-04-11 11:25:01.475 INFO 8060 --- [ main] o.s.b.w.embedded.tomcat
27 .TomcatWebServer : Tomcat initialized with port(s): 8080 (http)
28 2023-04-11 11:25:01.494 INFO 8060 --- [ main] o.apache.catalina.core.
29 StandardService : Starting service [Tomcat]
30 2023-04-11 11:25:01.495 INFO 8060 --- [ main] org.apache.catalina.cor
31 e.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.45]
32 2023-04-11 11:25:01.617 INFO 8060 --- [ main] o.a.c.c.C.[Tomcat].[loc
33 alhost].[/] : Initializing Spring embedded WebApplicationContext
34 2023-04-11 11:25:01.617 INFO 8060 --- [ main] w.s.c.ServletWebServerA
35 pplicationContext : Root WebApplicationContext: initialization completed in 2182
36 ms
37 2023-04-11 11:25:01.745 WARN 8060 --- [ main] ConfigServletWebServerA
38 pplicationContext : Exception encountered during context initialization - cancel
39 ling refresh attempt: org.springframework.beans.factory.BeanCreationException: E
40 rror creating bean with name 'webServiceClient' defined in URL [jar:file:/E:/xwj
41 /attendanceAlert/target/attendanceAlert-0.0.1-SNAPSHOT.jar!/BOOT-INF/classes!/cn
42 /eupa/cn/autoprocess/landray/WebServiceClient.class]: Initialization of bean fai
43 led; nested exception is java.lang.IllegalStateException: Encountered invalid @S
44 cheduled method 'ctest': Cron expression must consist of 6 fields (found 7 in "0
45 0/10 * * * ? *")
46 2023-04-11 11:25:01.749 INFO 8060 --- [ main] o.apache.catalina.core.
47 StandardService : Stopping service [Tomcat]
48 2023-04-11 11:25:01.778 INFO 8060 --- [ main] ConditionEvaluationRepo
49 rtLoggingListener :
50
51 Error starting ApplicationContext. To display the conditions report re-run your
52 application with 'debug' enabled.
53 2023-04-11 11:25:01.820 ERROR 8060 --- [ main] o.s.boot.SpringApplicat
54 ion : Application run failed
55
56 org.springframework.beans.factory.BeanCreationException: Error creating bean wit
57 h name 'webServiceClient' defined in URL [jar:file:/E:/xwj/attendanceAlert/targe
58 t/attendanceAlert-0.0.1-SNAPSHOT.jar!/BOOT-INF/classes!/cn/eupa/cn/autoprocess/l
59 andray/WebServiceClient.class]: Initialization of bean failed; nested exception
60 is java.lang.IllegalStateException: Encountered invalid @Scheduled method 'ctest
61 ': Cron expression must consist of 6 fields (found 7 in "0 0/10 * * * ? *")
62 at org.springframework.beans.factory.support.AbstractAutowireCapableBean
63 Factory.doCreateBean(AbstractAutowireCapableBeanFactory.java:610) ~[spring-beans
64 -5.3.6.jar!/:5.3.6]
65 at org.springframework.beans.factory.support.AbstractAutowireCapableBean
66 Factory.createBean(AbstractAutowireCapableBeanFactory.java:524) ~[spring-beans-5
67 .3.6.jar!/:5.3.6]
68 at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$
69 doGetBean$0(AbstractBeanFactory.java:335) ~[spring-beans-5.3.6.jar!/:5.3.6]
70 at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
71 y.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.3.6.jar!/
72 :5.3.6]
73 at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBe
74 an(AbstractBeanFactory.java:333) ~[spring-beans-5.3.6.jar!/:5.3.6]
75 at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
76 (AbstractBeanFactory.java:208) ~[spring-beans-5.3.6.jar!/:5.3.6]
77 at org.springframework.beans.factory.support.DefaultListableBeanFactory.
78 preInstantiateSingletons(DefaultListableBeanFactory.java:944) ~[spring-beans-5.3
79 .6.jar!/:5.3.6]
80 at org.springframework.context.support.AbstractApplicationContext.finish
81 BeanFactoryInitialization(AbstractApplicationContext.java:918) ~[spring-context-
82 5.3.6.jar!/:5.3.6]
83 at org.springframework.context.support.AbstractApplicationContext.refres
84 h(AbstractApplicationContext.java:583) ~[spring-context-5.3.6.jar!/:5.3.6]
85 at org.springframework.boot.web.servlet.context.ServletWebServerApplicat
86 ionContext.refresh(ServletWebServerApplicationContext.java:144) ~[spring-boot-2.
87 4.5.jar!/:2.4.5]
88 at org.springframework.boot.SpringApplication.refresh(SpringApplication.
89 java:782) [spring-boot-2.4.5.jar!/:2.4.5]
90 at org.springframework.boot.SpringApplication.refresh(SpringApplication.
91 java:774) [spring-boot-2.4.5.jar!/:2.4.5]
92 at org.springframework.boot.SpringApplication.refreshContext(SpringAppli
93 cation.java:439) [spring-boot-2.4.5.jar!/:2.4.5]
94 at org.springframework.boot.SpringApplication.run(SpringApplication.java
95 :339) [spring-boot-2.4.5.jar!/:2.4.5]
96 at org.springframework.boot.SpringApplication.run(SpringApplication.java
97 :1340) [spring-boot-2.4.5.jar!/:2.4.5]
98 at org.springframework.boot.SpringApplication.run(SpringApplication.java
99 :1329) [spring-boot-2.4.5.jar!/:2.4.5]
100 at cn.eupa.cn.autoprocess.AutoProcessApplication.main(AutoProcessApplica
101 tion.java:12) [classes!/:0.0.1-SNAPSHOT]
102 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.
103 0_301]
104 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.
105 0_301]
106 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:
107 1.8.0_301]
108 at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.8.0_301]
109 at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner
110 .java:49) [attendanceAlert-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT]
111 at org.springframework.boot.loader.Launcher.launch(Launcher.java:108) [a
112 ttendanceAlert-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT]
113 at org.springframework.boot.loader.Launcher.launch(Launcher.java:58) [at
114 tendanceAlert-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT]
115 at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:88)
116 [attendanceAlert-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT]
117 Caused by: java.lang.IllegalStateException: Encountered invalid @Scheduled metho
118 d 'ctest': Cron expression must consist of 6 fields (found 7 in "0 0/10 * * * ?
119 *")
120 at org.springframework.scheduling.annotation.ScheduledAnnotationBeanPost
121 Processor.processScheduled(ScheduledAnnotationBeanPostProcessor.java:511) ~[spri
122 ng-context-5.3.6.jar!/:5.3.6]
123 at org.springframework.scheduling.annotation.ScheduledAnnotationBeanPost
124 Processor.lambda$null$1(ScheduledAnnotationBeanPostProcessor.java:374) ~[spring-
125 context-5.3.6.jar!/:5.3.6]
126 at java.lang.Iterable.forEach(Unknown Source) ~[na:1.8.0_301]
127 at org.springframework.scheduling.annotation.ScheduledAnnotationBeanPost
128 Processor.lambda$postProcessAfterInitialization$2(ScheduledAnnotationBeanPostPro
129 cessor.java:374) ~[spring-context-5.3.6.jar!/:5.3.6]
130 at java.util.LinkedHashMap.forEach(Unknown Source) ~[na:1.8.0_301]
131 at org.springframework.scheduling.annotation.ScheduledAnnotationBeanPost
132 Processor.postProcessAfterInitialization(ScheduledAnnotationBeanPostProcessor.ja
133 va:373) ~[spring-context-5.3.6.jar!/:5.3.6]
134 at org.springframework.beans.factory.support.AbstractAutowireCapableBean
135 Factory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFa
136 ctory.java:437) ~[spring-beans-5.3.6.jar!/:5.3.6]
137 at org.springframework.beans.factory.support.AbstractAutowireCapableBean
138 Factory.initializeBean(AbstractAutowireCapableBeanFactory.java:1790) ~[spring-be
139 ans-5.3.6.jar!/:5.3.6]
140 at org.springframework.beans.factory.support.AbstractAutowireCapableBean
141 Factory.doCreateBean(AbstractAutowireCapableBeanFactory.java:602) ~[spring-beans
142 -5.3.6.jar!/:5.3.6]
143 ... 24 common frames omitted
错误原因:
Spring Task是Quartz的弱版,quartz支持年份,而Spring Task不支持。
也就是说,这个解析cron的地方,只支持六位。
解决方法:
去掉一位即可
浙公网安备 33010602011771号