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

GitHub | grinapo | 8 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

    GitHub comment 836#229402870

    GitHub | 8 months ago | grinapo
    javax.xml.parsers.FactoryConfigurationError: Provider for class javax.xml.parsers.SAXParserFactory cannot be created

    Root Cause Analysis

    1. java.util.ServiceConfigurationError

      javax.xml.parsers.SAXParserFactory: Provider org.apache.xerces.jaxp.SAXParserFactoryImpl not a subtype

      at java.util.ServiceLoader.fail()
    2. Java RT
      AbstractUnmarshallerImpl.unmarshal
      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.parsers.FactoryFinder$1.run(FactoryFinder.java:294)
      7. java.security.AccessController.doPrivileged(Native Method)
      8. javax.xml.parsers.FactoryFinder.findServiceProvider(FactoryFinder.java:289)
      9. javax.xml.parsers.FactoryFinder.find(FactoryFinder.java:267)
      10. javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:127)
      11. com.sun.xml.internal.bind.v2.util.XmlFactory.createParserFactory(XmlFactory.java:116)
      12. com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.getXMLReader(UnmarshallerImpl.java:139)
      13. javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:157)
      14. javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:162)
      15. javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:171)
      15 frames
    3. org.mapsforge.poi
      PoiWriterFactory.createTaskManagerImpl
      1. org.mapsforge.poi.writer.XMLPoiCategoryManager.<init>(XMLPoiCategoryManager.java:60)
      2. org.mapsforge.poi.writer.PoiWriter.<init>(PoiWriter.java:116)
      3. org.mapsforge.poi.writer.PoiWriter.newInstance(PoiWriter.java:69)
      4. org.mapsforge.poi.writer.osmosis.PoiWriterTask.<init>(PoiWriterTask.java:66)
      5. org.mapsforge.poi.writer.osmosis.PoiWriterFactory.createTaskManagerImpl(PoiWriterFactory.java:75)
      5 frames
    4. osmosis-core
      Osmosis.main
      1. org.openstreetmap.osmosis.core.pipeline.common.TaskManagerFactory.createTaskManager(TaskManagerFactory.java:60)
      2. org.openstreetmap.osmosis.core.pipeline.common.Pipeline.buildTasks(Pipeline.java:51)
      3. org.openstreetmap.osmosis.core.pipeline.common.Pipeline.prepare(Pipeline.java:112)
      4. org.openstreetmap.osmosis.core.Osmosis.run(Osmosis.java:86)
      5. org.openstreetmap.osmosis.core.Osmosis.main(Osmosis.java:37)
      5 frames
    5. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:498)
      4 frames
    6. Plexus
      Launcher.main
      1. org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:328)
      2. org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:238)
      3. org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:408)
      4. org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:351)
      5. org.codehaus.classworlds.Launcher.main(Launcher.java:31)
      5 frames