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

Google Groups | Nick Stolwijk | 1 month ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Problems with Mockito 2.x on OSGi container Equinox

    Google Groups | 1 month ago | Nick Stolwijk
    java.lang.IllegalAccessError: tried to access class nl.a.b.c.projectbeheer.FileStructuur from class nl.a.b.c.projectbeheer.Project$MockitoMock$735984955
  2. 0

    mockito 2.0.14 fails to mock jetty httpclient

    GitHub | 2 years ago | christophsturm
    java.lang.IllegalAccessError: tried to access class org.eclipse.jetty.util.component.ContainerLifeCycle$Managed from class org.eclipse.jetty.client.HttpClient$MockitoMock$362486671
  3. 0

    NoClassDefFoundError with gradle, giraph, and hadoop

    Stack Overflow | 3 years ago | Matthew Saltz
    java.lang.NoClassDefFoundError: org.apache.hadoop.conf.Configuration
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Why do Mock Testing Frameworks and RV-Monitor interact negatively?

    GitHub | 2 years ago | owolabileg
    java.lang.NoClassDefFoundError: Could not initialize class br.com.caelum.vraptor.validator.Message$$EnhancerByMockitoWithCGLIB$$7ff0bdae

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. 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>()
    2. nl.a.b
      Project$MockitoMock$735984955.<clinit>
      1. nl.a.b.c.projectbeheer.Project$MockitoMock$735984955.<clinit>(Unknown Source)
      1 frame
    3. Java RT
      Constructor.newInstance
      1. sun.reflect.GeneratedSerializationConstructorAccessor4.newInstance(Unknown Source)
      2. java.lang.reflect.Constructor.newInstance(Constructor.java:423)
      2 frames
    4. Objenesis
      ObjenesisBase.newInstance
      1. org.objenesis.instantiator.sun.SunReflectionFactoryInstantiator.newInstance(SunReflectionFactoryInstantiator.java:48)
      2. org.objenesis.ObjenesisBase.newInstance(ObjenesisBase.java:73)
      2 frames
    5. Mockito
      ObjenesisInstantiator.newInstance
      1. org.mockito.internal.creation.instance.ObjenesisInstantiator.newInstance(ObjenesisInstantiator.java:18)
      1 frame
    6. org.mockito.internal
      ByteBuddyMockMaker.createMock
      1. org.mockito.internal.creation.bytebuddy.SubclassByteBuddyMockMaker.createMock(SubclassByteBuddyMockMaker.java:47)
      2. org.mockito.internal.creation.bytebuddy.ByteBuddyMockMaker.createMock(ByteBuddyMockMaker.java:26)
      2 frames
    7. Mockito
      JUnitRule$1.evaluate
      1. org.mockito.internal.util.MockUtil.createMock(MockUtil.java:35)
      2. org.mockito.internal.MockitoCore.mock(MockitoCore.java:65)
      3. org.mockito.Mockito.mock(Mockito.java:1693)
      4. org.mockito.internal.configuration.SpyAnnotationEngine.spyInstance(SpyAnnotationEngine.java:83)
      5. org.mockito.internal.configuration.SpyAnnotationEngine.process(SpyAnnotationEngine.java:64)
      6. org.mockito.internal.configuration.InjectingAnnotationEngine.processIndependentAnnotations(InjectingAnnotationEngine.java:59)
      7. org.mockito.internal.configuration.InjectingAnnotationEngine.process(InjectingAnnotationEngine.java:41)
      8. org.mockito.MockitoAnnotations.initMocks(MockitoAnnotations.java:69)
      9. org.mockito.internal.junit.JUnitRule$1.evaluate(JUnitRule.java:42)
      9 frames
    8. JUnit
      ParentRunner$3.run
      1. org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
      2. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
      3. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
      4. org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
      4 frames
    9. SureFire JUnitCore Runner
      Scheduler.schedule
      1. org.apache.maven.surefire.junitcore.pc.Scheduler$1.run(Scheduler.java:318)
      2. org.apache.maven.surefire.junitcore.pc.InvokerStrategy.schedule(InvokerStrategy.java:41)
      3. org.apache.maven.surefire.junitcore.pc.Scheduler.schedule(Scheduler.java:274)
      3 frames
    10. JUnit
      ParentRunner$3.run
      1. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
      2. org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
      3. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
      4. org.junit.runners.ParentRunner.run(ParentRunner.java:363)
      5. org.junit.runners.Suite.runChild(Suite.java:128)
      6. org.junit.runners.Suite.runChild(Suite.java:27)
      7. org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
      7 frames
    11. SureFire JUnitCore Runner
      Scheduler$1.run
      1. org.apache.maven.surefire.junitcore.pc.Scheduler$1.run(Scheduler.java:318)
      1 frame
    12. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:266)
      3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      5. java.lang.Thread.run(Thread.java:745)[2]
      5 frames