tika-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dietmar Glachs (JIRA)" <j...@apache.org>
Subject [jira] [Created] (TIKA-1070) StackOverflow error in org.apache.tika.sax.ToXMLContentHandler$ElementInfo.getPrefix(ToXMLContentHandler.java:58)
Date Thu, 31 Jan 2013 11:45:12 GMT
Dietmar Glachs created TIKA-1070:
------------------------------------

             Summary: StackOverflow error in org.apache.tika.sax.ToXMLContentHandler$ElementInfo.getPrefix(ToXMLContentHandler.java:58)
                 Key: TIKA-1070
                 URL: https://issues.apache.org/jira/browse/TIKA-1070
             Project: Tika
          Issue Type: Bug
          Components: parser
    Affects Versions: 1.3, 1.2
         Environment: Java
            Reporter: Dietmar Glachs


The error occurs when parsing big "XLS" files and is caused by the ElementInfo stored in "currentElement".

Each time a new element is started (method startElement) the current elment is newly overwritten
with 

currentElement = new ElementInfo(currentElement, namespaces);

where the existing element is used as the parent element. The currentElement is not reset
to the parent element after finishing the element (method: endElement) 

For my understanding: something like:

currentElement = currentElement.parent;

would solve the issue!

Best


--
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