java.lang.NoClassDefFoundError: java/nio/charset/StandardCharsets

Jenkins JIRA | Libero Scarcelli | 1 year ago
  1. 0

    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

    Jenkins JIRA | 1 year ago | Libero Scarcelli
    java.lang.NoClassDefFoundError: java/nio/charset/StandardCharsets
  2. 0

    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

    Jenkins JIRA | 1 year ago | Libero Scarcelli
    java.lang.NoClassDefFoundError: java/nio/charset/StandardCharsets
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Env: Jenkins 2.10 and JAP 2.5.0 Reproduction: Try to build the maven example project *with* post build deployment step, the job will quit and throw this exception the attached stack trace. {code}Started by user anonymous Building in workspace /home/andreik/.jenkins/jobs/Maven tester/workspace FATAL: org/codehaus/plexus/classworlds/realm/ClassRealm java.lang.NoClassDefFoundError: org/codehaus/plexus/classworlds/realm/ClassRealm at org.jfrog.hudson.maven3.MavenVersionCallable.call(MavenVersionCallable.java:45) at org.jfrog.hudson.maven3.MavenVersionCallable.call(MavenVersionCallable.java:33) at hudson.FilePath.act(FilePath.java:1105) at org.jfrog.hudson.util.MavenVersionHelper.isAtLeast(MavenVersionHelper.java:109) at org.jfrog.hudson.util.MavenVersionHelper.isAtLeastVersion(MavenVersionHelper.java:81) at org.jfrog.hudson.util.MavenVersionHelper.isAtLeastResolutionCapableVersion(MavenVersionHelper.java:72) at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.isMavenVersionValid(MavenExtractorEnvironment.java:165) at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:100) at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:931) at hudson.maven.AbstractMavenBuild.getEnvironment(AbstractMavenBuild.java:56) at hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:165) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:620) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534) at hudson.model.Run.execute(Run.java:1720) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Caused by: java.lang.ClassNotFoundException: org.codehaus.plexus.classworlds.realm.ClassRealm at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1376) at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1326) at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1079) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 17 more Finished: FAILURE{code}

    JFrog JIRA | 6 months ago | Andrei Komarov
    java.lang.NoClassDefFoundError: org/codehaus/plexus/classworlds/realm/ClassRealm
  5. 0

    Env: Jenkins 2.10 and JAP 2.5.0 Reproduction: Try to build the maven example project *with* post build deployment step, the job will quit and throw this exception the attached stack trace. {code}Started by user anonymous Building in workspace /home/andreik/.jenkins/jobs/Maven tester/workspace FATAL: org/codehaus/plexus/classworlds/realm/ClassRealm java.lang.NoClassDefFoundError: org/codehaus/plexus/classworlds/realm/ClassRealm at org.jfrog.hudson.maven3.MavenVersionCallable.call(MavenVersionCallable.java:45) at org.jfrog.hudson.maven3.MavenVersionCallable.call(MavenVersionCallable.java:33) at hudson.FilePath.act(FilePath.java:1105) at org.jfrog.hudson.util.MavenVersionHelper.isAtLeast(MavenVersionHelper.java:109) at org.jfrog.hudson.util.MavenVersionHelper.isAtLeastVersion(MavenVersionHelper.java:81) at org.jfrog.hudson.util.MavenVersionHelper.isAtLeastResolutionCapableVersion(MavenVersionHelper.java:72) at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.isMavenVersionValid(MavenExtractorEnvironment.java:165) at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:100) at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:931) at hudson.maven.AbstractMavenBuild.getEnvironment(AbstractMavenBuild.java:56) at hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:165) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:620) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534) at hudson.model.Run.execute(Run.java:1720) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Caused by: java.lang.ClassNotFoundException: org.codehaus.plexus.classworlds.realm.ClassRealm at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1376) at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1326) at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1079) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 17 more Finished: FAILURE{code}

    JFrog JIRA | 6 months ago | Andrei Komarov
    java.lang.NoClassDefFoundError: org/codehaus/plexus/classworlds/realm/ClassRealm

  1. davidvanlaatum 22 times, last 6 months ago
  2. poroszd 1 times, last 2 months ago
22 unregistered visitors
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.ClassNotFoundException

    java.nio.charset.StandardCharsets

    at jenkins.util.AntClassLoader.findClassInComponents()
  2. jenkins.util
    AntClassLoader.loadClass
    1. jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1375)
    2. jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1325)
    3. jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1078)
    3 frames
  3. Java RT
    ClassLoader.loadClass
    1. java.lang.ClassLoader.loadClass(Unknown Source)
    1 frame
  4. hudson.plugins.mstest
    MSTestTransformer.invoke
    1. hudson.plugins.mstest.ContentCorrector.fix(ContentCorrector.java:27)
    2. hudson.plugins.mstest.MSTestTransformer.invoke(MSTestTransformer.java:73)
    3. hudson.plugins.mstest.MSTestTransformer.invoke(MSTestTransformer.java:23)
    3 frames
  5. Hudson
    FilePath.act
    1. hudson.FilePath.act(FilePath.java:989)
    2. hudson.FilePath.act(FilePath.java:967)
    2 frames
  6. hudson.plugins.mstest
    MSTestPublisher.perform
    1. hudson.plugins.mstest.MSTestPublisher.perform(MSTestPublisher.java:120)
    1 frame
  7. Hudson
    Executor.run
    1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
    2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:761)
    3. hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:721)
    4. hudson.model.Build$BuildExecution.post2(Build.java:183)
    5. hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:670)
    6. hudson.model.Run.execute(Run.java:1766)
    7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    8. hudson.model.ResourceController.execute(ResourceController.java:98)
    9. hudson.model.Executor.run(Executor.java:374)
    9 frames