incubator-odf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bruno Girin (JIRA)" <>
Subject [jira] [Commented] (ODFTOOLKIT-388) SAXNotRecognizedException when opening a spreadsheet created with LibreOffice 4.0.0
Date Tue, 15 Apr 2014 15:46:17 GMT


Bruno Girin commented on ODFTOOLKIT-388:

OK so is there a way to deliver the performance improvements you have in mind step by step?
Such as:
# Fix the performance when reading so that the library can deal with such files;
# Bring in simple write improvements that do not rely on lambda expressions;
# Bring in more advanced write improvements that rely on lambdas.

With regards to my test not hanging up, I reckon it's due to different dependencies between
my pom.xml and the ODF Toolkit's pom.xml, as discussed on the mailing list. So I think the
first thing is to fix the fact that this test hangs when run with the original file, when
in the ODF Toolkit's environment. Once it works as an ODF Toolkit test, I can fix my own project

I'll rename the defect to reflect what the problem actually is in the ODF Toolkit context.

> SAXNotRecognizedException when opening a spreadsheet created with LibreOffice 4.0.0
> -----------------------------------------------------------------------------------
>                 Key: ODFTOOLKIT-388
>                 URL:
>             Project: ODF Toolkit
>          Issue Type: Bug
>          Components: simple api
>    Affects Versions: 0.6-incubating, 0.6.1-incubating
>            Reporter: Bruno Girin
>         Attachments:, saxProblem.ods, simple.ods, toolkit.patch
> The following exception is throw when calling {{SpreadsheetDocument.loadDocument(InputStream)}}
on an input stream that contains a very simple spreadsheet created by LibreOffice 4.0.0:
> {code}
> org.odftoolkit.odfdom.pkg.OdfFileDom initialize
> SEVERE: null
> org.xml.sax.SAXNotRecognizedException:
> 	at org.apache.xerces.parsers.AbstractSAXParser.setFeature(Unknown Source)
> 	at org.odftoolkit.odfdom.pkg.OdfPackage.getXMLReader(
> 	at org.odftoolkit.odfdom.pkg.OdfFileDom.initialize(
> 	at org.odftoolkit.odfdom.pkg.manifest.OdfManifestDom.initialize(
> 	at org.odftoolkit.odfdom.pkg.OdfFileDom.<init>(
> 	at org.odftoolkit.odfdom.pkg.manifest.OdfManifestDom.<init>(
> 	at org.odftoolkit.odfdom.pkg.OdfFileDom.newFileDom(
> 	at org.odftoolkit.odfdom.pkg.OdfPackage.parseManifest(
> 	at org.odftoolkit.odfdom.pkg.OdfPackage.readZip(
> 	at org.odftoolkit.odfdom.pkg.OdfPackage.initializeZip(
> 	at org.odftoolkit.odfdom.pkg.OdfPackage.<init>(
> 	at org.odftoolkit.odfdom.pkg.OdfPackage.loadPackage(
> 	at org.odftoolkit.simple.Document.loadDocument(
> 	at org.odftoolkit.simple.SpreadsheetDocument.loadDocument(
> {code}
> Running the same document through the validator at
confirms that it is conformant to ODF1.2:
> {quote}
> The document is conformant ODF1.2!
> Details:
> simple.ods: Info: ODF version of root document: 1.2
> internal:/schema/odf1.2/OpenDocument-v1.2-cos01-manifest-schema.rng: Info: parsed.
> simple.ods/META-INF/manifest.xml: Info: no errors, no warnings
> simple.ods/mimetype: Info: no errors, no warnings
> simple.ods: Info: Media Type: application/vnd.oasis.opendocument.spreadsheet
> internal:/schema/odf1.2/OpenDocument-v1.2-cos01-schema.rng: Info: parsed.
> simple.ods/meta.xml: Info: Generator: LibreOffice/$Linux_X86_64 LibreOffice_project/400m0$Build-2
> simple.ods/meta.xml: Info: no errors, no warnings
> simple.ods/settings.xml: Info: no errors, no warnings
> simple.ods/styles.xml: Info: no errors, no warnings
> simple.ods/content.xml: Info: no errors, no warnings
> internal:/schema/odf1.2/OpenDocument-v1.2-cos01-dsig-schema.rng: Info: parsed.
> simple.ods: Info: no errors, no warnings
> {quote}

This message was sent by Atlassian JIRA

View raw message