tika-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (TIKA-1191) ForkParser / ClassLoaderProxy does not define package
Date Mon, 01 Jan 2018 21:40:03 GMT

    [ https://issues.apache.org/jira/browse/TIKA-1191?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16307557#comment-16307557
] 

ASF GitHub Bot commented on TIKA-1191:
--------------------------------------

BenRomberg opened a new pull request #215: TIKA-1191 fix package access in ForkParser
URL: https://github.com/apache/tika/pull/215
 
 
   `ForkParser` can not be used right now when using `AutoDetectParser` together with the
optional `jai-imageio-core` dependency.
   
   This fix enhances the patch provided in TIKA-1191 with unit tests.
   
   Thanks for the great work with Apache Tika! It would be really helpful for us to be able
to use `ForkParser` with all optional dependencies in a future version.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> ForkParser / ClassLoaderProxy does not define package
> -----------------------------------------------------
>
>                 Key: TIKA-1191
>                 URL: https://issues.apache.org/jira/browse/TIKA-1191
>             Project: Tika
>          Issue Type: Bug
>          Components: parser
>    Affects Versions: 1.4, 1.5
>            Reporter: Nicolas Belisle
>         Attachments: ClassLoaderProxy.java.patch, Test.java, test.eml
>
>
> ForkParser will throw an Exception in some cases : 
> org.apache.tika.exception.TikaException: Invalid embedded resource
> 	at org.apache.tika.parser.microsoft.AbstractPOIFSExtractor.handleEmbeddedOfficeDoc(AbstractPOIFSExtractor.java:189)
> 	at org.apache.tika.parser.microsoft.WordExtractor.parse(WordExtractor.java:135)
> 	at org.apache.tika.parser.microsoft.OfficeParser.parse(OfficeParser.java:186)
> 	at org.apache.tika.parser.microsoft.OfficeParser.parse(OfficeParser.java:161)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.tika.fork.ForkServer.call(ForkServer.java:144)
> 	at org.apache.tika.fork.ForkServer.processRequests(ForkServer.java:124)
> 	at org.apache.tika.fork.ForkServer.main(ForkServer.java:69)
> Caused by: java.lang.NullPointerException
> 	at org.apache.tika.mime.MimeTypesFactory.create(MimeTypesFactory.java:136)
> 	at org.apache.tika.mime.MimeTypes.getDefaultMimeTypes(MimeTypes.java:499)
> 	at org.apache.tika.config.TikaConfig.getDefaultMimeTypes(TikaConfig.java:60)
> 	at org.apache.tika.config.TikaConfig.<init>(TikaConfig.java:169)
> 	at org.apache.tika.config.TikaConfig.getDefaultConfig(TikaConfig.java:268)
> 	at org.apache.tika.parser.microsoft.AbstractPOIFSExtractor.getTikaConfig(AbstractPOIFSExtractor.java:72)
> 	at org.apache.tika.parser.microsoft.AbstractPOIFSExtractor.getDetector(AbstractPOIFSExtractor.java:79)
> 	at org.apache.tika.parser.microsoft.AbstractPOIFSExtractor.handleEmbeddedOfficeDoc(AbstractPOIFSExtractor.java:176)
> 	... 10 more
> A patch will follow



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message