java.lang.IllegalStateException

Failed to load ApplicationContext

Solutions on the web12623

  • via Coderanch by Laxmi Prasanna Bn, 6 months ago
    Failed to load ApplicationContext
  • via Eclipse Bugzilla by franknleslie, 11 months ago
    Failed to load ApplicationContext
  • via GitHub by simon-brooke
    , 4 months ago
    Failed to load ApplicationContext
  • Stack trace

    • java.lang.IllegalStateException: Failed to load ApplicationContext at org.springframework.test.context.CacheAwareContextLoaderDelegate.loadContext(CacheAwareContextLoaderDelegate.java:99)[spring-test-3.2.2.RELEASE.jar:3.2.2.RELEASE] at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:122)[spring-test-3.2.2.RELEASE.jar:3.2.2.RELEASE] at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:109)[spring-test-3.2.2.RELEASE.jar:3.2.2.RELEASE] at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:75)[spring-test-3.2.2.RELEASE.jar:3.2.2.RELEASE] at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:312)[spring-test-3.2.2.RELEASE.jar:3.2.2.RELEASE] at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:211)[spring-test-3.2.2.RELEASE.jar:3.2.2.RELEASE] at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:288)[spring-test-3.2.2.RELEASE.jar:3.2.2.RELEASE] at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)[junit-4.11.jar:na] at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:284)[spring-test-3.2.2.RELEASE.jar:3.2.2.RELEASE] at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:231)[spring-test-3.2.2.RELEASE.jar:3.2.2.RELEASE] at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:88)[spring-test-3.2.2.RELEASE.jar:3.2.2.RELEASE] at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)[junit-4.11.jar:na] at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)[junit-4.11.jar:na] at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)[junit-4.11.jar:na] at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)[junit-4.11.jar:na] at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)[junit-4.11.jar:na] at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)[spring-test-3.2.2.RELEASE.jar:3.2.2.RELEASE] at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:71)[spring-test-3.2.2.RELEASE.jar:3.2.2.RELEASE] at org.junit.runners.ParentRunner.run(ParentRunner.java:309)[junit-4.11.jar:na] at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:174)[spring-test-3.2.2.RELEASE.jar:3.2.2.RELEASE] at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)[.cp/:na] at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)[.cp/:na] at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)[.cp/:na] at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)[.cp/:na] at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)[.cp/:na] at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)[.cp/:na] Caused by: java.lang.IllegalStateException: Cannot load configuration class: com.quikdo.freq.job.LocationVisitorAggregatorJobConfig at org.springframework.context.annotation.ConfigurationClassPostProcessor.enhanceConfigurationClasses(ConfigurationClassPostProcessor.java:364)[org.springframework.context_4.0.0.20130522-M1.jar:4.0.0.M1] at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanFactory(ConfigurationClassPostProcessor.java:248)[org.springframework.context_4.0.0.20130522-M1.jar:4.0.0.M1] at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:708)[org.springframework.context_4.0.0.20130522-M1.jar:4.0.0.M1] at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:647)[org.springframework.context_4.0.0.20130522-M1.jar:4.0.0.M1] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:475)[org.springframework.context_4.0.0.20130522-M1.jar:4.0.0.M1] at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:120)[spring-test-3.2.2.RELEASE.jar:3.2.2.RELEASE] at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:60)[spring-test-3.2.2.RELEASE.jar:3.2.2.RELEASE] at org.springframework.test.context.CacheAwareContextLoaderDelegate.loadContextInternal(CacheAwareContextLoaderDelegate.java:64)[spring-test-3.2.2.RELEASE.jar:3.2.2.RELEASE] at org.springframework.test.context.CacheAwareContextLoaderDelegate.loadContext(CacheAwareContextLoaderDelegate.java:91)[spring-test-3.2.2.RELEASE.jar:3.2.2.RELEASE] ... 25 more Caused by: org.springframework.cglib.core.CodeGenerationException: java.lang.reflect.InvocationTargetException-->null at org.springframework.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:237)[org.springframework.core_4.0.0.20130522-M1.jar:4.0.0.M1] at org.springframework.cglib.proxy.Enhancer.createHelper(Enhancer.java:377)[org.springframework.core_4.0.0.20130522-M1.jar:4.0.0.M1] at org.springframework.cglib.proxy.Enhancer.createClass(Enhancer.java:317)[org.springframework.core_4.0.0.20130522-M1.jar:4.0.0.M1] at org.springframework.context.annotation.ConfigurationClassEnhancer.createClass(ConfigurationClassEnhancer.java:132)[org.springframework.context_4.0.0.20130522-M1.jar:4.0.0.M1] at org.springframework.context.annotation.ConfigurationClassEnhancer.enhance(ConfigurationClassEnhancer.java:92)[org.springframework.context_4.0.0.20130522-M1.jar:4.0.0.M1] at org.springframework.context.annotation.ConfigurationClassPostProcessor.enhanceConfigurationClasses(ConfigurationClassPostProcessor.java:354)[org.springframework.context_4.0.0.20130522-M1.jar:4.0.0.M1] ... 33 more Caused by: java.lang.reflect.InvocationTargetException: null at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.7.0_21] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[na:1.7.0_21] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.7.0_21] at java.lang.reflect.Method.invoke(Method.java:601)[na:1.7.0_21] at org.springframework.cglib.core.ReflectUtils.defineClass(ReflectUtils.java:384)[org.springframework.core_4.0.0.20130522-M1.jar:4.0.0.M1] at org.springframework.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:219)[org.springframework.core_4.0.0.20130522-M1.jar:4.0.0.M1] ... 38 more Caused by: java.lang.SecurityException: class "com.quikdo.freq.job.LocationVisitorAggregatorJobConfig$$EnhancerByCGLIB$$91fe93b4"'s signer information does not match signer information of other classes in the same package at java.lang.ClassLoader.checkCerts(ClassLoader.java:939)[na:1.7.0_21] at java.lang.ClassLoader.preDefineClass(ClassLoader.java:653)[na:1.7.0_21] at java.lang.ClassLoader.defineClass(ClassLoader.java:781)[na:1.7.0_21] ... 44 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 2 years ago
    Once, 1 month ago
    93 more bugmates