lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Markus Jelsma <>
Subject trouble instantiating CloudSolrServer
Date Fri, 02 Nov 2012 10:38:36 GMT

We use trunk but got SolrJ 4.0 from Maven. Creating an instance of CloudSolrServer fails because
its constructor calls a not existing LBServer constructor, it attempts to create an instance
by only passing a HttpClient. How is LBHttpSolrServer supposed to work without passing a SolrServer
URL to it?

  public CloudSolrServer(String zkHost) throws MalformedURLException {
      this.zkHost = zkHost;
      this.myClient = HttpClientUtil.createClient(null);
      this.lbServer = new LBHttpSolrServer(myClient);
      this.updatesToLeaders = true;

java.lang.NoSuchMethodError: org.apache.solr.client.solrj.impl.LBHttpSolrServer.<init>(Lorg/apache/http/client/HttpClient;[Ljava/lang/String;)V
        at org.apache.solr.client.solrj.impl.CloudSolrServer.<init>(


View raw message