Hi, I am new to solrJ, in following code I got exception. Plese help, we did not get getParams() method in HttpConnectionManager. In which jar we get with this method.
public static void main (String [] args) { /*String url = "http://localhost:8983/solr"; SolrServer server = new CommonsHttpSolrServer( url ); server.setParser(new XMLResponseParser());*/ try { SolrServer server = getSolrServer(); SolrQuery solrQuery = new SolrQuery(). setQuery("computer"). setFacet(true). setFacetMinCount(1). setFacetLimit(8). addFacetField("category"). addFacetField("inStock"); QueryResponse rsp = server.query(solrQuery); SolrDocumentList docs = rsp.getResults(); //List<Item> beans = rsp.getBeans(Item.class); } catch(Exception ex) { System.out.println(ex.getMessage()); ex.printStackTrace(); } } Exception got: Exception in thread "main" java.lang.NoSuchMethodError: org.apache.commons.httpclient.HttpConnectionManager.getParams()Lorg/apache/commons/httpclient/params/HttpConnectionManagerParams; at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.setDefaultMaxConnectionsPerHost(CommonsHttpSolrServer.java:455) at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.<init>(CommonsHttpSolrServer.java:152) at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.<init>(CommonsHttpSolrServer.java:125) at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.<init>(CommonsHttpSolrServer.java:97) at com.xonos.ecommerce.search.solr.SolrClient.getSolrServer(SolrClient.java:50) at com.xonos.ecommerce.search.solr.SolrClient.main(SolrClient.java:26) Thanks & Regards, Ranjeet