You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by "Madhire, Naveen" <Na...@capitalone.com> on 2015/10/27 21:42:06 UTC

Sold MiniSolrCloudCluster Issue

Hi,

I am using MiniSolrCloudCluster class in writing unit test cases for testing the solr application.

Looks like there is a HTTPClient library mismatch with the solr version and I am getting the below error,

java.lang.VerifyError: Bad return type
Exception Details:
  Location:
    org/apache/solr/client/solrj/impl/HttpClientUtil.createClient(Lorg/apache/solr/common/params/SolrParams;)Lorg/apache/http/impl/client/CloseableHttpClient; @57: areturn
  Reason:
    Type 'org/apache/http/impl/client/SystemDefaultHttpClient' (current frame, stack[0]) is not assignable to 'org/apache/http/impl/client/CloseableHttp

I am using Solr 5.3.1
I see a similar issue here https://issues.apache.org/jira/browse/SOLR-7948 but there doesn’t seem to be a work around for this.

Can anyone please tell me how to fix this issue?


Below is code snippet,


dataDir = tempFolder.newFolder();
File solrXml = new File("src/test/resources/solr.xml”);

MiniSolrCloudCluster cluster = new MiniSolrCloudCluster(1,null,workingDir,solrXml,null,null);


Thanks.
________________________________________________________

The information contained in this e-mail is confidential and/or proprietary to Capital One and/or its affiliates and may only be used solely in performance of work or services for Capital One. The information transmitted herewith is intended only for use by the individual or entity to which it is addressed. If the reader of this message is not the intended recipient, you are hereby notified that any review, retransmission, dissemination, distribution, copying or other use of, or taking of any action in reliance upon this information is strictly prohibited. If you have received this communication in error, please contact the sender and delete the material from your computer.
________________________________________________________

The information contained in this e-mail is confidential and/or proprietary to Capital One and/or its affiliates and may only be used solely in performance of work or services for Capital One. The information transmitted herewith is intended only for use by the individual or entity to which it is addressed. If the reader of this message is not the intended recipient, you are hereby notified that any review, retransmission, dissemination, distribution, copying or other use of, or taking of any action in reliance upon this information is strictly prohibited. If you have received this communication in error, please contact the sender and delete the material from your computer.