org.codehaus.groovy.runtime.metaclass.MethodSelectionException: Could not find which method <init>() to invoke from this list: public java.lang.Boolean#<init>(boolean) public java.lang.Boolean#<init>(java.lang.String)

Stack Overflow | Ambuj Jauhari | 7 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Could not find which method <init>() to invoke from this list on newInstance in groovy closure

    Stack Overflow | 7 months ago | Ambuj Jauhari
    org.codehaus.groovy.runtime.metaclass.MethodSelectionException: Could not find which method <init>() to invoke from this list: public java.lang.Boolean#<init>(boolean) public java.lang.Boolean#<init>(java.lang.String)

    Root Cause Analysis

    1. org.codehaus.groovy.runtime.metaclass.MethodSelectionException

      Could not find which method <init>() to invoke from this list: public java.lang.Boolean#<init>(boolean) public java.lang.Boolean#<init>(java.lang.String)

      at groovy.lang.MetaClassImpl.chooseMethodInternal()
    2. Groovy
      MetaClassImpl.invokeConstructor
      1. groovy.lang.MetaClassImpl.chooseMethodInternal(MetaClassImpl.java:3160)
      2. groovy.lang.MetaClassImpl.chooseMethod(MetaClassImpl.java:3097)
      3. groovy.lang.MetaClassImpl.invokeConstructor(MetaClassImpl.java:1707)
      4. groovy.lang.MetaClassImpl.invokeConstructor(MetaClassImpl.java:1526)
      4 frames