java.lang.IllegalStateException: Failed to transform class with name com.example.TestEntity. Reason: bad array type for AALOAD: null

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Google Groups by ruben, 1 year ago
Failed to transform class with name com.example.TestEntity. Reason: bad array type for AALOAD: null
via GitHub by johanhaleby
, 2 years ago
Failed to transform class with name YY. Reason: javassist.bytecode.StringInfo cannot be cast to javassist.bytecode.MethodrefInfo
via Stack Overflow by sei
, 2 years ago
Failed to transform class with name com.myProject.MyClassToBeTested. Reason: 3
via Google Groups by toddrun, 2 years ago
Failed to transform class with name com.doit.DoTheThingTest. Reason: 3
via GitHub by johanhaleby
, 2 years ago
Failed to transform class with name oracle.adf.share.ADFContext. Reason: PowerMock internal error when modifying method.
via GitHub by GoogleCodeExporter
, 2 years ago
Failed to transform class with name oracle.adf.share.ADFContext. Reason: PowerMock internal error when modifying method.
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 java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
at org.junit.internal.runners.TestClass.getAnnotatedMethods(TestClass.java:44)
at org.junit.internal.runners.MethodValidator.validateTestMethods(MethodValidator.java:69)
at org.junit.internal.runners.MethodValidator.validateStaticMethods(MethodValidator.java:43)
at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.validate(PowerMockJUnit44RunnerDelegateImpl.java:123)
at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.(PowerMockJUnit44RunnerDelegateImpl.java:85)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at org.powermock.modules.junit4.common.internal.impl.JUnit4TestSuiteChunkerImpl.createDelegatorFromClassloader(JUnit4TestSuiteChunkerImpl.java:154)
at org.powermock.modules.junit4.common.internal.impl.JUnit4TestSuiteChunkerImpl.(JUnit4TestSuiteChunkerImpl.java:69)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at org.junit.internal.builders.AnnotatedBuilder.buildRunner(AnnotatedBuilder.java:31)
at org.junit.internal.builders.AnnotatedBuilder.runnerForClass(AnnotatedBuilder.java:24)
at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:57)
at org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:29)
at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:57)
at org.apache.maven.surefire.junit4.JUnit4TestSet.(JUnit4TestSet.java:45)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.