Solr 3.4.0, DataImportHandler, Tika 0.8, SLF4j NoSuchMethodError

This applies if you have built your own, custom package of solr using Maven.

In some instances, you will get an exception when running a DataImportHandler job using the TikaProcessor to handle binary file content. The exception will be NoSuchMethodError from SLF4J. This is caused by a dependancy in Tika 0.8, edu.ucar.netcdf, that bundles an older, non-compatible version of SLF4J (1.5 instead of 1.6). Add the following to your POM to circumnavigate this incompatibility:


This will include the 4.2-min version of netcdf instead of the regular package. The 4.2-min does not bundle a bunch of third-party libraries, lowering the risk of conflicts.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: