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

error parsing contents.m file

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major Major
    • coverage-plugin
    • None

      When running recordCoverage step I get the error below. It mentions the file contents.m, which contains something like (it is only comments, as indicated by % character):

      % Seatools Matlab/Simulink block and tools library - Documentation:
      %
      %   helpsearch-v4_en        - help search index (R2022b)
      %   html-files              - block description help documentation
      %   doc_style.css            - help style sheet
      %   custom_toolbox.json        - generated json file for help index search
      %   helptoc.xml                - help table of contents
      %   images                  - helper files icons etc. for help documentation
      %   pdf                     - pdf-documents

       

      Stack trace:
      Also: hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from 2016remote/192.168.1.11:52599
      at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1787)
      at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:356)
      at hudson.remoting.Channel.call(Channel.java:1003)
      at hudson.FilePath.act(FilePath.java:1230)
      at hudson.FilePath.act(FilePath.java:1219)
      at io.jenkins.plugins.coverage.metrics.steps.CoverageRecorder.recordCoverageResults(CoverageRecorder.java:488)
      at io.jenkins.plugins.coverage.metrics.steps.CoverageRecorder.perform(CoverageRecorder.java:412)
      at io.jenkins.plugins.coverage.metrics.steps.CoverageRecorder.perform(CoverageRecorder.java:402)
      at io.jenkins.plugins.coverage.metrics.steps.CoverageStep$Execution.run(CoverageStep.java:365)
      at io.jenkins.plugins.coverage.metrics.steps.CoverageStep$Execution.run(CoverageStep.java:333)
      at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
      at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
      at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
      at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
      Also: org.jenkinsci.plugins.workflow.actions.ErrorAction$ErrorId: acbc982b-9655-4d48-a68e-b86160d04070
      java.lang.IllegalArgumentException: There is already a child [CLASS] Contents <0> with the name Contents in [FILE] Contents.m <1, LINE: n/a>
      at edu.hm.hafner.coverage.Node.addChild(Node.java:167)
      at edu.hm.hafner.coverage.FileNode.createClassNode(FileNode.java:691)
      at edu.hm.hafner.coverage.parser.CoberturaParser.createClassNode(CoberturaParser.java:243)
      at edu.hm.hafner.coverage.parser.CoberturaParser.createNode(CoberturaParser.java:219)
      at edu.hm.hafner.coverage.parser.CoberturaParser.readClassOrMethod(CoberturaParser.java:164)
      at edu.hm.hafner.coverage.parser.CoberturaParser.readPackage(CoberturaParser.java:133)
      at edu.hm.hafner.coverage.parser.CoberturaParser.readModule(CoberturaParser.java:112)
      at edu.hm.hafner.coverage.parser.CoberturaParser.parseReport(CoberturaParser.java:90)
      at edu.hm.hafner.coverage.CoverageParser.parse(CoverageParser.java:81)
      at io.jenkins.plugins.coverage.metrics.steps.CoverageReportScanner.processFile(CoverageReportScanner.java:63)
      at io.jenkins.plugins.util.AgentFileVisitor.scanFiles(AgentFileVisitor.java:114)
      at io.jenkins.plugins.util.AgentFileVisitor.invoke(AgentFileVisitor.java:93)
      at io.jenkins.plugins.util.AgentFileVisitor.invoke(AgentFileVisitor.java:39)
      at hudson.FilePath$FileCallableWrapper.call(FilePath.java:3616)
      at hudson.remoting.UserRequest.perform(UserRequest.java:211)
      at hudson.remoting.UserRequest.perform(UserRequest.java:54)
      at hudson.remoting.Request$2.run(Request.java:377)
      at hudson.remoting.InterceptingExecutorService.lambda$wrap$0(InterceptingExecutorService.java:78)
      at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
      at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
      at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:137)
      at java.base/java.lang.Thread.run(Thread.java:833)

            drulli Ulli Hafner
            han_geerligs Han Geerligs
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: