monitorjbl / excel-streaming-reader

An easy-to-use implementation of a streaming Excel reader using Apache POI
Apache License 2.0
960 stars 345 forks source link

java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 #155

Open lymychm opened 6 years ago

lymychm commented 6 years ago

Hi. I'm getting this error:

StreamingReader.builder().open(InputStream)

java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
    at java.util.ArrayList.rangeCheck(ArrayList.java:657)
    at java.util.ArrayList.get(ArrayList.java:433)
    at com.monitorjbl.xlsx.impl.StreamingWorkbookReader.loadSheets(StreamingWorkbookReader.java:160)
    at com.monitorjbl.xlsx.impl.StreamingWorkbookReader.init(StreamingWorkbookReader.java:132)
    at com.monitorjbl.xlsx.impl.StreamingWorkbookReader.init(StreamingWorkbookReader.java:91)
    at com.monitorjbl.xlsx.StreamingReader$Builder.open(StreamingReader.java:263)
...

When I'm adding "com.oracle:xmlparserv2" to my project without this oracle dependency, it works fine.

Any reason why? I suppose some dependency incompatibility...

Project: Spring-boot 2 java 1.8 org.apache.poi:poi: 3.17 org.apache.poi:poi-ooxml: 3.17

xlsx-streamer 1.2.1