java.lang.ExceptionInInitializerError

null

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

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

Solutions on the web283

  • null
  • via GitHub by felipeko
    , 1 year ago
    null
  • 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.evosuite.runtime.mock.java.lang.MockRuntimeException: Application Context has not been initialized at com.foo.MyFactory.getContext(MyFactory.java:26)[classes/:na]

    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

    You’re the first here who have seen this exception.