: I'm starting using SolR 1.4 queried by SolRJ 1.4 : (all official release that I've downloaded from the main link on the web ... : The servers start OK : and the class CommonsHttpSolrServer works fine. : But when running the class EmbeddedSolrServer to do the same basic test, : it fails with the following "compilation like" exception : ... : Exception in thread "main" java.lang.VerifyError: class : org.apache.solr.search.SolrIndexReader overrides final method : setNorm.(ILjava/lang/String;B)V ... : Am I doing something wrong ? I'm not a newby in Java and this exception : seems more like a compilation problem than a config or usage pbl. : In my classPath, I've imported the jars from the folder : "\apache-solr-1.4.0\dist".
...it's not a compilation error, it's a runtime incompatibility error: essentially the bytecode you have for SolrIndexReader is not compatible with the bytecode you have for something higher up in the class hierarchy (ie: FilterIndexReader, or IndexReader) ... this can really only happen if the source code for the child class (SolrIndexReader) wasn't compiled against the same version of hte parent class that is being used at runtime This problem tends to happen whne you've got multiple versions of a class (one old, one current) in your classpath. the fact that it works for you when you run solr in a servlet container, but now when you run it embedded in your app suggests that you have an older version of the Lucene jars somewhere in the class path for the app you are trying to embed solr in. -Hoss