tika-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jake Gilley (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (TIKA-1168) The IWork NumbersContentHandler returns unsupported Metadata PropertyType
Date Wed, 28 Aug 2013 13:28:52 GMT

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

Jake Gilley updated TIKA-1168:
------------------------------

    Description: 
The resolveMetadataKey function in org.apache.tika.parser.iwork.NumbersContentHandler returns
a Property with PropertyType "SIMPLE" by default. This is causing a PropertyTypeException("SIMPLE
is not supported") when adding the Property using Metatadata.add(Property, String). The exception
is being generated by line 92 in org.apache.tika.parser.iwork.NumbersContentHandler.

metadata.add(metadataKey, attributes.getValue("sfa:string"));

Caused by: org.apache.tika.metadata.PropertyTypeException: SIMPLE is not supported
	at org.apache.tika.metadata.Metadata.add(Metadata.java:373)
	at org.apache.tika.parser.iwork.NumbersContentHandler.startElement(NumbersContentHandler.java:92)
	at org.apache.tika.sax.ContentHandlerDecorator.startElement(ContentHandlerDecorator.java:126)
	at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
	at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
	at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
	at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
	at javax.xml.parsers.SAXParser.parse(Unknown Source)
	at org.apache.tika.parser.iwork.IWorkPackageParser.parse(IWorkPackageParser.java:209)
	at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:242)
	... 16 more



  was:
The resolveMetadataKey function in org.apache.tika.parser.iwork.NumbersContentHandler returns
a Property with PropertyType "SIMPLE" by default. This is causing a PropertyTypeException("SIMPLE
is not supported") when adding the Property using Metatadata.add(Property, String). The exception
is being generated by line 92 in org.apache.tika.parser.iwork.NumbersContentHandler.

metadata.add(metadataKey, attributes.getValue("sfa:string"));



    
> The IWork NumbersContentHandler returns unsupported Metadata PropertyType
> -------------------------------------------------------------------------
>
>                 Key: TIKA-1168
>                 URL: https://issues.apache.org/jira/browse/TIKA-1168
>             Project: Tika
>          Issue Type: Bug
>          Components: parser
>    Affects Versions: 1.4
>            Reporter: Jake Gilley
>         Attachments: testMultipleSheets.numbers
>
>
> The resolveMetadataKey function in org.apache.tika.parser.iwork.NumbersContentHandler
returns a Property with PropertyType "SIMPLE" by default. This is causing a PropertyTypeException("SIMPLE
is not supported") when adding the Property using Metatadata.add(Property, String). The exception
is being generated by line 92 in org.apache.tika.parser.iwork.NumbersContentHandler.
> metadata.add(metadataKey, attributes.getValue("sfa:string"));
> Caused by: org.apache.tika.metadata.PropertyTypeException: SIMPLE is not supported
> 	at org.apache.tika.metadata.Metadata.add(Metadata.java:373)
> 	at org.apache.tika.parser.iwork.NumbersContentHandler.startElement(NumbersContentHandler.java:92)
> 	at org.apache.tika.sax.ContentHandlerDecorator.startElement(ContentHandlerDecorator.java:126)
> 	at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
> 	at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
> 	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
> 	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
> 	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
> 	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> 	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> 	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> 	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
> 	at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
> 	at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
> 	at javax.xml.parsers.SAXParser.parse(Unknown Source)
> 	at org.apache.tika.parser.iwork.IWorkPackageParser.parse(IWorkPackageParser.java:209)
> 	at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:242)
> 	... 16 more

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