java.lang.IllegalArgumentException: object is not an instance of declaring class

Google Groups | Mikhail Balanov | 4 months ago
  1. 0

    Exception during mocking in some cases

    Google Groups | 4 months ago | Mikhail Balanov
    java.lang.IllegalArgumentException: object is not an instance of declaring class
  2. 0

    object is not an instance of declaring class

    Google Groups | 6 months ago | Garret Wilson
    java.lang.IllegalArgumentException: object is not an instance of declaring class
  3. 0

    Putting all Tellurium test cases into 1 test suite

    Google Groups | 7 years ago | Setya
    java.lang.IllegalArgumentException: object is not an instance of declaring class
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    L2 cache issue

    Google Groups | 4 years ago | Sam
    java.lang.RuntimeException: get classeA on [model.ClasseB] type[com.avaje.ebeaninternal.server.core.PersistRequestBean] threw error.
  6. 0

    exception errors on loading CVS

    Netbeans Bugzilla | 2 decades ago | ddaniels
    java.lang.IllegalArgumentException: object is not an instance of declaring class
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

    object is not an instance of declaring class

    at sun.reflect.NativeMethodAccessorImpl.invoke0()
  2. 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:483)
    4 frames
  3. net.bytebuddy.description
    TypeDescription$Generic$OfNonGenericType$ForLoadedType.getDeclaredAnnotations
    1. net.bytebuddy.description.type.TypeDescription$Generic$AnnotationReader$ForTypeArgument.resolve(TypeDescription.java:3834)
    2. net.bytebuddy.description.type.TypeDescription$Generic$AnnotationReader$Delegator$Chained.resolve(TypeDescription.java:3465)
    3. net.bytebuddy.description.type.TypeDescription$Generic$AnnotationReader$ForTypeArgument.resolve(TypeDescription.java:3794)
    4. net.bytebuddy.description.type.TypeDescription$Generic$AnnotationReader$Delegator.asList(TypeDescription.java:3436)
    5. net.bytebuddy.description.type.TypeDescription$Generic$OfNonGenericType$ForLoadedType.getDeclaredAnnotations(TypeDescription.java:4193)
    5 frames
  4. net.bytebuddy.implementation
    AnnotationAppender$ForTypeAnnotations.onNonGenericType
    1. net.bytebuddy.implementation.attribute.AnnotationAppender$ForTypeAnnotations.apply(AnnotationAppender.java:718)
    2. net.bytebuddy.implementation.attribute.AnnotationAppender$ForTypeAnnotations.onNonGenericType(AnnotationAppender.java:699)
    3. net.bytebuddy.implementation.attribute.AnnotationAppender$ForTypeAnnotations.onNonGenericType(AnnotationAppender.java:413)
    3 frames
  5. net.bytebuddy.description
    TypeDescription$Generic$OfNonGenericType.accept
    1. net.bytebuddy.description.type.TypeDescription$Generic$OfNonGenericType.accept(TypeDescription.java:4060)
    1 frame
  6. net.bytebuddy.implementation
    AnnotationAppender$ForTypeAnnotations.onParameterizedType
    1. net.bytebuddy.implementation.attribute.AnnotationAppender$ForTypeAnnotations.onParameterizedType(AnnotationAppender.java:680)
    2. net.bytebuddy.implementation.attribute.AnnotationAppender$ForTypeAnnotations.onParameterizedType(AnnotationAppender.java:413)
    2 frames
  7. net.bytebuddy.description
    TypeDescription$Generic$OfParameterizedType.accept
    1. net.bytebuddy.description.type.TypeDescription$Generic$OfParameterizedType.accept(TypeDescription.java:4983)
    1 frame
  8. net.bytebuddy.implementation
    MethodAttributeAppender$Compound.apply
    1. net.bytebuddy.implementation.attribute.MethodAttributeAppender$ForInstrumentedMethod.apply(MethodAttributeAppender.java:195)
    2. net.bytebuddy.implementation.attribute.MethodAttributeAppender$Compound.apply(MethodAttributeAppender.java:490)
    2 frames
  9. Byte Buddy (with dependencies)
    DynamicType$Builder$AbstractBase$Delegator.make
    1. net.bytebuddy.dynamic.scaffold.TypeWriter$MethodPool$Record$ForDefinedMethod$WithBody.applyBody(TypeWriter.java:581)
    2. net.bytebuddy.dynamic.scaffold.TypeWriter$MethodPool$Record$ForDefinedMethod.apply(TypeWriter.java:517)
    3. net.bytebuddy.dynamic.scaffold.TypeWriter$Default$ForCreation.create(TypeWriter.java:3799)
    4. net.bytebuddy.dynamic.scaffold.TypeWriter$Default.make(TypeWriter.java:1617)
    5. net.bytebuddy.dynamic.scaffold.subclass.SubclassDynamicTypeBuilder.make(SubclassDynamicTypeBuilder.java:172)
    6. net.bytebuddy.dynamic.scaffold.subclass.SubclassDynamicTypeBuilder.make(SubclassDynamicTypeBuilder.java:153)
    7. net.bytebuddy.dynamic.DynamicType$Builder$AbstractBase.make(DynamicType.java:2566)
    8. net.bytebuddy.dynamic.DynamicType$Builder$AbstractBase$Delegator.make(DynamicType.java:2668)
    8 frames
  10. org.mockito.internal
    ByteBuddyMockMaker.createMock
    1. org.mockito.internal.creation.bytebuddy.MockBytecodeGenerator.generateMockClass(MockBytecodeGenerator.java:60)
    2. org.mockito.internal.creation.bytebuddy.CachingMockBytecodeGenerator$CachedBytecodeGenerator.generate(CachingMockBytecodeGenerator.java:99)
    3. org.mockito.internal.creation.bytebuddy.CachingMockBytecodeGenerator$CachedBytecodeGenerator.getOrGenerateMockClass(CachingMockBytecodeGenerator.java:89)
    4. org.mockito.internal.creation.bytebuddy.CachingMockBytecodeGenerator.get(CachingMockBytecodeGenerator.java:37)
    5. org.mockito.internal.creation.bytebuddy.ByteBuddyMockMaker.createProxyClass(ByteBuddyMockMaker.java:54)
    6. org.mockito.internal.creation.bytebuddy.ByteBuddyMockMaker.createMock(ByteBuddyMockMaker.java:27)
    6 frames
  11. Mockito
    Mockito.mock
    1. org.mockito.internal.util.MockUtil.createMock(MockUtil.java:35)
    2. org.mockito.internal.MockitoCore.mock(MockitoCore.java:63)
    3. org.mockito.Mockito.mock(Mockito.java:1560)
    4. org.mockito.Mockito.mock(Mockito.java:1473)
    4 frames
  12. ifml2.unittests
    ExpressionCalculatorTest.testCalculateLocationDotProperty
    1. ifml2.unittests.ExpressionCalculatorTest.testCalculateLocationDotProperty(ExpressionCalculatorTest.java:71)
    1 frame
  13. 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:483)
    4 frames
  14. JUnit
    JUnitCore.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.InvokeMethod.evaluate(InvokeMethod.java:17)
    5. org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
    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)
    15. org.junit.runners.Suite.runChild(Suite.java:128)
    16. org.junit.runners.Suite.runChild(Suite.java:27)
    17. org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
    18. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
    19. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
    20. org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
    21. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
    22. org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    23. org.junit.runner.JUnitCore.run(JUnitCore.java:137)
    23 frames
  15. IntelliJ junit4 module
    JUnit4IdeaTestRunner.startRunnerWithArgs
    1. com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:117)
    2. com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:42)
    2 frames
  16. IDEA
    JUnitStarter.main
    1. com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:253)
    2. com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:84)
    2 frames
  17. 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:483)
    4 frames
  18. IDEA
    AppMain.main
    1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
    1 frame