groovy.lang.GroovyRuntimeException: Ambiguous method overloading <span class="code-keyword" style="color: #000091">for</span> method java.io.File#&lt;init&gt;. Cannot resolve which method to invoke <span class="code-keyword" style="color: #000091">for</span> [<span class="code-keyword" style="color: #000091">null</span>] due to overlapping prototypes between: [class java.lang.<span class="code-object" style="color: #910091">String</span>] [class java.net.URI]

Google Groups | raphael...@stef.com (JIRA) | 6 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

    [JIRA] (JENKINS-37967) dynamic choice parameter not compatible with folder + windows slave

    Google Groups | 6 months ago | raphael...@stef.com (JIRA)
    groovy.lang.GroovyRuntimeException: Ambiguous method overloading <span class="code-keyword" style="color: #000091">for</span> method java.io.File#&lt;init&gt;. Cannot resolve which method to invoke <span class="code-keyword" style="color: #000091">for</span> [<span class="code-keyword" style="color: #000091">null</span>] due to overlapping prototypes between: [class java.lang.<span class="code-object" style="color: #910091">String</span>] [class java.net.URI]
  2. 0

    if i use a dynamic choice parameter in a job executed on a (remote) windows slave, it works. {code:java} List<String> listDir = new ArrayList<String>(); new File(System.getenv("HOMEPATH")).eachDir() { dir -> listDir.add(dir.getName() ) } return listDir.reverse() {code} but if this job is in a folder (https://wiki.jenkins-ci.org/display/JENKINS/CloudBees+Folders+Plugin ), it does not work (the paramter field is empty in the jenkins log, i can see: {code:java} sept. 05, 2016 5:41:49 PM com.seitenbau.jenkins.plugins.dynamicparameter.BaseParameterDefinition executeScript AVERTISSEMENT: No label is assigned to project; script for parameter '' will be executed on master sept. 05, 2016 5:41:49 PM com.seitenbau.jenkins.plugins.dynamicparameter.util.JenkinsUtils execute GRAVE: Cannot access class path groovy.lang.GroovyRuntimeException: Ambiguous method overloading for method java.io.File#<init>. Cannot resolve which method to invoke for [null] due to overlapping prototypes between: [class java.lang.String] [class java.net.URI] at groovy.lang.MetaClassImpl.chooseMostSpecificParams(MetaClassImpl.java:3240) ... sept. 05, 2016 5:41:49 PM com.seitenbau.jenkins.plugins.dynamicparameter.BaseParameterDefinition getScriptResultAsList INFOS: Script parameter with name '' is not a instance of java.util.List the parameter value is : null {code}

    Jenkins JIRA | 6 months ago | Raphaël UNIQUE
    groovy.lang.GroovyRuntimeException: Ambiguous method overloading for method java.io.File#<init>. Cannot resolve which method to invoke for [null] due to overlapping prototypes between: [class java.lang.String] [class java.net.URI]

    Root Cause Analysis

    1. groovy.lang.GroovyRuntimeException

      Ambiguous method overloading <span class="code-keyword" style="color: #000091">for</span> method java.io.File#&lt;init&gt;. Cannot resolve which method to invoke <span class="code-keyword" style="color: #000091">for</span> [<span class="code-keyword" style="color: #000091">null</span>] due to overlapping prototypes between: [class java.lang.<span class="code-object" style="color: #910091">String</span>] [class java.net.URI]

      at groovy.lang.MetaClassImpl.chooseMostSpecificParams()
    2. Groovy
      MetaClassImpl.chooseMostSpecificParams
      1. groovy.lang.MetaClassImpl.chooseMostSpecificParams(MetaClassImpl.java:3240)
      1 frame