java.lang.NoClassDefFoundError

Could not initialize class nl.a.b.c.projectbeheer.Project$MockitoMock$735984955


Solutions on the web5397

Solution icon of googlegroups
via Google Groups by Nick Stolwijk, 6 months ago
Could not initialize class nl.a.b.c.projectbeheer.Project$MockitoMock$735984955

Solution icon of github
via GitHub by ben-manes
, 1 year ago
Could not initialize class com.github.benmanes.caffeine.cache.CacheWriter$MockitoMock$1566132372

Solution icon of googlegroups
via Google Groups by robbertjan.vanwijhe, 7 months ago
Could not initialize class

Solution icon of googlegroups
via Google Groups by Zsolt Kúti, 7 months ago
Could not initialize class

Solution icon of googlegroups
via Google Groups by Stoat via StackOverflow, 7 months ago
Could not initialize class

Solution icon of stackoverflow
Could not initialize class

Solution icon of googlegroups
via Google Groups by Stoat via StackOverflow, 7 months ago
Could not initialize class

Solution icon of oraclecommunity
via Oracle Community by 393585, 1 year ago
Could not initialize class

Solution icon of stackoverflow
Could not initialize class

Solution icon of stackoverflow
via Stack Overflow by siv
, 1 month ago
Could not initialize class

Stack trace

  • java.lang.NoClassDefFoundError: Could not initialize class nl.a.b.c.projectbeheer.Project$MockitoMock$735984955 at sun.reflect.GeneratedSerializationConstructorAccessor4.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at org.objenesis.instantiator.sun.SunReflectionFactoryInstantiator.newInstance(SunReflectionFactoryInstantiator.java:48) at org.objenesis.ObjenesisBase.newInstance(ObjenesisBase.java:73) at org.mockito.internal.creation.instance.ObjenesisInstantiator.newInstance(ObjenesisInstantiator.java:18) at org.mockito.internal.creation.bytebuddy.SubclassByteBuddyMockMaker.createMock(SubclassByteBuddyMockMaker.java:47) at org.mockito.internal.creation.bytebuddy.ByteBuddyMockMaker.createMock(ByteBuddyMockMaker.java:26) at org.mockito.internal.util.MockUtil.createMock(MockUtil.java:35) at org.mockito.internal.MockitoCore.mock(MockitoCore.java:65) at org.mockito.Mockito.mock(Mockito.java:1693) at org.mockito.internal.configuration.SpyAnnotationEngine.spyInstance(SpyAnnotationEngine.java:83) at org.mockito.internal.configuration.SpyAnnotationEngine.process(SpyAnnotationEngine.java:64) at org.mockito.internal.configuration.InjectingAnnotationEngine.processIndependentAnnotations(InjectingAnnotationEngine.java:59) at org.mockito.internal.configuration.InjectingAnnotationEngine.process(InjectingAnnotationEngine.java:41) at org.mockito.MockitoAnnotations.initMocks(MockitoAnnotations.java:69) at org.mockito.internal.junit.JUnitRule$1.evaluate(JUnitRule.java:42) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.apache.maven.surefire.junitcore.pc.Scheduler$1.run(Scheduler.java:318) at org.apache.maven.surefire.junitcore.pc.InvokerStrategy.schedule(InvokerStrategy.java:41) at org.apache.maven.surefire.junitcore.pc.Scheduler.schedule(Scheduler.java:274) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.junit.runners.Suite.runChild(Suite.java:128) at org.junit.runners.Suite.runChild(Suite.java:27) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.apache.maven.surefire.junitcore.pc.Scheduler$1.run(Scheduler.java:318) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)

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

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
176 times, 4 weeks ago
5 times, 2 months ago
27 more bugmates