listenheart/xerces-for-android

mf.javax.xml.parsers.FactoryConfigurationError: Provider com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl not found

Opened this issue · 0 comments

What steps will reproduce the problem?

1. Adding xerces-for-android project in Build path of Android project
2. Calling the following code:
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();


What is the expected output? What do you see instead?

The following exception is thrown (see the attachment for complete stack trace):

FATAL EXCEPTION: main
mf.javax.xml.parsers.FactoryConfigurationError: Provider 
com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl not found
   at mf.javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:146)


Please provide any additional information below.


Changing the string in line 144 in 
mf.javax.xml.parsers.DocumentBuilderFactory.java from:
"com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl"
to:
"mf.org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"
solves the problem.

Original issue reported on code.google.com by viktor.b...@gmail.com on 25 Oct 2014 at 12:21

Attachments: