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

MSTest plugin (v. 0.18) returns "java.lang.NoClassDefFoundError"

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Component/s: mstest-plugin
    • Labels:
      None
    • Environment:
      Windows 2008 R2 - Jenkins ver. 1.596.2 - Java version "1.6.0_26"
    • Similar Issues:

      Description

      An error is thrown while trying to import the .TRX file. It looks like the import should be "java/nio/charset/StandardCharset" rather then "java/nio/charset/StandardCharsets"?

      ERROR: Publisher hudson.plugins.mstest.MSTestPublisher aborted due to exception
      java.lang.NoClassDefFoundError: java/nio/charset/StandardCharsets
      at hudson.plugins.mstest.ContentCorrector.fix(ContentCorrector.java:27)
      at hudson.plugins.mstest.MSTestTransformer.invoke(MSTestTransformer.java:73)
      at hudson.plugins.mstest.MSTestTransformer.invoke(MSTestTransformer.java:23)
      at hudson.FilePath.act(FilePath.java:989)
      at hudson.FilePath.act(FilePath.java:967)
      at hudson.plugins.mstest.MSTestPublisher.perform(MSTestPublisher.java:120)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:761)
      at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:721)
      at hudson.model.Build$BuildExecution.post2(Build.java:183)
      at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:670)
      at hudson.model.Run.execute(Run.java:1766)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:98)
      at hudson.model.Executor.run(Executor.java:374)
      Caused by: java.lang.ClassNotFoundException: java.nio.charset.StandardCharsets
      at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1375)
      at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1325)
      at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1078)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      ... 15 more

        Attachments

          Activity

          czerny Libero Scarcelli created issue -
          czerny Libero Scarcelli made changes -
          Field Original Value New Value
          Environment Windows 2008 R2 - Jenkins ver. 1.609.1 - Java version "1.6.0_26" Windows 2008 R2 - Jenkins ver. 1.596.2 - Java version "1.6.0_26"
          nilleb Ivo Bellin Salarin made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 163898 ] JNJira + In-Review [ 197346 ]

            People

            • Assignee:
              nilleb Ivo Bellin Salarin
              Reporter:
              czerny Libero Scarcelli
            • Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: