incubator-odf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Svante Schubert (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (ODFTOOLKIT-388) SAXNotRecognizedException when opening a spreadsheet created with LibreOffice 4.0.0
Date Tue, 15 Apr 2014 10:20:15 GMT

     [ https://issues.apache.org/jira/browse/ODFTOOLKIT-388?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Svante Schubert updated ODFTOOLKIT-388:
---------------------------------------

    Attachment: toolkit.patch

Very good, first tip: You might want to create the unit test already directly in the existing
project. Let me give you a helping hand.

1) Have downloaded the latest repository by commandline:
svn co https://svn.apache.org/repos/asf/incubator/odf/trunk odftoolkit20140415

2) Opened with my favorite IDE the odfdom and simple project (e.g. Netbeans 8) and build them
through

3) I have added your test file and class into the test directory of the simple API (I got
a different problem, but atm no additional time to go into it)

4) I have created a svn patch via: "svn diff > SOME_LOCAL_PATH/toolkit.patch

5) Appended this patch 

> SAXNotRecognizedException when opening a spreadsheet created with LibreOffice 4.0.0
> -----------------------------------------------------------------------------------
>
>                 Key: ODFTOOLKIT-388
>                 URL: https://issues.apache.org/jira/browse/ODFTOOLKIT-388
>             Project: ODF Toolkit
>          Issue Type: Bug
>          Components: simple api
>    Affects Versions: 0.6-incubating, 0.6.1-incubating
>            Reporter: Bruno Girin
>         Attachments: SpreadsheetDocumentTest.java, 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: http://xml.org/sax/features/xmlns-uris
> 	at org.apache.xerces.parsers.AbstractSAXParser.setFeature(Unknown Source)
> 	at org.odftoolkit.odfdom.pkg.OdfPackage.getXMLReader(OdfPackage.java:1274)
> 	at org.odftoolkit.odfdom.pkg.OdfFileDom.initialize(OdfFileDom.java:212)
> 	at org.odftoolkit.odfdom.pkg.manifest.OdfManifestDom.initialize(OdfManifestDom.java:74)
> 	at org.odftoolkit.odfdom.pkg.OdfFileDom.<init>(OdfFileDom.java:132)
> 	at org.odftoolkit.odfdom.pkg.manifest.OdfManifestDom.<init>(OdfManifestDom.java:63)
> 	at org.odftoolkit.odfdom.pkg.OdfFileDom.newFileDom(OdfFileDom.java:189)
> 	at org.odftoolkit.odfdom.pkg.OdfPackage.parseManifest(OdfPackage.java:1219)
> 	at org.odftoolkit.odfdom.pkg.OdfPackage.readZip(OdfPackage.java:452)
> 	at org.odftoolkit.odfdom.pkg.OdfPackage.initializeZip(OdfPackage.java:422)
> 	at org.odftoolkit.odfdom.pkg.OdfPackage.<init>(OdfPackage.java:285)
> 	at org.odftoolkit.odfdom.pkg.OdfPackage.loadPackage(OdfPackage.java:338)
> 	at org.odftoolkit.simple.Document.loadDocument(Document.java:310)
> 	at org.odftoolkit.simple.SpreadsheetDocument.loadDocument(SpreadsheetDocument.java:158)
> {code}
> Running the same document through the validator at http://odf-validator.rhcloud.com/
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/4.0.2.2$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
(v6.2#6252)

Mime
View raw message