javax.xml.stream.FactoryConfigurationError: Provider for class javax.xml.stream.XMLInputFactory cannot be created

Hi Guys,

I’m getting following exception when plugin trying read xml via schedule job. Appreciate any help on this.

ERROR ServiceRunner     [c.a.s.caesium.impl.SchedulerQueueWorker] Unhandled exception thrown by job QueuedJob[jobId=CompatibilityPluginScheduler.JobId.com.test.jira.plugin.synchronize.test-jira-flaws-synchronizer.scheduledJob,deadline=1516788302779]
javax.xml.stream.FactoryConfigurationError: Provider for class javax.xml.stream.XMLInputFactory cannot be created
        at javax.xml.stream.FactoryFinder.findServiceProvider(FactoryFinder.java:370)
        at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:313)
        at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:227)
        at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:154)
        at com.test.jira.plugin.synchronize.utils.XMLUtil.getXMLStreamReader(XMLUtil.java:92)
        at com.test.jira.plugin.synchronize.xml.XmlApplicationBuildsReader.openXmlDocument(XmlApplicationBuildsReader.java:60)
        at com.test.jira.plugin.synchronize.utils.ResultsAPIWrapperImpl.getAppBuildsNew(ResultsAPIWrapperImpl.java:194)
        at com.test.jira.plugin.synchronize.components.FlawConverterImpl.retrieveFlaws(FlawConverterImpl.java:123)
        at com.test.jira.plugin.synchronize.scheduling.FlawImportScheduledJobImpl.runScheduledScan(FlawImportScheduledJobImpl.java:268)
        at com.test.jira.plugin.synchronize.scheduling.FlawImportScheduledJobImpl.runImportInCluster(FlawImportScheduledJobImpl.java:225)
        at com.test.jira.plugin.synchronize.scheduling.FlawImportScheduledJobImpl.checkAndTriggerFlawImportHourly(FlawImportScheduledJobImpl.java:162)
        at com.test.jira.plugin.synchronize.scheduling.FlawImportScheduledJobImpl.checkAndTriggerFlawImport(FlawImportScheduledJobImpl.java:115)
        at com.test.jira.plugin.synchronize.scheduling.FlawImportScheduledJobImpl.execute(FlawImportScheduledJobImpl.java:70)
        at com.atlassian.scheduler.compat.clustered.ClusteredJobRunner.runJob(ClusteredJobRunner.java:54)
        at com.atlassian.scheduler.core.JobLauncher.runJob(JobLauncher.java:153)
        at com.atlassian.scheduler.core.JobLauncher.launchAndBuildResponse(JobLauncher.java:118)
        at com.atlassian.scheduler.core.JobLauncher.launch(JobLauncher.java:97)
        at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.launchJob(CaesiumSchedulerService.java:443)
        at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.executeClusteredJob(CaesiumSchedulerService.java:438)
        at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.executeClusteredJobWithRecoveryGuard(CaesiumSchedulerService.java:462)
        at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.executeQueuedJob(CaesiumSchedulerService.java:390)
        at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService$1.consume(CaesiumSchedulerService.java:285)
        at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService$1.consume(CaesiumSchedulerService.java:282)
        at com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.executeJob(SchedulerQueueWorker.java:65)
        at com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.executeNextJob(SchedulerQueueWorker.java:59)
        at com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.run(SchedulerQueueWorker.java:34)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.RuntimeException: Provider for class javax.xml.stream.XMLInputFactory cannot be created
        at javax.xml.stream.FactoryFinder.findServiceProvider(FactoryFinder.java:367)
        ... 26 more
Caused by: java.util.ServiceConfigurationError: javax.xml.stream.XMLInputFactory: Provider com.ctc.wstx.stax.WstxInputFactory not found
        at java.util.ServiceLoader.fail(ServiceLoader.java:239)
        at java.util.ServiceLoader.access$300(ServiceLoader.java:185)
        at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404)
        at java.util.ServiceLoader$1.next(ServiceLoader.java:480)
        at javax.xml.stream.FactoryFinder$1.run(FactoryFinder.java:353)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.xml.stream.FactoryFinder.findServiceProvider(FactoryFinder.java:341)
        ... 26 more

Thank You,
Navin

1 Like

same issue here - ran a jira upgrade and suddenly the logs are full of this