Hi,

I am trying to use SolrHttpClient in solrj 5.3.0 but I am getting the following 
execption:

Caused by: 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/CloseableHttpClient' (from method signature)
  Current Frame:
    bci: @57
    flags: { }
    locals: { 'org/apache/solr/common/params/SolrParams', 
'org/apache/solr/common/params/ModifiableSolrParams', 
'org/apache/http/impl/client/SystemDefaultHttpClient' }
    stack: { 'org/apache/http/impl/client/SystemDefaultHttpClient' }

I added httpcore-4.4.1.jar and httclient-4.4.1.jar to classpath but the issue 
is still there. Any help is appreciated.

Thanks,
Firas

Reply via email to