echonest / echoprint-server

Server components for Echoprint
http://echoprint.me/server
Other
424 stars 154 forks source link

An exception while integrating Hashr.jar into a collection in Solr #35

Open ozymaxx opened 10 years ago

ozymaxx commented 10 years ago

When I'm trying to add Hashr.jar into a collection's solrconfig.xml, the server gives the following warning:

3200667 [qtp16504854-12] WARN org.eclipse.jetty.servlet.ServletHandler – Error for /solr/admin/cores java.lang.VerifyError: class com.echonest.knowledge.hashr.HashAnalyzer overrides final method tokenStream.(Ljava/lang/String;Ljava/io/Reader;)Lorg/apache/lucene/analysis/TokenStream;

How can I fix this error?

Thanks in advance.

windwhinny commented 9 years ago

seems that HashrAnalyzer.java use an old version of solr dev lib.

I fix this by rewrite signature of tokenStream to :

public final TokenStream tokenStream(final String string, final Reader reader)

But when I build, I got another error:

BUILD FAILED
/home/ubuntu/echoprint-server/Hashr/nbproject/build-impl.xml:63: Source resource does not exist: /home/ubuntu/echoprint-server/lib/nblibraries.properties

Seems like they missing some file called nblibraries.properties