java.lang.IllegalStateException

Failed to load ApplicationContext at > org.springframework.test.context.TestContext.getApplicationContext(Tes > tContext.java:157) at > org.springframework.test.context.support.DependencyInjectionTestExecut > ionListener.injectDependencies(DependencyInjectionTestExecutionListene > r.java:109) at > org.springframework.test.context.support.DependencyInjectionTestExecut > ionListener.prepareTestInstance(DependencyInjectionTestExecutionListen > er.java:75) at > org.springframework.test.context.TestContextManager.prepareTestInstanc > e(TestContextManager.java:321) at > org.springframework.test.context.testng.AbstractTestNGSpringContextTes > ts.springTestContextPrepareTestInstance(AbstractTestNGSpringContextTes > ts.java:133)

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web53

  • via Unknown by Unknown author,
  • via Unknown by Ilger Gerda,
  • via Unknown by Ilger Gerda,
  • Stack trace

    • java.lang.IllegalStateException: Failed to load ApplicationContext at > org.springframework.test.context.TestContext.getApplicationContext(Tes > tContext.java:157) at > org.springframework.test.context.support.DependencyInjectionTestExecut > ionListener.injectDependencies(DependencyInjectionTestExecutionListene > r.java:109) at > org.springframework.test.context.support.DependencyInjectionTestExecut > ionListener.prepareTestInstance(DependencyInjectionTestExecutionListen > er.java:75) at > org.springframework.test.context.TestContextManager.prepareTestInstanc > e(TestContextManager.java:321) at > org.springframework.test.context.testng.AbstractTestNGSpringContextTes > ts.springTestContextPrepareTestInstance(AbstractTestNGSpringContextTes > ts.java:133) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    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

    rprp
    3 times, last one
    Unknown visitor
    Unknown visitorOnce,