Comments (3)
Version :SODS-1.2.2-SNAPSHOT.jar.zip
Sods-1.2.2-snapshot supports office very well, but it is not compatible with open office.
When reading a file edited with Apache OpenOffice, there is a memory overflow.Stack info:
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at com.github.miachm.sods.Cell.(Cell.java:6)
at com.github.miachm.sods.Sheet.checkLazyRowLoading(Sheet.java:306)
at com.github.miachm.sods.Sheet.setRowHeight(Sheet.java:502)
at com.github.miachm.sods.OdsReader.processTable(OdsReader.java:277)
at com.github.miachm.sods.OdsReader.processSpreadsheet(OdsReader.java:223)
at com.github.miachm.sods.OdsReader.iterateFilesEntries(OdsReader.java:216)
at com.github.miachm.sods.OdsReader.processContent(OdsReader.java:77)
at com.github.miachm.sods.OdsReader.load(OdsReader.java:43)
at com.github.miachm.sods.OdsReader.load(OdsReader.java:35)
at com.github.miachm.sods.SpreadSheet.(SpreadSheet.java:52)
at com.github.miachm.sods.SpreadSheet.(SpreadSheet.java:39)
at com.center.test.ODSParserHelper.getDataFromSpreadsheet(ODSParserHelper.java:72)My file download link is: https://github.com/lbyzx123/SODS/blob/master/alarm_config_rule_openoffice.ods
Can you help me. Thanks!
from sods.
That's not a regular file of Open Office. It was generated by Excel and then edited by OpenOffice. It looks like Open Office tried to preserve the info from Excel's.
The pattern is weird. It tries to reserves 100.000 rows and then it tries to set the row 100.001th. That destroys the system of lazy loading.
I suppose that there is no way to workaround this problem. There is always a "but".
So the solution must be the new sheet's architecture:
2f6aeb1
from sods.
Thanks
from sods.
Related Issues (20)
- Center text vertically in a cell HOT 3
- Data format HOT 5
- XMLParser problem when using poi-on-android and SODS at the same time HOT 7
- Publish with Module support in Maven Repository HOT 4
- Incorrect row count HOT 5
- ods file generate by pyexcel-ods failed to read HOT 3
- Excel doen't like files generated by SODS
- Regression: Cannot open file in 1.5.0 HOT 3
- Reading problem with empty cells HOT 12
- OfficeCurrency#equals throws NullPointerException when currency is null HOT 1
- Range.getValue() returns LocalDate instead of Date HOT 3
- Regression: LibreOffice complains about corrupt file from MRE HOT 11
- Problem with cross sheets formula, am I doing it wrong ? HOT 5
- Currency fields don't seem to work (format and larger values) HOT 2
- Add support for macros
- License declaration HOT 3
- Support writing strings with line breaks HOT 2
- Allow to enforce text data format in written sheets HOT 1
- Allow setting default column cell style in written sheets HOT 4
- Formulas and cell content HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sods.