Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

  1. ,

    Thrown when a particular method cannot be found. You are probably using a newer version of Hibernate in your application while pre-packaged hibernate jars that come with JBoss are older.

  2. ,

    I downgraded to spark-notebook scala 2.10 with hadoop 2.6.0 then it worked. Finally switched to Apache Drill, works like a charm for diverse datasets.

java.lang.IllegalStateException: Failed to load ApplicationContext at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:181)[spring-test-3.1.0.M2.jar:3.1.0.M2] at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:109)[spring-test-3.1.0.M2.jar:3.1.0.M2] at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:75)[spring-test-3.1.0.M2.jar:3.1.0.M2] at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:321)[spring-test-3.1.0.M2.jar:3.1.0.M2] at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:220)[spring-test-3.1.0.M2.jar:3.1.0.M2] at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:301)[spring-test-3.1.0.M2.jar:3.1.0.M2] at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)[junit-dep-4.8.2.jar:na] at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:303)[spring-test-3.1.0.M2.jar:3.1.0.M2] at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:240)[spring-test-3.1.0.M2.jar:3.1.0.M2] at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)[junit-dep-4.8.2.jar:na] at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)[junit-dep-4.8.2.jar:na] at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)[junit-dep-4.8.2.jar:na] at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)[junit-dep-4.8.2.jar:na] at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)[junit-dep-4.8.2.jar:na] at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)[junit-dep-4.8.2.jar:na] at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)[spring-test-3.1.0.M2.jar:3.1.0.M2] at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)[spring-test-3.1.0.M2.jar:3.1.0.M2] at org.junit.runners.ParentRunner.run(ParentRunner.java:236)[junit-dep-4.8.2.jar:na] at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180)[spring-test-3.1.0.M2.jar:3.1.0.M2] at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49)[.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: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'X.X.common.domain.dao.impl.DaoFactory$TestDaoImpl#0': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [X.X.common.domain.dao.impl.DaoFactory$TestDaoImpl]: No default constructor found; nested exception is java.lang.NoSuchMethodException: X.X.common.domain.dao.impl.DaoFactory$TestDaoImpl.<init>() at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:965)[spring-beans-3.1.0.M2.jar:3.1.0.M2] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:911)[spring-beans-3.1.0.M2.jar:3.1.0.M2] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)[spring-beans-3.1.0.M2.jar:3.1.0.M2] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)[spring-beans-3.1.0.M2.jar:3.1.0.M2] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)[spring-beans-3.1.0.M2.jar:3.1.0.M2] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)[spring-beans-3.1.0.M2.jar:3.1.0.M2] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)[spring-beans-3.1.0.M2.jar:3.1.0.M2] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)[spring-beans-3.1.0.M2.jar:3.1.0.M2] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)[spring-beans-3.1.0.M2.jar:3.1.0.M2] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)[spring-context-3.1.0.M2.jar:3.1.0.M2] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)[spring-context-3.1.0.M2.jar:3.1.0.M2] at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:73)[spring-test-3.1.0.M2.jar:3.1.0.M2] at org.springframework.test.context.TestContext.loadApplicationContext(TestContext.java:128)[spring-test-3.1.0.M2.jar:3.1.0.M2] at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:172)[spring-test-3.1.0.M2.jar:3.1.0.M2] ... 24 moreCaused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [X.X.common.domain.dao.impl.DaoFactory$TestDaoImpl]: No default constructor found; nested exception is java.lang.NoSuchMethodException: X.X.common.domain.dao.impl.DaoFactory$TestDaoImpl.<init>() at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:72)[spring-beans-3.1.0.M2.jar:3.1.0.M2] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:958)[spring-beans-3.1.0.M2.jar:3.1.0.M2] ... 37 moreCaused by: java.lang.NoSuchMethodException: X.X.domain.dao.impl.DaoFactory$TestDaoImpl.<init>() at java.lang.Class.getConstructor0(Class.java:2706)[na:1.6.0_25] at java.lang.Class.getDeclaredConstructor(Class.java:1985)[na:1.6.0_25] at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:67)[spring-beans-3.1.0.M2.jar:3.1.0.M2] ... 38 more