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

Google Groups | Julien HENRY | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    [Request for feedback] SonarLint for Eclipse 2.2.0

    Google Groups | 7 months ago | Julien HENRY
    javax.xml.stream.FactoryConfigurationError: Provider for class javax.xml.stream.XMLInputFactory cannot be created
  2. 0

    Jersey - Jersey JAX-RS JAXB - Returning an Array of Objects

    nabble.com | 8 months ago
    javax.xml.stream.FactoryConfigurationError: Provider com.bea.xml.stream.MXParserFactory not found
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Build fails when Sonar is active, error as below: {noformat} [INFO] Cobertura Report generation was successful. [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1:23.941s [INFO] Finished at: Mon May 16 11:45:17 BST 2011 [INFO] Final Memory: 30M/400M [INFO] ------------------------------------------------------------------------ [INFO] Execute org.codehaus.mojo:cobertura-maven-plugin:2.4:cobertura done: 45150 ms [INFO] Execute maven plugin cobertura-maven-plugin done: 45151 ms [INFO] Sensor CoberturaSensor... [INFO] parsing /root/.hudson/jobs/***/workspace/***/target/site/cobertura/coverage.xml --------------------------------------------------- constituent[0]: file:/opt/storage/apache-maven-3.0.2/lib/sisu-inject-plexus-1.4.3.1.jar constituent[1]: file:/opt/storage/apache-maven-3.0.2/lib/aether-impl-1.9.jar constituent[2]: file:/opt/storage/apache-maven-3.0.2/lib/maven-embedder-3.0.2.jar constituent[3]: file:/opt/storage/apache-maven-3.0.2/lib/wagon-provider-api-1.0-beta-7.jar constituent[4]: file:/opt/storage/apache-maven-3.0.2/lib/wagon-http-lightweight-1.0-beta-7.jar constituent[5]: file:/opt/storage/apache-maven-3.0.2/lib/xercesMinimal-1.9.6.2.jar constituent[6]: file:/opt/storage/apache-maven-3.0.2/lib/maven-settings-3.0.2.jar constituent[7]: file:/opt/storage/apache-maven-3.0.2/lib/maven-core-3.0.2.jar constituent[8]: file:/opt/storage/apache-maven-3.0.2/lib/maven-artifact-3.0.2.jar constituent[9]: file:/opt/storage/apache-maven-3.0.2/lib/maven-settings-builder-3.0.2.jar constituent[10]: file:/opt/storage/apache-maven-3.0.2/lib/maven-aether-provider-3.0.2.jar constituent[11]: file:/opt/storage/apache-maven-3.0.2/lib/plexus-sec-dispatcher-1.3.jar constituent[12]: file:/opt/storage/apache-maven-3.0.2/lib/sisu-guice-2.9.1-noaop.jar constituent[13]: file:/opt/storage/apache-maven-3.0.2/lib/plexus-utils-2.0.4.jar constituent[14]: file:/opt/storage/apache-maven-3.0.2/lib/plexus-interpolation-1.14.jar constituent[15]: file:/opt/storage/apache-maven-3.0.2/lib/aether-api-1.9.jar constituent[16]: file:/opt/storage/apache-maven-3.0.2/lib/aether-util-1.9.jar constituent[17]: file:/opt/storage/apache-maven-3.0.2/lib/maven-compat-3.0.2.jar constituent[18]: file:/opt/storage/apache-maven-3.0.2/lib/aether-spi-1.9.jar constituent[19]: file:/opt/storage/apache-maven-3.0.2/lib/maven-model-builder-3.0.2.jar constituent[20]: file:/opt/storage/apache-maven-3.0.2/lib/commons-cli-1.2.jar constituent[21]: file:/opt/storage/apache-maven-3.0.2/lib/aether-connector-wagon-1.9.jar constituent[22]: file:/opt/storage/apache-maven-3.0.2/lib/wagon-http-shared-1.0-beta-7.jar constituent[23]: file:/opt/storage/apache-maven-3.0.2/lib/plexus-cipher-1.4.jar constituent[24]: file:/opt/storage/apache-maven-3.0.2/lib/sisu-inject-bean-1.4.3.1.jar constituent[25]: file:/opt/storage/apache-maven-3.0.2/lib/maven-repository-metadata-3.0.2.jar constituent[26]: file:/opt/storage/apache-maven-3.0.2/lib/maven-plugin-api-3.0.2.jar constituent[27]: file:/opt/storage/apache-maven-3.0.2/lib/maven-model-3.0.2.jar constituent[28]: file:/opt/storage/apache-maven-3.0.2/lib/plexus-component-annotations-1.5.5.jar constituent[29]: file:/opt/storage/apache-maven-3.0.2/lib/wagon-file-1.0-beta-7.jar constituent[30]: file:/opt/storage/apache-maven-3.0.2/lib/nekohtml-1.9.6.2.jar --------------------------------------------------- Exception in thread "main" javax.xml.stream.FactoryConfigurationError: Provider com.bea.xml.stream.MXParserFactory not found at javax.xml.stream.FactoryFinder.newInstance(FactoryFinder.java:72) at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:178) at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:92) at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:136) at org.sonar.api.utils.StaxParser.<init>(StaxParser.java:63) at org.sonar.api.utils.StaxParser.<init>(StaxParser.java:50) at org.sonar.plugins.cobertura.api.AbstractCoberturaParser.parseReport(AbstractCoberturaParser.java:35) at org.sonar.plugins.cobertura.CoberturaSensor.parseReport(CoberturaSensor.java:65) at org.sonar.plugins.cobertura.CoberturaSensor.analyse(CoberturaSensor.java:52) at org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:60) at org.sonar.batch.phases.Phases.execute(Phases.java:72) at org.sonar.batch.ProjectBatch.execute(ProjectBatch.java:61) at org.sonar.batch.Batch.analyzeModule(Batch.java:149) at org.sonar.batch.Batch.analyzeModule(Batch.java:140) at org.sonar.batch.Batch.analyzeModules(Batch.java:106) at org.sonar.batch.Batch.execute(Batch.java:66) at org.sonar.maven3.SonarMojo.executeBatch(SonarMojo.java:136) at org.sonar.maven3.SonarMojo.execute(SonarMojo.java:127) at org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:113) at org.codehaus.mojo.sonar.Bootstraper.start(Bootstraper.java:65) at org.codehaus.mojo.sonar.SonarMojo.execute(SonarMojo.java:90) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:107) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:534) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:618) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) {noformat}

    SonarSource JIRA | 6 years ago | Luke Robertson
    javax.xml.stream.FactoryConfigurationError: Provider com.bea.xml.stream.MXParserFactory not found
  5. 0

    Geronimo StAX can't locate Woodstox implementation

    Stack Overflow | 5 years ago | Baimai Wu
    javax.xml.stream.FactoryConfigurationError: Requested factory com.ctc.wstx.stax.WstxInputFactory cannot be located. Classloader =java.net.URLClassLoader@341960

    10 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.util.ServiceConfigurationError

      javax.xml.stream.XMLInputFactory: Provider com.ctc.wstx.stax.WstxInputFactory not a subtype

      at java.util.ServiceLoader.fail()
    2. Java RT
      XMLInputFactory.newInstance
      1. java.util.ServiceLoader.fail(ServiceLoader.java:239)
      2. java.util.ServiceLoader.access$300(ServiceLoader.java:185)
      3. java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:376)
      4. java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404)
      5. java.util.ServiceLoader$1.next(ServiceLoader.java:480)
      6. javax.xml.stream.FactoryFinder$1.run(FactoryFinder.java:353)
      7. java.security.AccessController.doPrivileged(Native Method)
      8. javax.xml.stream.FactoryFinder.findServiceProvider(FactoryFinder.java:341)
      9. javax.xml.stream.FactoryFinder.find(FactoryFinder.java:313)
      10. javax.xml.stream.FactoryFinder.find(FactoryFinder.java:227)
      11. javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:154)
      11 frames
    3. org.sonar.java
      XmlAnalyzer.scan
      1. org.sonar.java.xml.maven.PomParser.parseXML(PomParser.java:54)
      2. org.sonar.java.xml.XmlAnalyzer.simpleScanAsPomFile(XmlAnalyzer.java:112)
      3. org.sonar.java.xml.XmlAnalyzer.simpleScan(XmlAnalyzer.java:99)
      4. org.sonar.java.xml.XmlAnalyzer.scan(XmlAnalyzer.java:81)
      4 frames
    4. org.sonar.plugins
      XmlFileSensor.execute
      1. org.sonar.plugins.java.XmlFileSensor.execute(XmlFileSensor.java:55)
      1 frame
    5. org.sonarsource.sonarlint
      StandaloneSonarLintEngineImpl.analyze
      1. org.sonarsource.sonarlint.core.analyzer.sensor.SensorWrapper.analyse(SensorWrapper.java:52)
      2. org.sonarsource.sonarlint.core.analyzer.sensor.SensorsExecutor.executeSensor(SensorsExecutor.java:73)
      3. org.sonarsource.sonarlint.core.analyzer.sensor.SensorsExecutor.execute(SensorsExecutor.java:63)
      4. org.sonarsource.sonarlint.core.analyzer.sensor.PhaseExecutor.execute(PhaseExecutor.java:44)
      5. org.sonarsource.sonarlint.core.container.analysis.AnalysisContainer.doAfterStart(AnalysisContainer.java:143)
      6. org.sonarsource.sonarlint.core.container.ComponentContainer.startComponents(ComponentContainer.java:125)
      7. org.sonarsource.sonarlint.core.container.ComponentContainer.execute(ComponentContainer.java:110)
      8. org.sonarsource.sonarlint.core.container.standalone.StandaloneGlobalContainer.analyze(StandaloneGlobalContainer.java:118)
      9. org.sonarsource.sonarlint.core.StandaloneSonarLintEngineImpl.analyze(StandaloneSonarLintEngineImpl.java:93)
      10. org.sonarsource.sonarlint.core.StandaloneSonarLintEngineImpl.analyze(StandaloneSonarLintEngineImpl.java:83)
      10 frames
    6. org.sonarlint.eclipse
      AnalyzeProjectJob$AnalysisThread.run
      1. org.sonarlint.eclipse.core.internal.jobs.StandaloneSonarLintClientFacade.runAnalysis(StandaloneSonarLintClientFacade.java:60)
      2. org.sonarlint.eclipse.core.internal.jobs.AnalyzeProjectJob.run(AnalyzeProjectJob.java:455)
      3. org.sonarlint.eclipse.core.internal.jobs.AnalyzeProjectJob$AnalysisThread.run(AnalyzeProjectJob.java:127)
      3 frames