incubator-odf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Florian Hopf (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (ODFTOOLKIT-324) Simple ODF is throwing an exception with the attached file
Date Sun, 02 Sep 2012 09:12:07 GMT

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

Florian Hopf updated ODFTOOLKIT-324:
------------------------------------

    Attachment: testcase-fix-ODFTOOLKIT-324.patch

This problem is caused by an alien element without a namespace that is included in the DOM
in this block in content.xml:

 <xforms:instance id="Instance 1"><instance/></xforms:instance>

Attached is a test case that reproduces the problem as well as a fix.
                
> Simple ODF is throwing an exception with the attached file
> ----------------------------------------------------------
>
>                 Key: ODFTOOLKIT-324
>                 URL: https://issues.apache.org/jira/browse/ODFTOOLKIT-324
>             Project: ODF Toolkit
>          Issue Type: Bug
>          Components: java, odfdom, simple api, source
>    Affects Versions: 0.8.7
>            Reporter: Vicente Villegas Larios
>         Attachments: testcase-fix-ODFTOOLKIT-324.patch, thisDocumentIsNotWorking.odt
>
>
> Simple odf is throwing an exception with the attached file, I have been testing with
other files and only the attached file is throwing the following exception.
> Any idea? 
> Thanks for your help
> This is the exception:
> Jul 18, 2012 2:18:42 PM org.odftoolkit.odfdom.pkg.OdfXMLFactory newOdfElement
> INFO: None-ODF element created for xforms:instance
> Jul 18, 2012 2:18:42 PM org.odftoolkit.odfdom.pkg.OdfXMLFactory newOdfElement
> INFO: None-ODF element created for instance
> Jul 18, 2012 2:18:42 PM org.odftoolkit.odfdom.pkg.OdfXMLFactory newOdfElement
> INFO: None-ODF element created for xsd:schema
> Exception in thread "main" java.lang.NullPointerException
> 	at org.odftoolkit.simple.common.TextExtractor.visit(TextExtractor.java:181)
> 	at org.odftoolkit.odfdom.pkg.OdfElement.accept(OdfElement.java:513)
> 	at org.odftoolkit.simple.common.TextExtractor.appendElementText(TextExtractor.java:263)
> 	at org.odftoolkit.simple.common.TextExtractor.visit(TextExtractor.java:180)
> 	at org.odftoolkit.odfdom.pkg.OdfElement.accept(OdfElement.java:513)
> 	at org.odftoolkit.simple.common.TextExtractor.appendElementText(TextExtractor.java:263)
> 	at org.odftoolkit.simple.common.TextExtractor.visit(TextExtractor.java:180)
> 	at org.odftoolkit.odfdom.dom.DefaultElementVisitor.visit(DefaultElementVisitor.java:5421)
> 	at org.odftoolkit.odfdom.dom.element.xforms.XformsModelElement.accept(XformsModelElement.java:68)
> 	at org.odftoolkit.simple.common.TextExtractor.appendElementText(TextExtractor.java:263)
> 	at org.odftoolkit.simple.common.TextExtractor.visit(TextExtractor.java:180)
> 	at org.odftoolkit.odfdom.dom.DefaultElementVisitor.visit(DefaultElementVisitor.java:2525)
> 	at org.odftoolkit.odfdom.dom.element.office.OfficeFormsElement.accept(OfficeFormsElement.java:140)
> 	at org.odftoolkit.simple.common.TextExtractor.appendElementText(TextExtractor.java:263)
> 	at org.odftoolkit.simple.common.TextExtractor.visit(TextExtractor.java:180)
> 	at org.odftoolkit.simple.common.TextExtractor.getText(TextExtractor.java:150)
> 	at org.odftoolkit.simple.common.TextExtractor.getText(TextExtractor.java:129)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message