java.lang.IllegalStateException: Duplicate application of the same mock-up class

GitHub | PatrickSauts | 4 months ago
  1. 0

    GitHub comment 320#240258824

    GitHub | 4 months ago | PatrickSauts
    java.lang.IllegalStateException: Duplicate application of the same mock-up class
  2. 0

    pitest 1.1.10 works with jmockit 1.25, does not work with jmockit 1.26

    GitHub | 3 months ago | estekhin
    org.pitest.util.PitError: Duplicate application of the same mock-up class
  3. 0

    duplicate class error with no duplicate class

    eclemma | 5 years ago | vincentdebruijn
    java.lang.IllegalStateException: Can't add different class with same name: groove/graph/iso/Bisimulator Only refactoring Bisimulator solves the problem. However, when looking at the outputted class files, there is no Bisimulator class generated, so where is its duplicate? I tried all versions of refactoring, cleaning and building and the problem stays when the class is called exactly this. Is this perhaps a restricted key word? In any case, it would be great if the CoverageBuilder doesn't crash on this. Cheers, Vincent Full trace:
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    消费端多个dubbo配置文件

    GitHub | 6 months ago | helloworldss
    java.lang.IllegalStateException: Duplicate application configs:】
  6. 0

    spring-boot does not honour @EntityScan in multimodule gradle build using GORM - codes fans

    mzan.com | 4 months ago
    java.lang.IllegalStateException: Method on class [geit.domain.entity.experimental.reku.Animal] was used outside of a Grails application. If running in the context of a test using the mocking API or bootstrap Grails correctly.

    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.IllegalStateException

      Duplicate application of the same mock-up class

      at mockit.MockUp.findPreviouslyMockedClassIfMockUpAlreadyApplied()
    2. Main
      MockUp.<init>
      1. mockit.MockUp.findPreviouslyMockedClassIfMockUpAlreadyApplied(MockUp.java:165)
      2. mockit.MockUp.<init>(MockUp.java:119)
      2 frames
    3. com.rbcplatform.actors
      ExternalGatewayServiceMock.<init>
      1. com.rbcplatform.actors.mock.ExternalGatewayServiceMock.<init>(ExternalGatewayServiceMock.java:14)
      1 frame
    4. 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:423)
      4 frames
    5. Groovy
      AbstractCallSite.callConstructor
      1. org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:83)
      2. org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:105)
      3. org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:239)
      3 frames
    6. com.rbcplatform.actors
      JmockitTearDownTest.before
      1. com.rbcplatform.actors.JmockitTearDownTest.before(JmockitTest.groovy:23)
      1 frame
    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:498)
      4 frames
    8. JUnit
      ParentRunner.run
      1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
      2. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      3. org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
      4. org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
      5. org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      6. org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
      7. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
      8. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
      9. org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
      10. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
      11. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
      12. org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
      13. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
      14. org.junit.runners.ParentRunner.run(ParentRunner.java:363)
      14 frames
    9. JUnit4 Runner
      JUnit4TestReference.run
      1. org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
      1 frame
    10. JUnit3 Runner
      RemoteTestRunner.main
      1. org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
      2. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
      3. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
      4. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
      5. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
      5 frames