Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the problem of wrong Error processing condition in spring-boot Startup Times

2025-03-10 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces the relevant knowledge of "how to solve the wrong Error processing condition problem of spring-boot startup times". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Spring-boot starts the Times with the following exception

Java.lang.IllegalStateException: Error processing condition on org.springframework.boot.autoconfigure.jmx.JmxAutoConfiguration.mbeanExporter

At org.springframework.boot.autoconfigure.condition.SpringBootCondition.matches (SpringBootCondition.java:59) ~ [spring-boot-autoconfigure-2.1.6.RELEASE.jar:2.1.6.RELEASE]

At org.springframework.context.annotation.ConditionEvaluator.shouldSkip (ConditionEvaluator.java:108) ~ [spring-context-5.1.8.RELEASE.jar:5.1.8.RELEASE]

At org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitionsForBeanMethod (ConfigurationClassBeanDefinitionReader.java:181) ~ [spring-context-5.1.8.RELEASE.jar:5.1.8.RELEASE]

At org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitionsForConfigurationClass (ConfigurationClassBeanDefinitionReader.java:141) ~ [spring-context-5.1.8.RELEASE.jar:5.1.8.RELEASE]

At org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitions (ConfigurationClassBeanDefinitionReader.java:117) ~ [spring-context-5.1.8.RELEASE.jar:5.1.8.RELEASE]

At org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions (ConfigurationClassPostProcessor.java:327) ~ [spring-context-5.1.8.RELEASE.jar:5.1.8.RELEASE]

At org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry (ConfigurationClassPostProcessor.java:232) ~ [spring-context-5.1.8.RELEASE.jar:5.1.8.RELEASE]

At org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors (PostProcessorRegistrationDelegate.java:275) ~ [spring-context-5.1.8.RELEASE.jar:5.1.8.RELEASE]

At org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors (PostProcessorRegistrationDelegate.java:95) ~ [spring-context-5.1.8.RELEASE.jar:5.1.8.RELEASE]

At org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors (AbstractApplicationContext.java:705) ~ [spring-context-5.1.8.RELEASE.jar:5.1.8.RELEASE]

At org.springframework.context.support.AbstractApplicationContext.refresh (AbstractApplicationContext.java:531) ~ [spring-context-5.1.8.RELEASE.jar:5.1.8.RELEASE]

At org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh (ServletWebServerApplicationContext.java:140) ~ [spring-boot-2.1.6.RELEASE.jar:2.1.6.RELEASE]

At org.springframework.boot.SpringApplication.refresh (SpringApplication.java:742) [spring-boot-2.1.6.RELEASE.jar:2.1.6.RELEASE]

At org.springframework.boot.SpringApplication.refreshContext (SpringApplication.java:389) [spring-boot-2.1.6.RELEASE.jar:2.1.6.RELEASE]

At org.springframework.boot.SpringApplication.run (SpringApplication.java:311) [spring-boot-2.1.6.RELEASE.jar:2.1.6.RELEASE]

At org.springframework.boot.SpringApplication.run (SpringApplication.java:1213) [spring-boot-2.1.6.RELEASE.jar:2.1.6.RELEASE]

At org.springframework.boot.SpringApplication.run (SpringApplication.java:1202) [spring-boot-2.1.6.RELEASE.jar:2.1.6.RELEASE]

At com.test.JavaApplication.main (JavaApplication.java:13) [classes/:na]

Caused by: java.lang.IllegalStateException: Failed to introspect Class [org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration] from ClassLoader [sun.misc.Launcher$AppClassLoader@18b4aac2]

At org.springframework.util.ReflectionUtils.getDeclaredMethods (ReflectionUtils.java:507) ~ [spring-core-5.1.8.RELEASE.jar:5.1.8.RELEASE]

At org.springframework.util.ReflectionUtils.doWithMethods (ReflectionUtils.java:404) ~ [spring-core-5.1.8.RELEASE.jar:5.1.8.RELEASE]

At org.springframework.util.ReflectionUtils.doWithMethods (ReflectionUtils.java:389) ~ [spring-core-5.1.8.RELEASE.jar:5.1.8.RELEASE]

At org.springframework.util.ReflectionUtils.getUniqueDeclaredMethods (ReflectionUtils.java:447) ~ [spring-core-5.1.8.RELEASE.jar:5.1.8.RELEASE]

At java.util.concurrent.ConcurrentHashMap.computeIfAbsent (ConcurrentHashMap.java:1660) ~ [na:1.8.0_171]

At org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryMethod (AbstractAutowireCapableBeanFactory.java:738) ~ [spring-beans-5.1.8.RELEASE.jar:5.1.8.RELEASE]

At org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineTargetType (AbstractAutowireCapableBeanFactory.java:679) ~ [spring-beans-5.1.8.RELEASE.jar:5.1.8.RELEASE]

At org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType (AbstractAutowireCapableBeanFactory.java:647) ~ [spring-beans-5.1.8.RELEASE.jar:5.1.8.RELEASE]

At org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean (AbstractBeanFactory.java:1518) ~ [spring-beans-5.1.8.RELEASE.jar:5.1.8.RELEASE]

At org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean (AbstractBeanFactory.java:1023) ~ [spring-beans-5.1.8.RELEASE.jar:5.1.8.RELEASE]

At org.springframework.boot.autoconfigure.condition.BeanTypeRegistry.addBeanTypeForNonAliasDefinition (BeanTypeRegistry.java:190) ~ [spring-boot-autoconfigure-2.1.6.RELEASE.jar:2.1.6.RELEASE]

At org.springframework.boot.autoconfigure.condition.BeanTypeRegistry.addBeanTypeForNonAliasDefinition (BeanTypeRegistry.java:157) ~ [spring-boot-autoconfigure-2.1.6.RELEASE.jar:2.1.6.RELEASE]

At org.springframework.boot.autoconfigure.condition.BeanTypeRegistry.addBeanType (BeanTypeRegistry.java:150) ~ [spring-boot-autoconfigure-2.1.6.RELEASE.jar:2.1.6.RELEASE]

At org.springframework.boot.autoconfigure.condition.BeanTypeRegistry.updateTypesIfNecessary (BeanTypeRegistry.java:138) ~ [spring-boot-autoconfigure-2.1.6.RELEASE.jar:2.1.6.RELEASE]

At java.util.Iterator.forEachRemaining (Iterator.java:116) ~ [na:1.8.0_171]

At org.springframework.boot.autoconfigure.condition.BeanTypeRegistry.updateTypesIfNecessary (BeanTypeRegistry.java:133) ~ [spring-boot-autoconfigure-2.1.6.RELEASE.jar:2.1.6.RELEASE]

At org.springframework.boot.autoconfigure.condition.BeanTypeRegistry.getNamesForType (BeanTypeRegistry.java:97) ~ [spring-boot-autoconfigure-2.1.6.RELEASE.jar:2.1.6.RELEASE]

At org.springframework.boot.autoconfigure.condition.OnBeanCondition.collectBeanNamesForType (OnBeanCondition.java:268) ~ [spring-boot-autoconfigure-2.1.6.RELEASE.jar:2.1.6.RELEASE]

At org.springframework.boot.autoconfigure.condition.OnBeanCondition.getBeanNamesForType (OnBeanCondition.java:261) ~ [spring-boot-autoconfigure-2.1.6.RELEASE.jar:2.1.6.RELEASE]

At org.springframework.boot.autoconfigure.condition.OnBeanCondition.getBeanNamesForType (OnBeanCondition.java:250) ~ [spring-boot-autoconfigure-2.1.6.RELEASE.jar:2.1.6.RELEASE]

At org.springframework.boot.autoconfigure.condition.OnBeanCondition.getMatchingBeans (OnBeanCondition.java:170) ~ [spring-boot-autoconfigure-2.1.6.RELEASE.jar:2.1.6.RELEASE]

At org.springframework.boot.autoconfigure.condition.OnBeanCondition.getMatchOutcome (OnBeanCondition.java:145) ~ [spring-boot-autoconfigure-2.1.6.RELEASE.jar:2.1.6.RELEASE]

At org.springframework.boot.autoconfigure.condition.SpringBootCondition.matches (SpringBootCondition.java:46) ~ [spring-boot-autoconfigure-2.1.6.RELEASE.jar:2.1.6.RELEASE]

... 17 common frames omitted

Caused by: java.lang.NoClassDefFoundError: org/springframework/web/filter/FormContentFilter

At java.lang.ClassLoader.defineClass1 (Native Method) ~ [na:1.8.0_171]

At java.lang.ClassLoader.defineClass (ClassLoader.java:763) ~ [na:1.8.0_171]

At java.security.SecureClassLoader.defineClass (SecureClassLoader.java:142) ~ [na:1.8.0_171]

At java.net.URLClassLoader.defineClass (URLClassLoader.java:467) ~ [na:1.8.0_171]

At java.net.URLClassLoader.access$100 (URLClassLoader.java:73) ~ [na:1.8.0_171]

At java.net.URLClassLoader$1.run (URLClassLoader.java:368) ~ [na:1.8.0_171]

At java.net.URLClassLoader$1.run (URLClassLoader.java:362) ~ [na:1.8.0_171]

At java.security.AccessController.doPrivileged (Native Method) ~ [na:1.8.0_171]

At java.net.URLClassLoader.findClass (URLClassLoader.java:361) ~ [na:1.8.0_171]

At java.lang.ClassLoader.loadClass (ClassLoader.java:424) ~ [na:1.8.0_171]

At sun.misc.Launcher$AppClassLoader.loadClass (Launcher.java:349) ~ [na:1.8.0_171]

At java.lang.ClassLoader.loadClass (ClassLoader.java:357) ~ [na:1.8.0_171]

At java.lang.Class.getDeclaredMethods0 (Native Method) ~ [na:1.8.0_171]

At java.lang.Class.privateGetDeclaredMethods (Class.java:2701) ~ [na:1.8.0_171]

At java.lang.Class.getDeclaredMethods (Class.java:1975) ~ [na:1.8.0_171]

At org.springframework.util.ReflectionUtils.getDeclaredMethods (ReflectionUtils.java:489) ~ [spring-core-5.1.8.RELEASE.jar:5.1.8.RELEASE]

... 39 common frames omitted

Caused by: java.lang.ClassNotFoundException: org.springframework.web.filter.FormContentFilter

At java.net.URLClassLoader.findClass (URLClassLoader.java:381) ~ [na:1.8.0_171]

At java.lang.ClassLoader.loadClass (ClassLoader.java:424) ~ [na:1.8.0_171]

At sun.misc.Launcher$AppClassLoader.loadClass (Launcher.java:349) ~ [na:1.8.0_171]

At java.lang.ClassLoader.loadClass (ClassLoader.java:357) ~ [na:1.8.0_171]

... 55 common frames omitted

2019-07-12 10 o.s.boot.SpringApplication 39 Unable to close ApplicationContext 50.264 WARN 61498-[main]

Java.lang.IllegalStateException: Failed to introspect Class [org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration] from ClassLoader [sun.misc.Launcher$AppClassLoader@18b4aac2]

At org.springframework.util.ReflectionUtils.getDeclaredMethods (ReflectionUtils.java:507) ~ [spring-core-5.1.8.RELEASE.jar:5.1.8.RELEASE]

At org.springframework.util.ReflectionUtils.doWithMethods (ReflectionUtils.java:404) ~ [spring-core-5.1.8.RELEASE.jar:5.1.8.RELEASE]

At org.springframework.util.ReflectionUtils.doWithMethods (ReflectionUtils.java:389) ~ [spring-core-5.1.8.RELEASE.jar:5.1.8.RELEASE]

At org.springframework.util.ReflectionUtils.getUniqueDeclaredMethods (ReflectionUtils.java:447) ~ [spring-core-5.1.8.RELEASE.jar:5.1.8.RELEASE]

At java.util.concurrent.ConcurrentHashMap.computeIfAbsent (ConcurrentHashMap.java:1660) ~ [na:1.8.0_171]

At org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryMethod (AbstractAutowireCapableBeanFactory.java:738) ~ [spring-beans-5.1.8.RELEASE.jar:5.1.8.RELEASE]

At org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineTargetType (AbstractAutowireCapableBeanFactory.java:679) ~ [spring-beans-5.1.8.RELEASE.jar:5.1.8.RELEASE]

At org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType (AbstractAutowireCapableBeanFactory.java:647) ~ [spring-beans-5.1.8.RELEASE.jar:5.1.8.RELEASE]

At org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean (AbstractBeanFactory.java:1518) ~ [spring-beans-5.1.8.RELEASE.jar:5.1.8.RELEASE]

At org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType (DefaultListableBeanFactory.java:511) ~ [spring-beans-5.1.8.RELEASE.jar:5.1.8.RELEASE]

At org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType (DefaultListableBeanFactory.java:481) ~ [spring-beans-5.1.8.RELEASE.jar:5.1.8.RELEASE]

At org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType (DefaultListableBeanFactory.java:602) ~ [spring-beans-5.1.8.RELEASE.jar:5.1.8.RELEASE]

At org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType (DefaultListableBeanFactory.java:594) ~ [spring-beans-5.1.8.RELEASE.jar:5.1.8.RELEASE]

At org.springframework.context.support.AbstractApplicationContext.getBeansOfType (AbstractApplicationContext.java:1226) ~ [spring-context-5.1.8.RELEASE.jar:5.1.8.RELEASE]

At org.springframework.boot.SpringApplication.getExitCodeFromMappedException (SpringApplication.java:864) [spring-boot-2.1.6.RELEASE.jar:2.1.6.RELEASE]

At org.springframework.boot.SpringApplication.getExitCodeFromException (SpringApplication.java:852) [spring-boot-2.1.6.RELEASE.jar:2.1.6.RELEASE]

At org.springframework.boot.SpringApplication.handleExitCode (SpringApplication.java:839) [spring-boot-2.1.6.RELEASE.jar:2.1.6.RELEASE]

At org.springframework.boot.SpringApplication.handleRunFailure (SpringApplication.java:790) [spring-boot-2.1.6.RELEASE.jar:2.1.6.RELEASE]

At org.springframework.boot.SpringApplication.run (SpringApplication.java:321) [spring-boot-2.1.6.RELEASE.jar:2.1.6.RELEASE]

At org.springframework.boot.SpringApplication.run (SpringApplication.java:1213) [spring-boot-2.1.6.RELEASE.jar:2.1.6.RELEASE]

At org.springframework.boot.SpringApplication.run (SpringApplication.java:1202) [spring-boot-2.1.6.RELEASE.jar:2.1.6.RELEASE]

At com.test.JavaApplication.main (JavaApplication.java:13) [classes/:na]

Caused by: java.lang.NoClassDefFoundError: org/springframework/web/filter/FormContentFilter

At java.lang.ClassLoader.defineClass1 (Native Method) ~ [na:1.8.0_171]

At java.lang.ClassLoader.defineClass (ClassLoader.java:763) ~ [na:1.8.0_171]

At java.security.SecureClassLoader.defineClass (SecureClassLoader.java:142) ~ [na:1.8.0_171]

At java.net.URLClassLoader.defineClass (URLClassLoader.java:467) ~ [na:1.8.0_171]

At java.net.URLClassLoader.access$100 (URLClassLoader.java:73) ~ [na:1.8.0_171]

At java.net.URLClassLoader$1.run (URLClassLoader.java:368) ~ [na:1.8.0_171]

At java.net.URLClassLoader$1.run (URLClassLoader.java:362) ~ [na:1.8.0_171]

At java.security.AccessController.doPrivileged (Native Method) ~ [na:1.8.0_171]

At java.net.URLClassLoader.findClass (URLClassLoader.java:361) ~ [na:1.8.0_171]

At java.lang.ClassLoader.loadClass (ClassLoader.java:424) ~ [na:1.8.0_171]

At sun.misc.Launcher$AppClassLoader.loadClass (Launcher.java:349) ~ [na:1.8.0_171]

At java.lang.ClassLoader.loadClass (ClassLoader.java:357) ~ [na:1.8.0_171]

At java.lang.Class.getDeclaredMethods0 (Native Method) ~ [na:1.8.0_171]

At java.lang.Class.privateGetDeclaredMethods (Class.java:2701) ~ [na:1.8.0_171]

At java.lang.Class.getDeclaredMethods (Class.java:1975) ~ [na:1.8.0_171]

At org.springframework.util.ReflectionUtils.getDeclaredMethods (ReflectionUtils.java:489) ~ [spring-core-5.1.8.RELEASE.jar:5.1.8.RELEASE]

... 21 common frames omitted

Caused by: java.lang.ClassNotFoundException: org.springframework.web.filter.FormContentFilter

At java.net.URLClassLoader.findClass (URLClassLoader.java:381) ~ [na:1.8.0_171]

At java.lang.ClassLoader.loadClass (ClassLoader.java:424) ~ [na:1.8.0_171]

At sun.misc.Launcher$AppClassLoader.loadClass (Launcher.java:349) ~ [na:1.8.0_171]

At java.lang.ClassLoader.loadClass (ClassLoader.java:357) ~ [na:1.8.0_171]

... 37 common frames omitted

Solution: remove some package references

This is the end of org.springframework spring-web 5.0.5.RELEASE 's "how to solve the problem of wrong Error processing condition in the spring-boot launch Times". Thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report