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

Big TRX file causing 'Publish MSTest' [MSTEST-PLUGIN] to Fail

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: In Progress (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: mstest-plugin
    • Labels:
      None
    • Environment:
      Windows 8.1 x64 w/ Jenkins 1.642.1
    • Similar Issues:

      Description

      Hello,

      I have a job that has a lot of unit tests ~30,000. When it gets to the point of parsing the the produced *trx file I get a 'No more DTM IDs are available' error. My *trx file is ~40MB big (too big to attach to this ticket). Below is the error:

      Total tests: 29880. Passed: 29878. Failed: 2. Skipped: 0.
      Test Run Failed.
      Test execution time: 1.0809 Hours
      Build step 'Run unit tests with VSTest.console' marked build as failure
      [MSTEST-PLUGIN] Processing test results in file(s) UnitTests\TestResults*.trx
      MSTest: C:\Jenkins\jobs\Scout - BarnsleyBeatDown\workspace\UnitTests\TestResults\SYSTEM_AIT-UI-DEV 2016-03-28 11_13_23.trx
      ERROR: Step 'Publish MSTest test result report' aborted due to exception:
      java.io.IOException: [MSTEST-PLUGIN] Could not transform the MSTest report. Please report this issue to the plugin author
      at hudson.plugins.mstest.MSTestTransformer.invoke(MSTestTransformer.java:76)
      at hudson.plugins.mstest.MSTestTransformer.invoke(MSTestTransformer.java:23)
      at hudson.FilePath.act(FilePath.java:990)
      at hudson.FilePath.act(FilePath.java:968)
      at hudson.plugins.mstest.MSTestPublisher.perform(MSTestPublisher.java:114)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782)
      at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723)
      at hudson.model.Build$BuildExecution.post2(Build.java:185)
      at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:668)
      at hudson.model.Run.execute(Run.java:1763)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:98)
      at hudson.model.Executor.run(Executor.java:410)
      Caused by: javax.xml.transform.TransformerException: com.sun.org.apache.xml.internal.dtm.DTMException: No more DTM IDs are available
      at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(Unknown Source)
      at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(Unknown Source)
      at hudson.plugins.mstest.XslTransformer.transform(XslTransformer.java:51)
      at hudson.plugins.mstest.MSTestReportConverter.transform(MSTestReportConverter.java:149)
      at hudson.plugins.mstest.MSTestReportConverter.transform(MSTestReportConverter.java:68)
      at hudson.plugins.mstest.MSTestTransformer.invoke(MSTestTransformer.java:74)
      ... 13 more
      Caused by: com.sun.org.apache.xml.internal.dtm.DTMException: No more DTM IDs are available
      at com.sun.org.apache.xml.internal.dtm.ref.DTMManagerDefault.addDTM(Unknown Source)
      at com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager.getDTM(Unknown Source)
      at com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager.getDTM(Unknown Source)
      at com.sun.org.apache.xalan.internal.xsltc.dom.SAXImpl.getResultTreeFrag(Unknown Source)
      at com.sun.org.apache.xalan.internal.xsltc.dom.DOMAdapter.getResultTreeFrag(Unknown Source)
      at GregorSamsa.template$dot$0()
      at GregorSamsa.applyTemplates()
      at GregorSamsa.transform()
      at com.sun.org.apache.xalan.internal.xsltc.runtime.AbstractTranslet.transform(Unknown Source)
      ... 19 more

        Attachments

          Activity

          Hide
          nilleb Ivo Bellin Salarin added a comment -

          Could you please give us a little more details?

          Your issue seems related to the execution environment. Which is the JDK version being used? Which was the Jenkins version?

          More about your issue: it could be related to the use of an old JDK, or to the presence of an old Xalan version in your classpath

          See this item on the apache xalan FAQ: http://xml.apache.org/xalan-j/faq.html#faq-N10340

          Show
          nilleb Ivo Bellin Salarin added a comment - Could you please give us a little more details? Your issue seems related to the execution environment. Which is the JDK version being used? Which was the Jenkins version? More about your issue: it could be related to the use of an old JDK, or to the presence of an old Xalan version in your classpath See this item on the apache xalan FAQ: http://xml.apache.org/xalan-j/faq.html#faq-N10340
          Hide
          jfradley Joseph Fradley added a comment -

          Hi Ivo,

          Thank you for looking into this.

          Jenkins version: 1.642.1

          JRE: 1.8.0_77

          We just have the Java runtime installed, not the full JDK. I tried to run the utility referred to here:

          http://xml.apache.org/xalan-j/faq.html#environmentcheck

          but get this error:

          'Error: Could not find or load main class org.apache.xalan.xslt.EnvironmentCheck

          I'm assuming I need the full JDK to run it. Do I need to install the JDK to run Jenkins? We actually develop using completely different languages and never had to before.

          Joe

          Show
          jfradley Joseph Fradley added a comment - Hi Ivo, Thank you for looking into this. Jenkins version: 1.642.1 JRE: 1.8.0_77 We just have the Java runtime installed, not the full JDK. I tried to run the utility referred to here: http://xml.apache.org/xalan-j/faq.html#environmentcheck but get this error: 'Error: Could not find or load main class org.apache.xalan.xslt.EnvironmentCheck I'm assuming I need the full JDK to run it. Do I need to install the JDK to run Jenkins? We actually develop using completely different languages and never had to before. Joe

            People

            Assignee:
            nilleb Ivo Bellin Salarin
            Reporter:
            jfradley Joseph Fradley
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: