[
https://issues.apache.org/jira/browse/TIKA-1600?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tyler Palsulich resolved TIKA-1600.
-----------------------------------
Resolution: Fixed
Assignee: Hong-Thai Nguyen
Thanks, [~thaichat04]! I just updated it -- reformatted the ODF parsing files
(they were all a bit odd with whitespace) and moved the test into the existing
test file.
Marking this as fixed and will cut a new release shortly.
> Unable to parse ODT files because of failed to close temporary resources
> ------------------------------------------------------------------------
>
> Key: TIKA-1600
> URL: https://issues.apache.org/jira/browse/TIKA-1600
> Project: Tika
> Issue Type: Bug
> Components: parser
> Affects Versions: 1.8
> Environment: Windows
> Reporter: Hong-Thai Nguyen
> Assignee: Hong-Thai Nguyen
> Attachments: Manuel_koha.odt
>
>
> Many ODT files are failed to parse causing of this exception. A sample file
> in attachment
> {code}
> Apache Tika was unable to parse the document
> at C:\Users\hong-thai.nguyen\Downloads\Manuel_koha.odt.
> The full exception stack trace is included below:
> org.apache.tika.exception.TikaException: Failed to close temporary resources
> at
> org.apache.tika.io.TemporaryResources.dispose(TemporaryResources.java:152)
> at
> org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:127)
> at org.apache.tika.gui.TikaGUI.handleStream(TikaGUI.java:342)
> at org.apache.tika.gui.TikaGUI.openFile(TikaGUI.java:299)
> at org.apache.tika.gui.TikaGUI.actionPerformed(TikaGUI.java:256)
> at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
> at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
> at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
> at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
> at javax.swing.AbstractButton.doClick(Unknown Source)
> at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
> at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown
> Source)
> at java.awt.Component.processMouseEvent(Unknown Source)
> at javax.swing.JComponent.processMouseEvent(Unknown Source)
> at java.awt.Component.processEvent(Unknown Source)
> at java.awt.Container.processEvent(Unknown Source)
> at java.awt.Component.dispatchEventImpl(Unknown Source)
> at java.awt.Container.dispatchEventImpl(Unknown Source)
> at java.awt.Component.dispatchEvent(Unknown Source)
> at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
> at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
> at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
> at java.awt.Container.dispatchEventImpl(Unknown Source)
> at java.awt.Window.dispatchEventImpl(Unknown Source)
> at java.awt.Component.dispatchEvent(Unknown Source)
> at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
> at java.awt.EventQueue.access$400(Unknown Source)
> at java.awt.EventQueue$3.run(Unknown Source)
> at java.awt.EventQueue$3.run(Unknown Source)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown
> Source)
> at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown
> Source)
> at java.awt.EventQueue$4.run(Unknown Source)
> at java.awt.EventQueue$4.run(Unknown Source)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown
> Source)
> at java.awt.EventQueue.dispatchEvent(Unknown Source)
> at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
> at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
> at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
> at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
> at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
> at java.awt.EventDispatchThread.run(Unknown Source)
> Caused by: java.io.IOException: Could not delete temporary file
> C:\Users\HONG-T~1.NGU\AppData\Local\Temp\apache-tika-2891340188156641845.tmp
> at
> org.apache.tika.io.TemporaryResources$1.close(TemporaryResources.java:70)
> at
> org.apache.tika.io.TemporaryResources.close(TemporaryResources.java:121)
> at
> org.apache.tika.io.TemporaryResources.dispose(TemporaryResources.java:150)
> ... 42 more
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)