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

FactoryConfigurationError: Provider for class javax.xml.parsers.DocumentBuilderFactory cannot be created (was "Exceptions after running goals")

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • pipeline-maven-plugin
    • Jenkins ver. 2.73.2
      Pipeline Maven: 3.0.1

      When I run something simple like:

       

      withMaven(
         maven: 'default maven'
       ) {
         sh "mvn clean clover:setup test clover:aggregate clover:clover"
       }
      

       

      My job actually completes, but follows up with exceptions:

       [Pipeline] }
       [Pipeline] End of Pipeline
       java.util.ServiceConfigurationError: javax.xml.parsers.DocumentBuilderFactory: Provider org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not a subtype
      	 at java.util.ServiceLoader.fail(ServiceLoader.java:239)
      	 at java.util.ServiceLoader.access$300(ServiceLoader.java:185)
      	 at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:376)
      	 at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404)
      	 at java.util.ServiceLoader$1.next(ServiceLoader.java:480)
      	 at javax.xml.parsers.FactoryFinder$1.run(FactoryFinder.java:294)
      	 at java.security.AccessController.doPrivileged(Native Method)
      	 at javax.xml.parsers.FactoryFinder.findServiceProvider(FactoryFinder.java:289)
       Caused: java.lang.RuntimeException: Provider for class javax.xml.parsers.DocumentBuilderFactory cannot be created
      	 at javax.xml.parsers.FactoryFinder.findServiceProvider(FactoryFinder.java:308)
       Caused: javax.xml.parsers.FactoryConfigurationError: Provider for class javax.xml.parsers.DocumentBuilderFactory 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.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:120)
      	 at org.jenkinsci.plugins.pipeline.maven.MavenSpyLogProcessor.processMavenSpyLogs(MavenSpyLogProcessor.java:74)
      	 at org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution$WorkspaceCleanupCallback.finished(WithMavenStepExecution.java:876)
      	 at org.jenkinsci.plugins.workflow.steps.BodyExecutionCallback$TailCall.onSuccess(BodyExecutionCallback.java:114)
      	 at org.jenkinsci.plugins.workflow.cps.CpsBodyExecution$SuccessAdapter.receive(CpsBodyExecution.java:362)
      	 at com.cloudbees.groovy.cps.Outcome.resumeFrom(Outcome.java:73)
      	 at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:166)
      	 at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:163)
      	 at org.codehaus.groovy.runtime.GroovyCategorySupport$ThreadCategoryInfo.use(GroovyCategorySupport.java:122)
      	 at org.codehaus.groovy.runtime.GroovyCategorySupport.use(GroovyCategorySupport.java:261)
      	 at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:163)
      	 at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$001(SandboxContinuable.java:19)
      	 at org.jenkinsci.plugins.workflow.cps.SandboxContinuable$1.call(SandboxContinuable.java:35)
      	 at org.jenkinsci.plugins.workflow.cps.SandboxContinuable$1.call(SandboxContinuable.java:32)
      	 at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovySandbox.runInSandbox(GroovySandbox.java:108)
      	 at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:32)
      	 at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:174)
      	 at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:330)
      	 at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$100(CpsThreadGroup.java:82)
      	 at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:242)
      	 at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:230)
      	 at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:64)
      	 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	 at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:112)
      	 at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
      	 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      	 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	 at java.lang.Thread.run(Thread.java:748)
       Finished: FAILURE
      

        1. image-2017-10-23-14-07-12-859.png
          19 kB
          Dave Stein
        2. image-2017-10-25-10-36-04-005.png
          178 kB
          Dave Stein
        3. image-2017-10-25-10-36-31-204.png
          178 kB
          Dave Stein
        4. screenshot-1.png
          276 kB
          Cyrille Le Clerc

            cleclerc Cyrille Le Clerc
            davestein Dave Stein
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: