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

Provider for class javax.xml.parsers.SAXParserFactory cannot be created

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: mstest-plugin
    • Labels:
      None
    • Environment:
    • Similar Issues:

      Description

      We are trying to publish our trx results, but it fail with following exception. I have also tested basic example of trx from web (https://raw.githubusercontent.com/x97mdr/pickles/master/src/Pickles/Pickles.Test/results-example-mstest.trx) with same output

      RROR: Step ‘Publish MSTest test result report’ aborted due to exception:
      javax.xml.transform.TransformerConfigurationException: Provider for class javax.xml.parsers.SAXParserFactory cannot be created
      at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:1018)
      at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:791)
      at hudson.plugins.mstest.XslTransformer.<init>(XslTransformer.java:38)
      at hudson.plugins.mstest.XslTransformer.FromResource(XslTransformer.java:44)
      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)
      at hudson.plugins.mstest.MSTestTransformer.invoke(MSTestTransformer.java:23)
      at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2739)
      at hudson.remoting.UserRequest.perform(UserRequest.java:153)
      at hudson.remoting.UserRequest.perform(UserRequest.java:50)
      at hudson.remoting.Request$2.run(Request.java:336)
      at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at java.lang.Thread.run(Thread.java:748)
      Caused by: javax.xml.parsers.FactoryConfigurationError: Provider for class javax.xml.parsers.SAXParserFactory cannot be created
      at javax.xml.parsers.FactoryFinder.findServiceProvider(FactoryFinder.java:311)
      at javax.xml.parsers.FactoryFinder.find(FactoryFinder.java:267)
      at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:127)
      at com.sun.org.apache.xalan.internal.utils.FactoryImpl.getSAXFactory(FactoryImpl.java:52)
      at com.sun.org.apache.xalan.internal.xsltc.compiler.Parser.parse(Parser.java:466)
      at com.sun.org.apache.xalan.internal.xsltc.compiler.XSLTC.compile(XSLTC.java:466)
      at com.sun.org.apache.xalan.internal.xsltc.compiler.XSLTC.compile(XSLTC.java:568)
      at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:977)
      ... 16 more
      Caused: 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$FileCallableWrapper.call(FilePath.java:2739)
      at hudson.remoting.UserRequest.perform(UserRequest.java:153)
      at hudson.remoting.UserRequest.perform(UserRequest.java:50)
      at hudson.remoting.Request$2.run(Request.java:336)
      at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at java.lang.Thread.run(Thread.java:748)
      at ......remote call to xxxxx(Native Method)
      at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1545)
      at hudson.remoting.UserResponse.retrieve(UserRequest.java:253)
      at hudson.remoting.Channel.call(Channel.java:830)
      at hudson.FilePath.act(FilePath.java:986)
      Caused: java.io.IOException: remote file operation failed: /var/lib/jenkins/workspace/xxxx at hudson.remoting.Channel@ac9166bd:xxxx
      at hudson.FilePath.act(FilePath.java:993)
      at hudson.FilePath.act(FilePath.java:975)
      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:735)
      at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:676)
      at hudson.model.Build$BuildExecution.post2(Build.java:186)
      at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:621)
      at hudson.model.Run.execute(Run.java:1760)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:97)
      at hudson.model.Executor.run(Executor.java:405)

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              nilleb Ivo Bellin Salarin
              Reporter:
              jan_sarzik Jan Sarzik
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: