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

FATAL: tried to access method hudson.tasks.test.AggregatedTestResultAction.add

      The exception below occurs when building a matrix project. The build itself works, but is marked as failure because of the following exception.

      FATAL: tried to access method hudson.tasks.test.AggregatedTestResultAction.add(Lhudson/tasks/test/AbstractTestResultAction;)V from class hudson.tasks.test.TestResultAggregator
      java.lang.IllegalAccessError: tried to access method hudson.tasks.test.AggregatedTestResultAction.add(Lhudson/tasks/test/AbstractTestResultAction;)V from class hudson.tasks.test.TestResultAggregator
      	at hudson.tasks.test.TestResultAggregator.endRun(TestResultAggregator.java:57)
      	at hudson.matrix.DefaultMatrixExecutionStrategyImpl.notifyEndBuild(DefaultMatrixExecutionStrategyImpl.java:219)
      	at hudson.matrix.DefaultMatrixExecutionStrategyImpl.run(DefaultMatrixExecutionStrategyImpl.java:162)
      	at hudson.matrix.MatrixBuild$MatrixBuildExecution.doRun(MatrixBuild.java:357)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:518)
      	at hudson.model.Run.execute(Run.java:1709)
      	at hudson.matrix.MatrixBuild.run(MatrixBuild.java:306)
      	at hudson.model.ResourceController.execute(ResourceController.java:88)
      	at hudson.model.Executor.run(Executor.java:231)
      	at hudson.model.OneOffExecutor.run(OneOffExecutor.java:43)
      

      Version 1.561 is affected, a downgrade to 1.560 solves the issue for me.

          [JENKINS-22798] FATAL: tried to access method hudson.tasks.test.AggregatedTestResultAction.add

          Florian P created issue -

          Hitting same pb after upgrading to 1.561

          Christophe Cornu added a comment - Hitting same pb after upgrading to 1.561

          Will Hughes added a comment -

          Same problem as well on 1.561

          Will Hughes added a comment - Same problem as well on 1.561

          Same problem here also, Ubuntu 12.04.

          Also noticed this in some of the individual nodes of the matrix project:

          Recording test results
          ERROR: Failed to archive test reports
          java.io.IOException: remote file operation failed: /home/jenkins/workspace/test-opendnssec-1.3/label/redhat6 at hudson.remoting.Channel@3a03c1d4:redhat6-ods04
          	at hudson.FilePath.act(FilePath.java:916)
          	at hudson.FilePath.act(FilePath.java:893)
          	at hudson.tasks.junit.JUnitParser.parse(JUnitParser.java:87)
          	at hudson.tasks.junit.JUnitResultArchiver.parse(JUnitResultArchiver.java:117)
          	at hudson.tasks.junit.JUnitResultArchiver.perform(JUnitResultArchiver.java:129)
          	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
          	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:745)
          	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:709)
          	at hudson.model.Build$BuildExecution.post2(Build.java:182)
          	at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:658)
          	at hudson.model.Run.execute(Run.java:1734)
          	at hudson.matrix.MatrixRun.run(MatrixRun.java:146)
          	at hudson.model.ResourceController.execute(ResourceController.java:88)
          	at hudson.model.Executor.run(Executor.java:231)
          Caused by: java.io.IOException: Remote call on redhat6-ods04 failed
          	at hudson.remoting.Channel.call(Channel.java:748)
          	at hudson.FilePath.act(FilePath.java:909)
          	... 13 more
          Caused by: java.lang.NoClassDefFoundError: Could not initialize class jenkins.model.Jenkins
          	at hudson.util.io.ParserConfigurator.applyConfiguration(ParserConfigurator.java:78)
          	at hudson.tasks.junit.SuiteResult.parse(SuiteResult.java:121)
          	at hudson.tasks.junit.TestResult.parse(TestResult.java:273)
          	at hudson.tasks.junit.TestResult.parsePossiblyEmpty(TestResult.java:229)
          	at hudson.tasks.junit.TestResult.parse(TestResult.java:164)
          	at hudson.tasks.junit.TestResult.parse(TestResult.java:147)
          	at hudson.tasks.junit.TestResult.<init>(TestResult.java:123)
          	at hudson.tasks.junit.JUnitParser$ParseResultCallable.invoke(JUnitParser.java:117)
          	at hudson.tasks.junit.JUnitParser$ParseResultCallable.invoke(JUnitParser.java:90)
          	at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2474)
          	at hudson.remoting.UserRequest.perform(UserRequest.java:118)
          	at hudson.remoting.UserRequest.perform(UserRequest.java:48)
          	at hudson.remoting.Request$2.run(Request.java:328)
          	at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
          	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
          	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
          	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
          	at java.lang.Thread.run(Thread.java:744)
          Build step 'Publish JUnit test result report' changed build result to FAILURE
          Finished: FAILURE
          

          Jerry Lundström added a comment - Same problem here also, Ubuntu 12.04. Also noticed this in some of the individual nodes of the matrix project: Recording test results ERROR: Failed to archive test reports java.io.IOException: remote file operation failed: /home/jenkins/workspace/test-opendnssec-1.3/label/redhat6 at hudson.remoting.Channel@3a03c1d4:redhat6-ods04 at hudson.FilePath.act(FilePath.java:916) at hudson.FilePath.act(FilePath.java:893) at hudson.tasks.junit.JUnitParser.parse(JUnitParser.java:87) at hudson.tasks.junit.JUnitResultArchiver.parse(JUnitResultArchiver.java:117) at hudson.tasks.junit.JUnitResultArchiver.perform(JUnitResultArchiver.java:129) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:745) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:709) at hudson.model.Build$BuildExecution.post2(Build.java:182) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:658) at hudson.model.Run.execute(Run.java:1734) at hudson.matrix.MatrixRun.run(MatrixRun.java:146) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:231) Caused by: java.io.IOException: Remote call on redhat6-ods04 failed at hudson.remoting.Channel.call(Channel.java:748) at hudson.FilePath.act(FilePath.java:909) ... 13 more Caused by: java.lang.NoClassDefFoundError: Could not initialize class jenkins.model.Jenkins at hudson.util.io.ParserConfigurator.applyConfiguration(ParserConfigurator.java:78) at hudson.tasks.junit.SuiteResult.parse(SuiteResult.java:121) at hudson.tasks.junit.TestResult.parse(TestResult.java:273) at hudson.tasks.junit.TestResult.parsePossiblyEmpty(TestResult.java:229) at hudson.tasks.junit.TestResult.parse(TestResult.java:164) at hudson.tasks.junit.TestResult.parse(TestResult.java:147) at hudson.tasks.junit.TestResult.<init>(TestResult.java:123) at hudson.tasks.junit.JUnitParser$ParseResultCallable.invoke(JUnitParser.java:117) at hudson.tasks.junit.JUnitParser$ParseResultCallable.invoke(JUnitParser.java:90) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2474) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:328) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) Build step 'Publish JUnit test result report' changed build result to FAILURE Finished: FAILURE

          Hi,

          Could the original reporter or the assignee maybe change the component to core Jenkins?

          I do not have the component listed installed and looking at the logs this seems to be a core problem.

          /Jerry

          Jerry Lundström added a comment - Hi, Could the original reporter or the assignee maybe change the component to core Jenkins? I do not have the component listed installed and looking at the logs this seems to be a core problem. /Jerry
          Jerry Lundström made changes -
          Component/s New: junit [ 15499 ]
          Component/s Original: cobertura [ 15500 ]
          Assignee Original: Stephen Connolly [ stephenconnolly ]
          Jerry Lundström made changes -
          Component/s New: cobertura [ 15500 ]
          Assignee New: Stephen Connolly [ stephenconnolly ]

          Nevermind, I was able to change it some myself

          Jerry Lundström added a comment - Nevermind, I was able to change it some myself
          Jerry Lundström made changes -
          Component/s New: matrix-project [ 18765 ]
          Jerry Lundström made changes -
          Assignee Original: Stephen Connolly [ stephenconnolly ] New: Kohsuke Kawaguchi [ kohsuke ]

            mc1arke Michael Clarke
            notizblock Florian P
            Votes:
            9 Vote for this issue
            Watchers:
            18 Start watching this issue

              Created:
              Updated:
              Resolved: