java.lang.IllegalStateException: Failed to transform class with name com.example.TestEntity. Reason: bad array type for AALOAD: null at org.powermock.core.classloader.MockClassLoader.loadMockClass(MockClassLoader.java: 208) at org.powermock.core.classloader.MockClassLoader.loadModifiedClass(MockClassLoader.java: 146) at org.powermock.core.classloader.DeferSupportingClassLoader.loadClass(DeferSupportingClassLoader.java: 65)

Google Groups | ruben | 6 years 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

    surefire + powermock = java.lang.IllegalStateException: Failed to transform class with name ... Reason: bad array type for AALOAD: null

    Google Groups | 6 years ago | ruben
    java.lang.IllegalStateException: Failed to transform class with name com.example.TestEntity. Reason: bad array type for AALOAD: null at org.powermock.core.classloader.MockClassLoader.loadMockClass(MockClassLoader.java: 208) at org.powermock.core.classloader.MockClassLoader.loadModifiedClass(MockClassLoader.java: 146) at org.powermock.core.classloader.DeferSupportingClassLoader.loadClass(DeferSupportingClassLoader.java: 65)
  2. 0

    GitHub comment 443#173251442

    GitHub | 1 year ago | hekonsek
    java.lang.IllegalStateException: Failed to introspect annotated > methods on class io.rhiot.cloudplatform.runtime.spring.CloudPlatform > at > org.springframework.core.type.StandardAnnotationMetadata.getAnnotatedMethods(StandardAnnotationMetadata.java:163) > ~[spring-core-4.2.4.RELEASE.jar:4.2.4.RELEASE] > at > org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:291) > ~[spring-context-4.2.4.RELEASE.jar:4.2.4.RELEASE] > at > org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:231) > ~[spring-context-4.2.4.RELEASE.jar:4.2.4.RELEASE] > at > org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:198) > ~[spring-context-4.2.4.RELEASE.jar:4.2.4.RELEASE] > at > org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:167) > ~[spring-context-4.2.4.RELEASE.jar:4.2.4.RELEASE] > ... 11 common frames omitted > Caused by: java.lang.NoClassDefFoundError: > io/rhiot/cloudplatform/encoding/spi/PayloadEncoding > at java.lang.Class.getDeclaredMethods0(Native Method) ~[na:1.8.0_66] > at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Failed to transform class with name com.example.TestEntity. Reason: bad array type for AALOAD: null at org.powermock.core.classloader.MockClassLoader.loadMockClass(MockClassLoader.java: 208) at org.powermock.core.classloader.MockClassLoader.loadModifiedClass(MockClassLoader.java: 146) at org.powermock.core.classloader.DeferSupportingClassLoader.loadClass(DeferSupportingClassLoader.java: 65)

      at java.lang.ClassLoader.loadClass()
    2. Java RT
      Class.getDeclaredMethods
      1. java.lang.ClassLoader.loadClass(ClassLoader.java:248)
      2. java.lang.Class.getDeclaredMethods0(Native Method)
      3. java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
      4. java.lang.Class.getDeclaredMethods(Class.java:1791)
      4 frames