本文主要是介绍Warning logs 2024-03-09,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
Warning 1
将Java的版本升到17后报错
Groovy 和 Java 的版本不兼容
. ____ _ __ _ _/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \\\/ ___)| |_)| | | | | || (_| | ) ) ) )' |____| .__|_| |_|_| |_\__, | / / / /=========|_|==============|___/=/_/_/_/:: Spring Boot :: (v2.2.5.RELEASE)2024-03-09 16:35:33.419 INFO 162425 --- [ main] com.prose.home.ServletInitializer : Starting ServletInitializer v0.0.1-SNAPSHOT on hecs-283154 with PID 162425 (/ipkiss/apache-tomcat-9.0.85/webapps/home/WEB-INF/classes started by root in /ipkiss/apache-tomcat-9.0.85/bin)
2024-03-09 16:35:33.428 INFO 162425 --- [ main] com.prose.home.ServletInitializer : No active profile set, falling back to default profiles: default
java.lang.NoClassDefFoundError: Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7at org.codehaus.groovy.vmplugin.VMPluginFactory.<clinit>(VMPluginFactory.java:43)at org.codehaus.groovy.reflection.GroovyClassValueFactory.<clinit>(GroovyClassValueFactory.java:35)at org.codehaus.groovy.reflection.ClassInfo.<clinit>(ClassInfo.java:107)
java.lang.NoClassDefFoundError: Could not initialize class org.codehaus.groovy.reflection.ReflectionCacheat org.codehaus.groovy.runtime.dgmimpl.NumberNumberMetaMethod.<clinit>(NumberNumberMetaMethod.java:33) ~[groovy-2.5.9.jar:2.5.9]at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:na]at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) ~[na:na]at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[na:na]at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) ~[na:na]at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480) ~[na:na]at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.createMetaMethodFromClass(MetaClassRegistryImpl.java:258) ~[groovy-2.5.9.jar:2.5.9]at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.<init>(MetaClassRegistryImpl.java:111) ~[groovy-2.5.9.jar:2.5.9]at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.<init>(MetaClassRegistryImpl.java:86) ~[groovy-2.5.9.jar:2.5.9]at groovy.lang.GroovySystem.<clinit>(GroovySystem.java:36) ~[groovy-2.5.9.jar:2.5.9]at org.springframework.beans.factory.groovy.GroovyBeanDefinitionReader.<init>(GroovyBeanDefinitionReader.java:150) ~[spring-beans-5.2.4.RELEASE.jar:5.2.4.RELEASE]at org.springframework.boot.BeanDefinitionLoader.<init>(BeanDefinitionLoader.java:85) ~[spring-boot-2.2.5.RELEASE.jar:2.2.5.RELEASE]at org.springframework.boot.SpringApplication.createBeanDefinitionLoader(SpringApplication.java:738) ~[spring-boot-2.2.5.RELEASE.jar:2.2.5.RELEASE]at org.springframework.boot.SpringApplication.load(SpringApplication.java:681) ~[spring-boot-2.2.5.RELEASE.jar:2.2.5.RELEASE]at org.springframework.boot.SpringApplication.prepareContext(SpringApplication.java:392) ~[spring-boot-2.2.5.RELEASE.jar:2.2.5.RELEASE]at org.springframework.boot.SpringApplication.run(SpringApplication.java:314) ~[spring-boot-2.2.5.RELEASE.jar:2.2.5.RELEASE]at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:152) ~[spring-boot-2.2.5.RELEASE.jar:2.2.5.RELEASE]at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:132) ~[spring-boot-2.2.5.RELEASE.jar:2.2.5.RELEASE]at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:92) ~[spring-boot-2.2.5.RELEASE.jar:2.2.5.RELEASE]at org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:172) ~[spring-web-5.2.4.RELEASE.jar:5.2.4.RELEASE]at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4904) ~[catalina.jar:9.0.85]at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171) ~[catalina.jar:9.0.85]at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:683) ~[catalina.jar:9.0.85]at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:658) ~[catalina.jar:9.0.85]at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:661) ~[catalina.jar:9.0.85]at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1025) ~[catalina.jar:9.0.85]at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1919) ~[catalina.jar:9.0.85]at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) ~[na:na]at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[na:na]at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) ~[tomcat-util.jar:9.0.85]at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:123) ~[na:na]at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:826) ~[catalina.jar:9.0.85]at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:476) ~[catalina.jar:9.0.85]at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1619) ~[catalina.jar:9.0.85]at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:318) ~[catalina.jar:9.0.85]at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:114) ~[catalina.jar:9.0.85]at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402) ~[catalina.jar:9.0.85]at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:345) ~[catalina.jar:9.0.85]at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:893) ~[catalina.jar:9.0.85]at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:794) ~[catalina.jar:9.0.85]at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171) ~[catalina.jar:9.0.85]at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1332) ~[catalina.jar:9.0.85]at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1322) ~[catalina.jar:9.0.85]at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[na:na]at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) ~[tomcat-util.jar:9.0.85]at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:145) ~[na:na]at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:866) ~[catalina.jar:9.0.85]at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:248) ~[catalina.jar:9.0.85]at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171) ~[catalina.jar:9.0.85]at org.apache.catalina.core.StandardService.startInternal(StandardService.java:433) ~[catalina.jar:9.0.85]at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171) ~[catalina.jar:9.0.85]at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:921) ~[catalina.jar:9.0.85]at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171) ~[catalina.jar:9.0.85]at org.apache.catalina.startup.Catalina.start(Catalina.java:772) ~[catalina.jar:9.0.85]at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[na:na]at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na]at java.base/java.lang.reflect.Method.invoke(Method.java:568) ~[na:na]at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:347) ~[bootstrap.jar:9.0.85]at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:478) ~[bootstrap.jar:9.0.85]
Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.NoClassDefFoundError: Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7 [in thread "main"]at org.codehaus.groovy.vmplugin.VMPluginFactory.<clinit>(VMPluginFactory.java:43) ~[groovy-2.5.9.jar:2.5.9]at org.codehaus.groovy.reflection.GroovyClassValueFactory.<clinit>(GroovyClassValueFactory.java:35) ~[groovy-2.5.9.jar:2.5.9]at org.codehaus.groovy.reflection.ClassInfo.<clinit>(ClassInfo.java:107) ~[groovy-2.5.9.jar:2.5.9]at org.codehaus.groovy.reflection.ReflectionCache.getCachedClass(ReflectionCache.java:95) ~[groovy-2.5.9.jar:2.5.9]at org.codehaus.groovy.reflection.ReflectionCache.<clinit>(ReflectionCache.java:39) ~[groovy-2.5.9.jar:2.5.9]at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.registerMethods(MetaClassRegistryImpl.java:210) ~[groovy-2.5.9.jar:2.5.9]at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.<init>(MetaClassRegistryImpl.java:108) ~[groovy-2.5.9.jar:2.5.9]... 52 common frames omitted
fix
将Java的版本降到8
这篇关于Warning logs 2024-03-09的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!