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

Solutions on the web

via Google Groups by Nick Stolwijk, 1 year ago
tried to access class nl.a.b.c.projectbeheer.FileStructuur from class nl.a.b.c.projectbeheer.Project$MockitoMock$735984955
java.lang.IllegalAccessError: tried to access class 
nl.a.b.c.projectbeheer.FileStructuur from class 
nl.a.b.c.projectbeheer.Project$MockitoMock$735984955	at nl.a.b.c.projectbeheer.Project$MockitoMock$735984955.(Unknown Source)	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)