On Thu, Apr 2, 2009 at 1:13 AM, vivek sar <vivex...@gmail.com> 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.

-- 
Regards,
Shalin Shekhar Mangar.

Reply via email to