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

jenkins.model.Jenkins loaded from parser callable via TestNameTransformer

    XMLWordPrintable

Details

    • 1.29

    Description

      https://ci.jenkins.io/job/Plugins/job/github-branch-source-plugin/job/PR-291/4/console failed with

      Recording test results
      Remote call on EC2 (aws) - Ubuntu 18.04 LTS (i-011fe09e35adc9532) failed
      Also:   hudson.remoting.Channel$CallSiteStackTrace: Remote call to EC2 (aws) - Ubuntu 18.04 LTS (i-011fe09e35adc9532)
      		at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1788)
      		at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:356)
      		at hudson.remoting.Channel.call(Channel.java:998)
      		at hudson.FilePath.act(FilePath.java:1069)
      		at hudson.FilePath.act(FilePath.java:1058)
      		at hudson.tasks.junit.JUnitParser.parseResult(JUnitParser.java:114)
      		at hudson.tasks.junit.JUnitResultArchiver.parse(JUnitResultArchiver.java:137)
      		at hudson.tasks.junit.JUnitResultArchiver.parseAndAttach(JUnitResultArchiver.java:167)
      		at hudson.tasks.junit.pipeline.JUnitResultsStepExecution.run(JUnitResultsStepExecution.java:52)
      		at hudson.tasks.junit.pipeline.JUnitResultsStepExecution.run(JUnitResultsStepExecution.java:25)
      		at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
      		at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
      java.lang.NoClassDefFoundError: Could not initialize class jenkins.model.Jenkins
      	at hudson.ExtensionList.lookup(ExtensionList.java:433)
      	at hudson.tasks.junit.TestNameTransformer.all(TestNameTransformer.java:40)
      	at hudson.tasks.junit.TestNameTransformer.getTransformedName(TestNameTransformer.java:33)
      	at hudson.tasks.junit.CaseResult.getTransformedTestName(CaseResult.java:273)
      	at hudson.tasks.junit.SuiteResult.casesByName(SuiteResult.java:134)
      	at hudson.tasks.junit.SuiteResult.addCase(SuiteResult.java:297)
      	at hudson.tasks.junit.SuiteResult.<init>(SuiteResult.java:270)
      	at hudson.tasks.junit.SuiteResult.parseSuite(SuiteResult.java:209)
      	at hudson.tasks.junit.SuiteResult.parse(SuiteResult.java:181)
      	at hudson.tasks.junit.TestResult.parse(TestResult.java:348)
      	at hudson.tasks.junit.TestResult.parsePossiblyEmpty(TestResult.java:281)
      	at hudson.tasks.junit.TestResult.parse(TestResult.java:206)
      	at hudson.tasks.junit.TestResult.parse(TestResult.java:178)
      	at hudson.tasks.junit.TestResult.<init>(TestResult.java:143)
      	at hudson.tasks.junit.JUnitParser$ParseResultCallable.invoke(JUnitParser.java:146)
      	at hudson.tasks.junit.JUnitParser$ParseResultCallable.invoke(JUnitParser.java:118)
      	at hudson.FilePath$FileCallableWrapper.call(FilePath.java:3069)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:211)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:54)
      	at hudson.remoting.Request$2.run(Request.java:369)
      	at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
      Caused: java.io.IOException: Remote call on EC2 (aws) - Ubuntu 18.04 LTS (i-011fe09e35adc9532) failed
      	at hudson.remoting.Channel.call(Channel.java:1004)
      	at hudson.FilePath.act(FilePath.java:1069)
      	at hudson.FilePath.act(FilePath.java:1058)
      	at hudson.tasks.junit.JUnitParser.parseResult(JUnitParser.java:114)
      	at hudson.tasks.junit.JUnitResultArchiver.parse(JUnitResultArchiver.java:137)
      	at hudson.tasks.junit.JUnitResultArchiver.parseAndAttach(JUnitResultArchiver.java:167)
      	at hudson.tasks.junit.pipeline.JUnitResultsStepExecution.run(JUnitResultsStepExecution.java:52)
      	at hudson.tasks.junit.pipeline.JUnitResultsStepExecution.run(JUnitResultsStepExecution.java:25)
      	at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
      	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
      	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
      	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
      	at java.base/java.lang.Thread.run(Thread.java:834)
      Finished: FAILURE
      

      I think the issue here is that ExtensionList is being queried from an agent JVM, which is illegal (though this is not yet enforced).

      Attachments

        Issue Links

          Activity

            Not sure if this helps at all, but this can happen when you run out of memory/disk space on the agent. I was hitting the same stack trace after an agent had run out of disk space, even after I freed up some, and this comment got me to try disconnecting/reconnecting it, which fixed it for me

            mrozekma Michael Mrozek added a comment - Not sure if this helps at all, but this can happen when you run out of memory/disk space on the agent. I was hitting the same stack trace after an agent had run out of disk space, even after I freed up some, and this comment got me to try disconnecting/reconnecting it, which fixed it for me
            jglick Jesse Glick added a comment - Only apparent implementation: https://github.com/jenkinsci/scala-junit-name-decoder-plugin/blob/e172d93fd3e74f3610db658f0b94d029321d2305/src/main/java/org/jenkinsci/plugins/scalajunitnamedecoder/ScalaTestNameTransformer.java

            People

              jglick Jesse Glick
              jglick Jesse Glick
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: