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

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

    XMLWordPrintable

Details

    Description

      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.

      Attachments

        Issue Links

          Activity

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

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

            Fixed import that NetBeans changed.

            slide_o_mix Alex Earl added a comment - Fixed import that NetBeans changed.
            sam_bakki Bakkiaraj Murugesan added a comment - - edited

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

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

            It was already released

            slide_o_mix Alex Earl added a comment - It was already released
            jglick Jesse Glick added a comment -

            Seems to be a trigger for JENKINS-21622.

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

            People

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

              Dates

                Created:
                Updated:
                Resolved: