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

MavenSpyLogProcessor failed to get XML factory

    Details

    • Similar Issues:

      Description

      Hi,

      When I applied the update to 2.0.1, all my jobs using pipeline Maven plugin were broken. I must to downgrade to 2.0.0 to solve this problem.

      With the update, this exception was thrown:

      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$Callback.finished(WithMavenStepExecution.java:770)
      	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.run0(Continuable.java:146)
      	at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$001(SandboxContinuable.java:18)
      	at org.jenkinsci.plugins.workflow.cps.SandboxContinuable$1.call(SandboxContinuable.java:33)
      	at org.jenkinsci.plugins.workflow.cps.SandboxContinuable$1.call(SandboxContinuable.java:30)
      	at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovySandbox.runInSandbox(GroovySandbox.java:108)
      	at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:30)
      	at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:165)
      	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:328)
      	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$100(CpsThreadGroup.java:80)
      	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:240)
      	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:228)
      	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:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: java.lang.RuntimeException: Provider for class javax.xml.parsers.DocumentBuilderFactory cannot be created
      	at javax.xml.parsers.FactoryFinder.findServiceProvider(FactoryFinder.java:308)
      	... 27 more
      Caused by: 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)
      	... 27 more
      

      Regards,

      Gabriel

        Attachments

          Issue Links

            Activity

            Hide
            cleclerc Cyrille Le Clerc added a comment - - edited

            Your problem seem to be the same as -JENKINS-41515- . Do you use the Jacoco Plugin?

            Can you install the Jenkins Support Plugin and attach a support bundle to this JIRA issue?

             The change between 2.0.0 and 2.0.1 is that we instantiate the DocumentBuilder on demand instead of instantiating it as a static variable at the initialization of the class.

            Show
            cleclerc Cyrille Le Clerc added a comment - - edited Your problem seem to be the same as - JENKINS-41515 - . Do you use the Jacoco Plugin? Can you install the Jenkins Support Plugin  and attach a support bundle to this JIRA issue?  The change between 2.0.0 and 2.0.1 is that we instantiate the DocumentBuilder on demand instead of instantiating it as a static variable at the initialization of the class.
            Hide
            pskumar448 Suresh Kumar added a comment -

            Sorry Guys by mistake changed this issue component. And reverted back.

            Thanks

            Show
            pskumar448 Suresh Kumar added a comment - Sorry Guys by mistake changed this issue component. And reverted back. Thanks
            Hide
            gabitchov Gabriel PASCUAL added a comment -

            Cyrille,

            Yes, the JaCoCo plugin is installed by default in the Jenkins. According to JENKINS 41515, it seems my problem can be resolved with the version 2.2.1. I will make the test when this one will be available on the update center of Jenkins.

            I will change status in case of this update will resolve my bug.

            Gabriel

             

             

            Show
            gabitchov Gabriel PASCUAL added a comment - Cyrille, Yes, the JaCoCo plugin is installed by default in the Jenkins. According to JENKINS 41515, it seems my problem can be resolved with the version 2.2.1. I will make the test when this one will be available on the update center of Jenkins. I will change status in case of this update will resolve my bug. Gabriel    
            Hide
            cleclerc Cyrille Le Clerc added a comment -
            Show
            cleclerc Cyrille Le Clerc added a comment - Thanks Gabriel PASCUAL
            Hide
            cleclerc Cyrille Le Clerc added a comment -

            Gabriel PASCUAL is your problem solved upgrading the Jacoco plugin?

            Show
            cleclerc Cyrille Le Clerc added a comment - Gabriel PASCUAL is your problem solved upgrading the Jacoco plugin?
            Hide
            gabitchov Gabriel PASCUAL added a comment -

            Cyrille Le Clerc, the waiting version (i.e 2.2.1) is still unreleased 

            Show
            gabitchov Gabriel PASCUAL added a comment - Cyrille Le Clerc , the waiting version (i.e 2.2.1) is still unreleased  . 
            Hide
            cleclerc Cyrille Le Clerc added a comment -

            Hi Gabriel PASCUAL, any update?

            Show
            cleclerc Cyrille Le Clerc added a comment - Hi Gabriel PASCUAL , any update?
            Hide
            gabitchov Gabriel PASCUAL added a comment -

            Hi Cyrille Le Clerc,

            The upgrade of JaCoCo plugin to 2.2.1 resolves the bug.

            Regards,

            Gabriel

             

            Show
            gabitchov Gabriel PASCUAL added a comment - Hi Cyrille Le Clerc , The upgrade of JaCoCo plugin to 2.2.1 resolves the bug. Regards, Gabriel  

              People

              • Assignee:
                cleclerc Cyrille Le Clerc
                Reporter:
                gabitchov Gabriel PASCUAL
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: