java.lang.IllegalArgumentException: Cannot attach undefined variable: V

Stack Overflow | erikh | 9 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.

Root Cause Analysis

  1. java.lang.IllegalArgumentException

    Cannot attach undefined variable: V

    at net.bytebuddy.description.type.TypeDescription$Generic$Visitor$Substitutor$ForAttachment.onTypeVariable()
  2. net.bytebuddy.description
    TypeDescription$Generic$OfParameterizedType.accept
    1. net.bytebuddy.description.type.TypeDescription$Generic$Visitor$Substitutor$ForAttachment.onTypeVariable(TypeDescription.java:1973)
    2. net.bytebuddy.description.type.TypeDescription$Generic$Visitor$Substitutor$ForAttachment.onTypeVariable(TypeDescription.java:1896)
    3. net.bytebuddy.description.type.TypeDescription$Generic$OfTypeVariable$Symbolic.accept(TypeDescription.java:5551)
    4. net.bytebuddy.description.type.TypeDescription$Generic$Visitor$Substitutor.onParameterizedType(TypeDescription.java:1857)
    5. net.bytebuddy.description.type.TypeDescription$Generic$Visitor$Substitutor$ForAttachment.onParameterizedType(TypeDescription.java:1896)
    6. net.bytebuddy.description.type.TypeDescription$Generic$OfParameterizedType.accept(TypeDescription.java:5017)
    6 frames
  3. Byte Buddy (with dependencies)
    Transformer$ForMethod$TransformedMethod.getReturnType
    1. net.bytebuddy.dynamic.Transformer$ForMethod$TransformedMethod.getReturnType(Transformer.java:377)
    1 frame
  4. net.bytebuddy.description
    MethodDescription$AbstractBase.asTypeToken
    1. net.bytebuddy.description.method.MethodDescription$AbstractBase.asTypeToken(MethodDescription.java:685)
    1 frame
  5. Byte Buddy (with dependencies)
    TypeWriter$Default$ForInlining$RedefinitionClassVisitor.visit
    1. net.bytebuddy.dynamic.scaffold.MethodRegistry$Default$Prepared$Entry.resolveBridgeTypes(MethodRegistry.java:916)
    2. net.bytebuddy.dynamic.scaffold.MethodRegistry$Default$Prepared.compile(MethodRegistry.java:778)
    3. net.bytebuddy.dynamic.scaffold.TypeWriter$Default$ForInlining$RedefinitionClassVisitor.visit(TypeWriter.java:3281)
    3 frames
  6. net.bytebuddy.jar
    ClassReader.accept
    1. net.bytebuddy.jar.asm.ClassReader.accept(Unknown Source)
    2. net.bytebuddy.jar.asm.ClassReader.accept(Unknown Source)
    2 frames
  7. Byte Buddy (with dependencies)
    DynamicType$Builder$AbstractBase$Delegator.make
    1. net.bytebuddy.dynamic.scaffold.TypeWriter$Default$ForInlining.create(TypeWriter.java:3018)
    2. net.bytebuddy.dynamic.scaffold.TypeWriter$Default.make(TypeWriter.java:1617)
    3. net.bytebuddy.dynamic.scaffold.inline.RebaseDynamicTypeBuilder.make(RebaseDynamicTypeBuilder.java:198)
    4. net.bytebuddy.dynamic.scaffold.inline.AbstractInliningDynamicTypeBuilder.make(AbstractInliningDynamicTypeBuilder.java:90)
    5. net.bytebuddy.dynamic.DynamicType$Builder$AbstractBase.make(DynamicType.java:2566)
    6. net.bytebuddy.dynamic.DynamicType$Builder$AbstractBase$Delegator.make(DynamicType.java:2668)
    6 frames
  8. cl
    InnerClassLoader.loadClass
    1. cl.InnerClassLoader.loadClass(InnerClassLoader.java:187)
    1 frame
  9. Java RT
    ClassLoader.loadClass
    1. java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    1 frame
  10. test
    Stuff.<init>
    1. test.Stuff.<init>(Stuff.java:15)
    1 frame
  11. Java RT
    Class.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    4. java.lang.reflect.Constructor.newInstance(Constructor.java:408)
    5. java.lang.Class.newInstance(Class.java:438)
    5 frames
  12. test
    Main.main
    1. test.Main.main(Main.java:15)
    1 frame