[JIRA] (JENKINS-61787) jenkins.model.Jenkins loaded from parser callable via TestNameTransformer

16 views
Skip to first unread message

jglick@cloudbees.com (JIRA)

unread,
Apr 2, 2020, 11:59:03 AM4/2/20
to jenkinsc...@googlegroups.com
Jesse Glick created an issue
 
Jenkins / Bug JENKINS-61787
jenkins.model.Jenkins loaded from parser callable via TestNameTransformer
Issue Type: Bug Bug
Assignee: Unassigned
Components: junit-plugin
Created: 2020-04-02 15:58
Labels: remoting
Priority: Blocker Blocker
Reporter: Jesse Glick

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).

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

jglick@cloudbees.com (JIRA)

unread,
Apr 2, 2020, 12:06:03 PM4/2/20
to jenkinsc...@googlegroups.com

jglick@cloudbees.com (JIRA)

unread,
Apr 2, 2020, 12:15:02 PM4/2/20
to jenkinsc...@googlegroups.com

jglick@cloudbees.com (JIRA)

unread,
Apr 2, 2020, 12:16:02 PM4/2/20
to jenkinsc...@googlegroups.com
Jesse Glick started work on Bug JENKINS-61787
 
Change By: Jesse Glick
Status: Open In Progress

jglick@cloudbees.com (JIRA)

unread,
Apr 2, 2020, 12:16:08 PM4/2/20
to jenkinsc...@googlegroups.com

jenkins@mrozekma.com (JIRA)

unread,
Apr 23, 2020, 8:25:02 AM4/23/20
to jenkinsc...@googlegroups.com
Michael Mrozek commented on Bug JENKINS-61787
 
Re: jenkins.model.Jenkins loaded from parser callable via TestNameTransformer

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@cloudbees.com (JIRA)

unread,
Apr 23, 2020, 5:52:03 PM4/23/20
to jenkinsc...@googlegroups.com
Change By: Jesse Glick
Status: In Review Fixed but Unreleased
Resolution: Fixed
Released As: 1.29

jglick@cloudbees.com (JIRA)

unread,
Apr 30, 2020, 11:30:05 AM4/30/20
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages