ranzhang35
2018-10-02 16:47:07 UTC
I got the following error when 'wb.write(fileOut);' is called using POI4.0.0:
org.apache.poi.javax.xml.parsers.FactoryConfigurationError: Provider for
org.apache.poi.javax.xml.parsers.DocumentBuilderFactory cannot be found
at
org.apache.poi.javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown
Source:21)
at
org.apache.poi.ooxml.util.DocumentHelper.<clinit>(DocumentHelper.java:98)
at org.apache.poi.ooxml.util.DocumentHelper.createDocument(Unknown
Source:0)
at
org.apache.poi.openxml4j.opc.internal.ContentTypeManager.save(ContentTypeManager.java:428)
at
org.apache.poi.openxml4j.opc.ZipPackage.saveImpl(ZipPackage.java:518)
at
org.apache.poi.openxml4j.opc.OPCPackage.save(OPCPackage.java:1493)
at
org.apache.poi.ooxml.POIXMLDocument.write(POIXMLDocument.java:242)
at
com.example.mkproduct.myapplication2.MainActivity.onCreate(MainActivity.java:126)
at android.app.Activity.performCreate(Activity.java:7258)
at android.app.Activity.performCreate(Activity.java:7249)
at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1221)
at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2909)
at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3041)
at android.app.ActivityThread.-wrap11(Unknown Source:0)
at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1711)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6958)
at java.lang.reflect.Method.invoke(Native Method)
at
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:441)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1408)
--
Sent from: http://apache-poi.1045710.n5.nabble.com/POI-User-f2280730.html
---------------------------------------------------------------------
To unsubscribe, e-mail: user-***@poi.apache.org
For additional commands, e-mail: user-***@poi.apache.org
org.apache.poi.javax.xml.parsers.FactoryConfigurationError: Provider for
org.apache.poi.javax.xml.parsers.DocumentBuilderFactory cannot be found
at
org.apache.poi.javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown
Source:21)
at
org.apache.poi.ooxml.util.DocumentHelper.<clinit>(DocumentHelper.java:98)
at org.apache.poi.ooxml.util.DocumentHelper.createDocument(Unknown
Source:0)
at
org.apache.poi.openxml4j.opc.internal.ContentTypeManager.save(ContentTypeManager.java:428)
at
org.apache.poi.openxml4j.opc.ZipPackage.saveImpl(ZipPackage.java:518)
at
org.apache.poi.openxml4j.opc.OPCPackage.save(OPCPackage.java:1493)
at
org.apache.poi.ooxml.POIXMLDocument.write(POIXMLDocument.java:242)
at
com.example.mkproduct.myapplication2.MainActivity.onCreate(MainActivity.java:126)
at android.app.Activity.performCreate(Activity.java:7258)
at android.app.Activity.performCreate(Activity.java:7249)
at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1221)
at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2909)
at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3041)
at android.app.ActivityThread.-wrap11(Unknown Source:0)
at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1711)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6958)
at java.lang.reflect.Method.invoke(Native Method)
at
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:441)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1408)
--
Sent from: http://apache-poi.1045710.n5.nabble.com/POI-User-f2280730.html
---------------------------------------------------------------------
To unsubscribe, e-mail: user-***@poi.apache.org
For additional commands, e-mail: user-***@poi.apache.org