lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shalin Shekhar Mangar <>
Subject Re: Runtime exception when adding documents using solrj
Date Wed, 01 Apr 2009 20:02:08 GMT
On Thu, Apr 2, 2009 at 1:13 AM, vivek sar <> wrote:
> Hi,
>  I'm trying to add the list of POJO objects (using annotations) using
> solrj, but the "server.addBeans(...) " is throwing this exception,
> org.apache.solr.common.SolrException: Bad Request
> Bad Request
> request: http://localhost:8080/solr/core0/update?wt=javabin&version=2.2
> Note, I'm using multi-core. There is no other exception in the solr log.

Can you make sure all the cores' solrconfig.xml have the following line?

<requestHandler name="/update/javabin"
class="solr.BinaryUpdateRequestHandler" />

The above is needed for binary update format to work. I don't think
the multi core example solrconfig.xml in solr nightly builds contain
this line.

> Related question - I'm trying to upgrade the solrj from nightly build,
> but I get some classnotfound exception
> (java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory). What are
> all the dependencies for Solrj1.4 (wiki has only up to 1.3
> information).

I think you need slf4j-api-1.5.5.jar and slf4j-jdk14-1.5.5.jar. Both
can be found in solr's nightly downloads in the lib directory.

Shalin Shekhar Mangar.

View raw message