java.lang.ExceptionInInitializerError

null

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 web159

Stack trace

  • java.lang.ExceptionInInitializerError: null at java.lang.Class.forName0(Native Method)[na:1.8.0_77] at java.lang.Class.forName(Class.java:348)[na:1.8.0_77] at org.evosuite.setup.TestClusterUtils.getClass(TestClusterUtils.java:330)[evosuite-master-1.0.4-alpha2.jar:1.0.4-alpha2] at org.evosuite.coverage.io.output.OutputCoverageFactory.getCoverageGoals(OutputCoverageFactory.java:85)[evosuite-master-1.0.4-alpha2.jar:1.0.4-alpha2] at org.evosuite.coverage.io.output.OutputCoverageSuiteFitness.determineCoverageGoals(OutputCoverageSuiteFitness.java:79)[evosuite-master-1.0.4-alpha2.jar:1.0.4-alpha2] at org.evosuite.coverage.io.output.OutputCoverageSuiteFitness.<init>(OutputCoverageSuiteFitness.java:70)[evosuite-master-1.0.4-alpha2.jar:1.0.4-alpha2] at org.evosuite.coverage.FitnessFunctions.getFitnessFunction(FitnessFunctions.java:125)[evosuite-master-1.0.4-alpha2.jar:1.0.4-alpha2] at org.evosuite.strategy.TestGenerationStrategy.getFitnessFunctions(TestGenerationStrategy.java:87)[evosuite-master-1.0.4-alpha2.jar:1.0.4-alpha2] at org.evosuite.strategy.WholeTestSuiteStrategy.generateTests(WholeTestSuiteStrategy.java:68)[evosuite-master-1.0.4-alpha2.jar:1.0.4-alpha2] at org.evosuite.TestSuiteGenerator.generateTests(TestSuiteGenerator.java:616)[evosuite-master-1.0.4-alpha2.jar:1.0.4-alpha2] at org.evosuite.TestSuiteGenerator.generateTestSuite(TestSuiteGenerator.java:193)[evosuite-master-1.0.4-alpha2.jar:1.0.4-alpha2] at org.evosuite.rmi.service.ClientNodeImpl$1.run(ClientNodeImpl.java:145)[evosuite-master-1.0.4-alpha2.jar:1.0.4-alpha2] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[na:1.8.0_77] at java.util.concurrent.FutureTask.run(FutureTask.java:266)[na:1.8.0_77] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[na:1.8.0_77] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[na:1.8.0_77] at java.lang.Thread.run(Thread.java:745)[na:1.8.0_77] Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [com/foo/my-Context.xml]; nested exception is org.evosuite.runtime.mock.java.lang.MockThrowable: Class [org.springframework.context.config.ContextNamespaceHandler] for namespace [http://www.springframework.org/schema/context] does not implement the [org.springframework.beans.factory.xml.NamespaceHandler] interface at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:414)[spring-beans-4.2.1.RELEASE.jar:4.2.1.RELEASE]

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 visitor
Unknown visitorOnce,
Unknown visitor
Unknown visitorOnce,
Unknown visitor
Unknown visitorOnce,
Unknown visitor
Unknown visitorOnce,
Unknown visitor
Unknown visitorOnce,
26 more bugmates