Provider com.bea.xml.stream.EventFactory not found
See original GitHub issueI try to read an xlsx file from an InputStream
workbook = new XSSFWorkbook(is);
which yields
org.apache.poi.javax.xml.stream.FactoryConfigurationError: Provider com.bea.xml.stream.EventFactory not found
at org.apache.poi.javax.xml.stream.FactoryFinder.newInstance(FactoryFinder.java:72)
at org.apache.poi.javax.xml.stream.FactoryFinder.find(FactoryFinder.java:178)
at org.apache.poi.javax.xml.stream.FactoryFinder.find(FactoryFinder.java:92)
at org.apache.poi.javax.xml.stream.XMLEventFactory.newInstance(XMLEventFactory.java:30)
at org.apache.poi.openxml4j.opc.internal.marshallers.PackagePropertiesMarshaller.<clinit>(PackagePropertiesMarshaller.java:41)
at org.apache.poi.openxml4j.opc.OPCPackage.init(OPCPackage.java:161)
at org.apache.poi.openxml4j.opc.OPCPackage.<init>(OPCPackage.java:141)
at org.apache.poi.openxml4j.opc.ZipPackage.<init>(ZipPackage.java:96)
at org.apache.poi.openxml4j.opc.OPCPackage.open(OPCPackage.java:342)
at org.apache.poi.util.PackageHelper.open(PackageHelper.java:37)
at org.apache.poi.xssf.usermodel.XSSFWorkbook.<init>(XSSFWorkbook.java:285)
Issue Analytics
- State:
- Created 7 years ago
- Comments:21 (8 by maintainers)
Top Results From Across the Web
Provider com.bea.xml.stream.EventFactory not found
How to solve this issue? Adding this line on build.gradle: implementation 'com.fasterxml:aalto-xml:1.1.0'. doesn't ...
Read more >Provider com.bea.xml.stream.EventFactory not found
Hi All, I am trying to read an .xlsx file, using Groovy but I keep on gett8ing this message. Caught: javax.xml.stream.FactoryConfigurationError: Provider
Read more >com.bea.xml.stream.EventFactory Maven / Gradle / Ivy
com.bea.xml.stream.EventFactory maven / gradle build tool code. The class is part of the package ➦ Group: stax ➦ Artifact: stax ➦ Version: 1.2.0....
Read more >Re: Caught: javax.xml.stream.FactoryConfigurationError
Re: Caught: javax.xml.stream.FactoryConfigurationError: Provider com.bea.xml.stream.EventFactory not found ... Hi, Are you trying to run the code ...
Read more >android8 factory.db,Provider com.bea.xml.stream ... - CSDN博客
android8 factory.db,Provider com.bea.xml.stream.EventFactory not found. weixin_39692271 于 2021-05-28 17:35:07 发布 525 收藏. 文章标签: android8 factory.db.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I went into this problem too, the workaround there not fixed the problem.
package javax.xml.stream;
The problem comes from there.
SOLVED WITH:
and adding stax to gradle:
implementation 'com.fasterxml:aalto-xml:1.0.0'
Add the following to your gradle file: implementation ‘com.fasterxml:aalto-xml:1.0.0’ And relax…