java.lang.NoSuchMethodException

no such method: de.cyclonit.exercise.TestEntity.setId(Long)Void/invokeVirtual

Solutions on the web291

  • via Stack Overflow by Cyclonit
    , 2 months ago
    no such method: de.cyclonit.exercise.TestEntity.setId(Long)Void/invokeVirtual
  • no such method: my.app.InsideController.test5()Object/invokeVirtual
  • no such method: com.olavgg.BlogController.list()Object/invokeVirtual
  • Stack trace

    • java.lang.NoSuchMethodException: no such method: de.cyclonit.exercise.TestEntity.setId(Long)Void/invokeVirtual at java.lang.invoke.MemberName.makeAccessException(MemberName.java:871) at java.lang.invoke.MemberName$Factory.resolveOrFail(MemberName.java:1003) at java.lang.invoke.MethodHandles$Lookup.resolveOrFail(MethodHandles.java:1381) at java.lang.invoke.MethodHandles$Lookup.findVirtual(MethodHandles.java:859) at de.cyclonit.exercise.AccessorFactory.getSetter(AccessorFactory.java:41) at de.cyclonit.exercise.Main.main(Main.java:21) Caused by: java.lang.NoSuchFieldError: method resolution failed at java.lang.invoke.MethodHandleNatives.resolve(Native Method) at java.lang.invoke.MemberName$Factory.resolve(MemberName.java:975) at java.lang.invoke.MemberName$Factory.resolveOrFail(MemberName.java:1000) ... 4 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You are the first who have seen this exception. Write a tip to help other users and build your expert profile.