java.lang.IllegalAccessError

tried to access class nl.a.b.c.projectbeheer.FileStructuur from class nl.a.b.c.projectbeheer.Project$MockitoMock$735984955


Solutions on the web1876

Solution icon of googlegroups
via Google Groups by Nick Stolwijk, 6 months ago
tried to access class nl.a.b.c.projectbeheer.FileStructuur from class nl.a.b.c.projectbeheer.Project$MockitoMock$735984955

Solution icon of github
tried to access class org.eclipse.jetty.util.component.ContainerLifeCycle$Managed from class org.eclipse.jetty.client.HttpClient$MockitoMock$362486671

Solution icon of oraclecommunity
via Oracle Community by 843793, 1 year ago
tried to access TestSerial from class $Proxy0

Solution icon of googlegroups
via Google Groups by Ivan Porto Carrero, 1 month ago
tried to access class com.glines.socketio.server.SocketIOSessionManager from class org.scalatra.socketio.SocketIOSupport$class

Solution icon of coderanch
via Coderanch by Edwin Davidson, 10 months ago
tried to access class mathlibrary from class mathapp

Solution icon of bugzilla
via https://bugzilla.redhat.com/bugzilla/ by Martin Gencur, 1 year ago
tried to access class org.jboss.netty.handler.codec.replay.UnsafeDynamicChannelBuffer from class org.jboss.netty.handler.codec.replay.CustomReplayingDecoder): java.lang.NullPointerException

Solution icon of github
via GitHub by Stephan202
, 6 months ago
tried to access class com.example.foo.AbstractDummy from class com.example.bar.DummyTest

Solution icon of github
via GitHub by virtuoushub
, 1 year ago
tried to access class bgt from class net.minecraft.client.main.Main

Solution icon of github
via GitHub by aojava
, 7 months ago
tried to access class com.sun.tools.javac.comp.MemberEnter$3 from class com.sun.tools.javac.comp.MemberEnter

Solution icon of github
tried to access class com.griefcraft.modules.admin.AdminCleanup$Admin_Cleanup_Thread from class com.griefcraft.modules.admin.AdminCleanup

Stack trace

  • 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.<clinit>(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)[2]

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 are the first who have seen this exception. Write a tip to help other users and build your expert profile.