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 | 10 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

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

    GitHub | 10 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

    How to inject EntityManager in CDI (weld)?

    Stack Overflow | 2 years ago | SuperChia
    com.sun.faces.mgbean.ManagedBeanCreationException: 对受管 bean resumeAudit 执行资源注入 (resource injection) 时发生错误
  3. 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
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    How to tell which field failed Gson serialization

    Stack Overflow | 3 years ago | styler1972
    java.lang.IllegalArgumentException: invalid value for field
  6. 0

    Solr query to beans - java.lang.IllegalArgumentException

    Stack Overflow | 2 years ago | Brooks
    org.apache.solr.client.solrj.beans.BindingException: Could not instantiate object of class com.mycompany.MyProject.twitter.util.TwitterStatusModel
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