You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@tika.apache.org by Luke Noel-Storr <lu...@integrate.co.uk> on 2016/02/25 16:35:29 UTC
ForkParser
Hi,
I am trying to use the ForkParser, but am getting an exception:
org.apache.tika.exception.TikaException: Unable to serialize ParseContext to pass to the Forked Parser
Caused by:
Caused by: java.io.NotSerializableException: java.net.URLClassLoader
I"m constructing the parser like this:
return new Tika(
TikaConfig.getDefaultConfig().getDetector(),
new ForkParser()
);
and using it like this:
final Metadata metadata = new Metadata();
final String content
= tika.parseToString(newInputStream(file), metadata);
I'm using Java 8, on OSX 10.11, and my application (in dev mode) is running inside Jetty inside a sbt console session.
Any pointers as to what I am doing wrong, or how I can get it working?
Many Thanks,
Luke Noel-Storr.
----------------
Principal Software Engineer @ integrate
Tel: +44 (0)1926 889199
http://www.integrate.co.uk <http://www.integrate.co.uk/>