Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-19089

java.lang.NoClassDefFoundError: org/sonatype/aether/util/StringUtils wrong StringUtils class

      This error prevents the mail-ext plugin from being usable.

      FATAL: org/sonatype/aether/util/StringUtils
      java.lang.NoClassDefFoundError: org/sonatype/aether/util/StringUtils
      at hudson.plugins.emailext.plugins.content.ChangesSinceLastBuildContent.evaluate(ChangesSinceLastBuildContent.java:56)
      at org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro.evaluate(DataBoundTokenMacro.java:177)
      at org.jenkinsci.plugins.tokenmacro.TokenMacro.expand(TokenMacro.java:182)
      at org.jenkinsci.plugins.tokenmacro.TokenMacro.expandAll(TokenMacro.java:233)
      at hudson.plugins.emailext.plugins.ContentBuilder.transformText(ContentBuilder.java:63)
      at hudson.plugins.emailext.ExtendedEmailPublisher.getContent(ExtendedEmailPublisher.java:705)
      at hudson.plugins.emailext.ExtendedEmailPublisher.createMail(ExtendedEmailPublisher.java:488)
      at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:319)
      at hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:311)
      at hudson.plugins.emailext.ExtendedEmailPublisher.prebuild(ExtendedEmailPublisher.java:261)
      at hudson.model.AbstractBuild$AbstractBuildExecution.preBuild(AbstractBuild.java:838)
      at hudson.model.AbstractBuild$AbstractBuildExecution.preBuild(AbstractBuild.java:833)
      at hudson.model.Build$BuildExecution.doRun(Build.java:142)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:586)
      at hudson.model.Run.execute(Run.java:1597)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:247)

      I suspect that the developer accidently used the wrong StringUtils class. I think he should have used the Apache commons-lang class instead.

          [JENKINS-19089] java.lang.NoClassDefFoundError: org/sonatype/aether/util/StringUtils wrong StringUtils class

          At least one user comments the same problem as the one described here.

          Sven Diedrichsen added a comment - At least one user comments the same problem as the one described here.

          Alex Earl added a comment -

          Fixed import that NetBeans changed.

          Alex Earl added a comment - Fixed import that NetBeans changed.

          Bakkiaraj Murugesan added a comment - - edited

          Thank you very much for this update. I am upgrading the plugin now.

          Bakkiaraj Murugesan added a comment - - edited Thank you very much for this update. I am upgrading the plugin now.

          Alex Earl added a comment -

          It was already released

          Alex Earl added a comment - It was already released

          Jesse Glick added a comment -

          Seems to be a trigger for JENKINS-21622.

          Jesse Glick added a comment - Seems to be a trigger for JENKINS-21622 .

            slide_o_mix Alex Earl
            sven_diedrichsen Sven Diedrichsen
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: