Hi!

Paul Harris wrote:
> Hi,
>
> I had a look in the logs for something else and noticed this:
>
> 2010-12-08 16:29:50,190 [Lucene Index Updater] WARN
> lucene.AttachmentData           - error getting content of attachment
> [cat2.jpg] for document [xwiki:XWiki.LightboxMacro]
> org.apache.tika.exception.TikaException: Can't read JPEG metadata
>         at
>   


Tika (http://tika.apache.org) detects and extracts meta information for 
Lucene (the search engine XWiki is using) from a number of supported 
formats. It support JPGs. LightboxMacro includes two JPGs files: cat.jpg 
and cat2.jpg. Cat2.jpg contents much more meta information than cat.jpg 
(Device make, Device model, Profile name, Focal length and other stuff).

By using XWiki Enterprise 2.7-SNAPSHOT.33319, I see the same error while 
Lucene is indexing cat2.jpg: cat.jpg gets indexed. cat2.jpg fails when 
extracting meta information. No errors when indexing other jpg files 
with much more information than cat2.jpg. I don't know yet how to know 
what field is referenced as Tag 9, but it seems clear that is a problem 
of the file. It will be great to be able to edit this meta information 
field, correct it and see if things done well. 


> org.apache.tika.parser.jpeg.JpegExtractor.parse(JpegExtractor.java:60)
>         at org.apache.tika.parser.jpeg.JpegParser.parse(JpegParser.java:55)
>         at
> org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:132)
>         at
> org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:99)
>         at org.apache.tika.Tika.parseToString(Tika.java:267)
>         at
> com.xpn.xwiki.plugin.lucene.AttachmentData.getContentAsText(AttachmentData.java:161)
>         at
> com.xpn.xwiki.plugin.lucene.AttachmentData.getFullText(AttachmentData.java:136)
>         at
> com.xpn.xwiki.plugin.lucene.IndexData.getFullText(IndexData.java:190)
>         at
> com.xpn.xwiki.plugin.lucene.IndexData.addDataToLuceneDocument(IndexData.java:146)
>         at
> com.xpn.xwiki.plugin.lucene.AttachmentData.addDataToLuceneDocument(AttachmentData.java:65)
>         at
> com.xpn.xwiki.plugin.lucene.IndexUpdater.addToIndex(IndexUpdater.java:296)
>         at
> com.xpn.xwiki.plugin.lucene.IndexUpdater.updateIndex(IndexUpdater.java:237)
>         at
> com.xpn.xwiki.plugin.lucene.IndexUpdater.runMainLoop(IndexUpdater.java:171)
>         at
> com.xpn.xwiki.plugin.lucene.IndexUpdater.runInternal(IndexUpdater.java:153)
>         at
> com.xpn.xwiki.util.AbstractXWikiRunnable.run(AbstractXWikiRunnable.java:99)
>         at java.lang.Thread.run(Thread.java:662)
> Caused by: com.drew.metadata.MetadataException: Tag '9' cannot be cast to
> int.  It is of type 'class [I'.
>         at com.drew.metadata.Directory.getInt(Unknown Source)
>         at
> com.drew.metadata.exif.CasioType2MakernoteDescriptor.getImageSizeDescription(Unknown
> Source)
>         at
> com.drew.metadata.exif.CasioType2MakernoteDescriptor.getDescription(Unknown
> Source)
>         at com.drew.metadata.Directory.getDescription(Unknown Source)
>         at com.drew.metadata.Tag.getDescription(Unknown Source)
>         at
> org.apache.tika.parser.jpeg.JpegExtractor.parse(JpegExtractor.java:54)
>         ... 15 more
>
> something to be fixed?
> cheers
> Paul
> _______________________________________________
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
>   

-- 
Ricardo Rodríguez
CTO
eBioTIC.
Life Sciences, Data Modeling and Information Management Systems

_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to