java.lang.NoClassDefFoundError: org/mockito/cglib/proxy/Enhancer

Google Groups | Boti | 10 months ago
  1. 0

    PowerMock 1.6.4 and Mockito 2: ClassNotFoundException: org.mockito.cglib.proxy.Enhancer

    Google Groups | 10 months ago | Boti
    java.lang.NoClassDefFoundError: org/mockito/cglib/proxy/Enhancer
  2. 0

    mockito + easymock - NoClassDefFoundError:net/sf/cglib/proxy/Enhancer

    Stack Overflow | 4 years ago | Shengjie
    java.lang.NoClassDefFoundError: net/sf/cglib/proxy/Enhancer
  3. 0

    mockito + easymock - NoClassDefFoundError:net/sf/cglib/proxy/Enhancer

    dolinked.com | 7 months ago
    java.lang.NoClassDefFoundError: net/sf/cglib/proxy/Enhancer
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [GROOVY-4776] Class loader issues in combination with PowerMock and EasyMock since 1.7.8 - ASF JIRA

    codehaus.org | 1 year ago
    java.lang.NoClassDefFoundError: example/MockMe$$EnhancerByCGLIB$$866c7ce1

  1. andyglick 2 times, last 6 days ago
  2. richard77 1 times, last 1 week ago
  3. musketyr 2 times, last 1 week ago
  4. michallos 2 times, last 1 week ago
  5. batwalrus76 2 times, last 1 week ago
67 more registered users
28 unregistered visitors
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.ClassNotFoundException

    org.mockito.cglib.proxy.Enhancer

    at java.net.URLClassLoader.findClass()
  2. Java RT
    ClassLoader.loadClass
    1. java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    2. java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    3. sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
    4. java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    4 frames
  3. powermock-core
    DeferSupportingClassLoader.loadClass
    1. org.powermock.core.classloader.MockClassLoader.loadModifiedClass(MockClassLoader.java:178)
    2. org.powermock.core.classloader.DeferSupportingClassLoader.loadClass(DeferSupportingClassLoader.java:70)
    2 frames
  4. Java RT
    ClassLoader.loadClass
    1. java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    1 frame
  5. powermock-api-mockito
    ProxyFrameworkImpl.isProxy
    1. org.powermock.api.extension.proxyframework.ProxyFrameworkImpl.isProxy(ProxyFrameworkImpl.java:50)
    1 frame
  6. powermock-reflect
    RegisterProxyFramework.registerProxyFramework
    1. org.powermock.reflect.internal.WhiteboxImpl.getUnmockedType(WhiteboxImpl.java:1661)
    2. org.powermock.reflect.internal.WhiteboxImpl.getType(WhiteboxImpl.java:2085)
    3. org.powermock.reflect.internal.WhiteboxImpl.setInternalState(WhiteboxImpl.java:308)
    4. org.powermock.reflect.proxyframework.RegisterProxyFramework.registerProxyFramework(RegisterProxyFramework.java:18)
    4 frames
  7. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:497)
    4 frames
  8. powermock-reflect
    Whitebox.invokeMethod
    1. org.powermock.reflect.internal.WhiteboxImpl.performMethodInvocation(WhiteboxImpl.java:1873)
    2. org.powermock.reflect.internal.WhiteboxImpl.doInvokeMethod(WhiteboxImpl.java:773)
    3. org.powermock.reflect.internal.WhiteboxImpl.invokeMethod(WhiteboxImpl.java:753)
    4. org.powermock.reflect.Whitebox.invokeMethod(Whitebox.java:466)
    4 frames
  9. powermock-core
    AbstractTestSuiteChunkerImpl.getPowerMockTestListenersLoadedByASpecificClassLoader
    1. org.powermock.tests.utils.impl.AbstractTestSuiteChunkerImpl.registerProxyframework(AbstractTestSuiteChunkerImpl.java:158)
    2. org.powermock.tests.utils.impl.AbstractTestSuiteChunkerImpl.getPowerMockTestListenersLoadedByASpecificClassLoader(AbstractTestSuiteChunkerImpl.java:111)
    2 frames
  10. powermock-module-junit4-common
    JUnit4TestSuiteChunkerImpl.createDelegatorFromClassloader
    1. org.powermock.modules.junit4.common.internal.impl.JUnit4TestSuiteChunkerImpl.createDelegatorFromClassloader(JUnit4TestSuiteChunkerImpl.java:158)
    2. org.powermock.modules.junit4.common.internal.impl.JUnit4TestSuiteChunkerImpl.createDelegatorFromClassloader(JUnit4TestSuiteChunkerImpl.java:40)
    2 frames
  11. powermock-core
    AbstractTestSuiteChunkerImpl.createTestDelegators
    1. org.powermock.tests.utils.impl.AbstractTestSuiteChunkerImpl.createTestDelegators(AbstractTestSuiteChunkerImpl.java:244)
    1 frame
  12. powermock-module-junit4-common
    AbstractCommonPowerMockRunner.<init>
    1. org.powermock.modules.junit4.common.internal.impl.JUnit4TestSuiteChunkerImpl.<init>(JUnit4TestSuiteChunkerImpl.java:61)
    2. org.powermock.modules.junit4.common.internal.impl.AbstractCommonPowerMockRunner.<init>(AbstractCommonPowerMockRunner.java:32)
    2 frames
  13. powermock-module-junit4
    PowerMockRunner.<init>
    1. org.powermock.modules.junit4.PowerMockRunner.<init>(PowerMockRunner.java:34)
    1 frame
  14. Java RT
    Constructor.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    4. java.lang.reflect.Constructor.newInstance(Constructor.java:422)
    4 frames
  15. JUnit
    ClassRequest.getRunner
    1. org.junit.internal.builders.AnnotatedBuilder.buildRunner(AnnotatedBuilder.java:104)
    2. org.junit.internal.builders.AnnotatedBuilder.runnerForClass(AnnotatedBuilder.java:86)
    3. org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
    4. org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:26)
    5. org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
    6. org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:33)
    6 frames
  16. JUnit4 Runner
    JUnit4TestLoader.loadTests
    1. org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.<init>(JUnit4TestReference.java:33)
    2. org.eclipse.jdt.internal.junit4.runner.JUnit4TestClassReference.<init>(JUnit4TestClassReference.java:25)
    3. org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.createTest(JUnit4TestLoader.java:48)
    4. org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.loadTests(JUnit4TestLoader.java:38)
    4 frames
  17. JUnit3 Runner
    RemoteTestRunner.main
    1. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:444)
    2. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)
    3. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
    4. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
    4 frames