java.lang.IllegalArgumentException: Can not set final [Lorg.powermock.core.spi.PowerMockPolicy; field org.powermock.tests.utils.impl.MockPolicyInitializerImpl.mockPolicies to [Lorg.powermock.core.spi.PowerMockPolicy;

GitHub | 51systems | 8 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Can not set final [field org.powermock.tests.utils.impl.MockPolicyInitializerImpl.mockPolicies to [Lorg.powermock.core.spi.PowerMockPolicy;

    GitHub | 8 months ago | 51systems
    java.lang.IllegalArgumentException: Can not set final [Lorg.powermock.core.spi.PowerMockPolicy; field org.powermock.tests.utils.impl.MockPolicyInitializerImpl.mockPolicies to [Lorg.powermock.core.spi.PowerMockPolicy;
  2. 0

    WildFly 8.2.0 and Infinispan 6.0.2 CacheContainer Injection error

    Stack Overflow | 2 years ago | ObiWanKenobi
    component.SimpleCache.START: org.jboss.msc.service.StartException in service jboss.deployment.unit."Test2.war".component.SimpleCache.START: java.lang.IllegalStateException: JBAS011048: Failed to construct component instance
  3. 0

    How to tell which field failed Gson serialization

    Stack Overflow | 3 years ago | styler1972
    java.lang.IllegalArgumentException: invalid value for field
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    PlayerTrails - Bukkit

    bukkit.org | 1 year ago
    java.lang.IllegalArgumentException: Can not set net.minecraft.server.v1_8_R3.EnumParticle field net.minecraft.server.v1_8_R3.PacketPlayOutWorldParticles.a to java.lang.String
  6. 0

    Incompatibilities with other mods using Forge 4.0.0.239

    GitHub | 4 years ago | bonnyvonscotty
    cpw.mods.fml.common.LoaderException: java.lang.IllegalArgumentException: Can not set static com.github.AbrarSyed.SecretRooms.SecretRooms field com.github.AbrarSyed.SecretRooms.SecretRooms.instance to backpack.Backpack
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.IllegalArgumentException

    Can not set final [Lorg.powermock.core.spi.PowerMockPolicy; field org.powermock.tests.utils.impl.MockPolicyInitializerImpl.mockPolicies to [Lorg.powermock.core.spi.PowerMockPolicy;

    at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException()
  2. Java RT
    Field.set
    1. sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:167)
    2. sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:171)
    3. sun.reflect.UnsafeQualifiedObjectFieldAccessorImpl.set(UnsafeQualifiedObjectFieldAccessorImpl.java:83)
    4. java.lang.reflect.Field.set(Field.java:764)
    4 frames
  3. powermock-classloading-base
    ClassloaderExecutor.execute
    1. org.powermock.classloading.DeepCloner.cloneFields(DeepCloner.java:257)
    2. org.powermock.classloading.DeepCloner.performClone(DeepCloner.java:128)
    3. org.powermock.classloading.DeepCloner.cloneFields(DeepCloner.java:248)
    4. org.powermock.classloading.DeepCloner.performClone(DeepCloner.java:128)
    5. org.powermock.classloading.DeepCloner.cloneFields(DeepCloner.java:248)
    6. org.powermock.classloading.DeepCloner.performClone(DeepCloner.java:128)
    7. org.powermock.classloading.DeepCloner.cloneFields(DeepCloner.java:248)
    8. org.powermock.classloading.DeepCloner.performClone(DeepCloner.java:128)
    9. org.powermock.classloading.DeepCloner.cloneFields(DeepCloner.java:248)
    10. org.powermock.classloading.DeepCloner.performClone(DeepCloner.java:128)
    11. org.powermock.classloading.DeepCloner.cloneFields(DeepCloner.java:248)
    12. org.powermock.classloading.DeepCloner.performClone(DeepCloner.java:128)
    13. org.powermock.classloading.DeepCloner.cloneFields(DeepCloner.java:248)
    14. org.powermock.classloading.DeepCloner.performClone(DeepCloner.java:128)
    15. org.powermock.classloading.DeepCloner.clone(DeepCloner.java:82)
    16. org.powermock.classloading.DeepCloner.clone(DeepCloner.java:69)
    17. org.powermock.classloading.ClassloaderExecutor.execute(ClassloaderExecutor.java:89)
    18. org.powermock.classloading.ClassloaderExecutor.execute(ClassloaderExecutor.java:78)
    18 frames
  4. Powermock
    PowerMockStatement.evaluate
    1. org.powermock.modules.junit4.rule.PowerMockStatement.evaluate(PowerMockRule.java:57)
    1 frame
  5. Roboelectric
    RobolectricTestRunner.runChild
    1. org.robolectric.RobolectricTestRunner$2.evaluate(RobolectricTestRunner.java:265)
    2. org.robolectric.RobolectricTestRunner.runChild(RobolectricTestRunner.java:191)
    3. org.robolectric.RobolectricTestRunner.runChild(RobolectricTestRunner.java:56)
    3 frames
  6. JUnit
    ParentRunner$2.evaluate
    1. org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
    2. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
    3. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
    4. org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
    5. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
    5 frames
  7. Roboelectric
    RobolectricTestRunner$1.evaluate
    1. org.robolectric.RobolectricTestRunner$1.evaluate(RobolectricTestRunner.java:157)
    1 frame
  8. JUnit
    JUnitCore.run
    1. org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    2. org.junit.runner.JUnitCore.run(JUnitCore.java:137)
    2 frames
  9. IntelliJ junit4 module
    JUnit4IdeaTestRunner.startRunnerWithArgs
    1. com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:69)
    1 frame
  10. IDEA
    JUnitStarter.main
    1. com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:234)
    2. com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:74)
    2 frames
  11. 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
  12. IDEA
    AppMain.main
    1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
    1 frame