java.lang.NoSuchMethodError: groovy.lang.GroovyClassLoader.parseClass(Ljava/io/InputStream;)Ljava/lang/<span class="code-object" style="color: #910091">Class</span>;

Google Groups | guillaum...@soprasteria.com (JIRA) | 5 months ago
  1. 0

    [JIRA] (JENKINS-36434) Jigomerge, Jenkins 2, GroovyClassLoader.parseClass Fatal error

    Google Groups | 5 months ago | guillaum...@soprasteria.com (JIRA)
    java.lang.NoSuchMethodError: groovy.lang.GroovyClassLoader.parseClass(Ljava/io/InputStream;)Ljava/lang/<span class="code-object" style="color: #910091">Class</span>;
  2. 0

    Running a simple jigomerge causes this error: {code:java} FATAL: groovy.lang.GroovyClassLoader.parseClass(Ljava/io/InputStream;)Ljava/lang/Class; java.lang.NoSuchMethodError: groovy.lang.GroovyClassLoader.parseClass(Ljava/io/InputStream;)Ljava/lang/Class; at hudson.plugins.jigomerge.JigomergeBuilder.perform(JigomergeBuilder.java:93) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779) at hudson.model.Build$BuildExecution.build(Build.java:205) at hudson.model.Build$BuildExecution.doRun(Build.java:162) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534) at hudson.model.Run.execute(Run.java:1741) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) {code} This is is due to a modification in groovy where [the method parseClass(InputStream in) has been removed|http://docs.groovy-lang.org/latest/html/api/groovy/lang/GroovyClassLoader.html#parseClass(java.io.InputStream,%20java.lang.String)]: the easiest alternative would be to use {code:java} parseClass(String text) {code} or a deprecated function {code:java} parseClass(InputStream in, String fileName) {code} This modification has to be done in [JigomergeBuilder.java#L93|https://github.com/jenkinsci/jigomerge-plugin/blob/master/src/main/java/hudson/plugins/jigomerge/JigomergeBuilder.java#L93]. EDIT: We maybe could rather change [JigomergeBuilder.java#L90|https://github.com/jenkinsci/jigomerge-plugin/blob/master/src/main/java/hudson/plugins/jigomerge/JigomergeBuilder.java#L90]: {code:java} InputStream scriptResource = this.getClass().getResourceAsStream( "/scripts/jigomerge-" + JIGOMERGE_VERSION + ".groovy"); {code} to {code:java} File scriptResource = new File ("/scripts/jigomerge-" + JIGOMERGE_VERSION + ".groovy"); {code}.

    Jenkins JIRA | 5 months ago | Guillaume Ménard
    java.lang.NoSuchMethodError: groovy.lang.GroovyClassLoader.parseClass(Ljava/io/InputStream;)Ljava/lang/Class;
  3. 0

    [JIRA] (JENKINS-36446) Bug when change auth system

    Google Groups | 5 months ago | jen...@feraudet.com (JIRA)
    java.lang.NoSuchMethodError: com.cloudbees.plugins.credentials.Messages.CredentialsProviderFilter_None_DisplayName()Ljava/lang/<span class="code-object" style="color: #910091">String</span>;
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [JIRA] (JENKINS-39090) Upgrade from Credentials 2.1.6 to Credentials 2.1.7 prevents logins

    Google Groups | 2 months ago | co...@codykonior.com (JIRA)
    java.lang.NoSuchMethodError: com.cloudbees.plugins.credentials.Messages.CredentialsProviderFilter_None_DisplayName()Ljava/lang/<span class="code-object" style="color: #910091">String</span>;
  6. 0

    [JIRA] [itemcategories-plugin] (JENKINS-34648) Cannot create new items after upgrade to 2.1

    Google Groups | 7 months ago | yannick...@obiba.org (JIRA)
    java.lang.NoSuchMethodError: hudson.model.Messages.ExternalJob_DisplayName()Ljava/lang/<span class="code-object" style="color: #910091">String</span>;

    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.NoSuchMethodError

      groovy.lang.GroovyClassLoader.parseClass(Ljava/io/InputStream;)Ljava/lang/<span class="code-object" style="color: #910091">Class</span>;

      at hudson.plugins.jigomerge.JigomergeBuilder.perform()
    2. hudson.plugins.jigomerge
      JigomergeBuilder.perform
      1. hudson.plugins.jigomerge.JigomergeBuilder.perform(JigomergeBuilder.java:93)
      1 frame
    3. Hudson
      Executor.run
      1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
      3. hudson.model.Build$BuildExecution.build(Build.java:205)
      4. hudson.model.Build$BuildExecution.doRun(Build.java:162)
      5. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
      6. hudson.model.Run.execute(Run.java:1741)
      7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      8. hudson.model.ResourceController.execute(ResourceController.java:98)
      9. hudson.model.Executor.run(Executor.java:410)
      9 frames