yarn.ApplicationMaster: User class threw exception: com.google.common.util.concurrent.ExecutionError: 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/conn/ClientConnectionManager;)Lorg/apache/http/impl/client/CloseableHttpClient; @58: areturn Reason: Type 'org/apache/http/impl/client/DefaultHttpClient' (current frame, stack[0]) is not assignable to 'org/apache/http/impl/client/CloseableHttpClient' (from method signature) Current Frame: bci: @58 flags: { } locals: { 'org/apache/solr/common/params/SolrParams', 'org/apache/http/conn/ClientConnectionManager', 'org/apache/solr/common/params/ModifiableSolrParams', 'org/apache/http/impl/client/DefaultHttpClient' } stack: { 'org/apache/http/impl/client/DefaultHttpClient' } Bytecode: 0x0000000: bb00 0359 2ab7 0004 4db2 0005 b900 0601 0x0000010: 0099 001e b200 05bb 0007 59b7 0008 1209 0x0000020: b600 0a2c b600 0bb6 000c b900 0d02 002b 0x0000030: b800 104e 2d2c b800 0f2d b0 Stackmap Table: append_frame(@47,Object[#143])

Stack Overflow | Dylan Hogg | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    CDH Spark job fails with java.lang.VerifyError at solrj.impl.HttpClientUtil

    GitHub | 7 months ago | dylanhogg
    yarn.ApplicationMaster: User class threw exception: com.google.common.util.concurrent.ExecutionError: 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/conn/ClientConnectionManager;)Lorg/apache/http/impl/client/CloseableHttpClient; @58: areturn Reason: Type 'org/apache/http/impl/client/DefaultHttpClient' (current frame, stack[0]) is not assignable to 'org/apache/http/impl/client/CloseableHttpClient' (from method signature) Current Frame: bci: @58 flags: { } locals: { 'org/apache/solr/common/params/SolrParams', 'org/apache/http/conn/ClientConnectionManager', 'org/apache/solr/common/params/ModifiableSolrParams', 'org/apache/http/impl/client/DefaultHttpClient' } stack: { 'org/apache/http/impl/client/DefaultHttpClient' } Bytecode: 0x0000000: bb00 0359 2ab7 0004 4db2 0005 b900 0601 0x0000010: 0099 001e b200 05bb 0007 59b7 0008 1209 0x0000020: b600 0a2c b600 0bb6 000c b900 0d02 002b 0x0000030: b800 104e 2d2c b800 0f2d b0 Stackmap Table: append_frame(@47,Object[#143])
  2. 0

    spark-solr CDH job fails with java.lang.VerifyError at solrj.impl.HttpClientUtil

    Stack Overflow | 7 months ago | Dylan Hogg
    yarn.ApplicationMaster: User class threw exception: com.google.common.util.concurrent.ExecutionError: 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/conn/ClientConnectionManager;)Lorg/apache/http/impl/client/CloseableHttpClient; @58: areturn Reason: Type 'org/apache/http/impl/client/DefaultHttpClient' (current frame, stack[0]) is not assignable to 'org/apache/http/impl/client/CloseableHttpClient' (from method signature) Current Frame: bci: @58 flags: { } locals: { 'org/apache/solr/common/params/SolrParams', 'org/apache/http/conn/ClientConnectionManager', 'org/apache/solr/common/params/ModifiableSolrParams', 'org/apache/http/impl/client/DefaultHttpClient' } stack: { 'org/apache/http/impl/client/DefaultHttpClient' } Bytecode: 0x0000000: bb00 0359 2ab7 0004 4db2 0005 b900 0601 0x0000010: 0099 001e b200 05bb 0007 59b7 0008 1209 0x0000020: b600 0a2c b600 0bb6 000c b900 0d02 002b 0x0000030: b800 104e 2d2c b800 0f2d b0 Stackmap Table: append_frame(@47,Object[#143])

    Root Cause Analysis

    1. yarn.ApplicationMaster

      User class threw exception: com.google.common.util.concurrent.ExecutionError: 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/conn/ClientConnectionManager;)Lorg/apache/http/impl/client/CloseableHttpClient; @58: areturn Reason: Type 'org/apache/http/impl/client/DefaultHttpClient' (current frame, stack[0]) is not assignable to 'org/apache/http/impl/client/CloseableHttpClient' (from method signature) Current Frame: bci: @58 flags: { } locals: { 'org/apache/solr/common/params/SolrParams', 'org/apache/http/conn/ClientConnectionManager', 'org/apache/solr/common/params/ModifiableSolrParams', 'org/apache/http/impl/client/DefaultHttpClient' } stack: { 'org/apache/http/impl/client/DefaultHttpClient' } Bytecode: 0x0000000: bb00 0359 2ab7 0004 4db2 0005 b900 0601 0x0000010: 0099 001e b200 05bb 0007 59b7 0008 1209 0x0000020: b600 0a2c b600 0bb6 000c b900 0d02 002b 0x0000030: b800 104e 2d2c b800 0f2d b0 Stackmap Table: append_frame(@47,Object[#143])

      at com.google.common.cache.LocalCache$Segment.get()
    2. Guava
      LocalCache$LocalManualCache.get
      1. com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2232)
      2. com.google.common.cache.LocalCache.get(LocalCache.java:3965)
      3. com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3969)
      4. com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4829)
      4 frames
    3. com.lucidworks.spark
      SolrRelation.<init>
      1. com.lucidworks.spark.util.SolrSupport$.getCachedCloudClient(SolrSupport.scala:93)
      2. com.lucidworks.spark.util.SolrSupport$.getSolrBaseUrl(SolrSupport.scala:97)
      3. com.lucidworks.spark.util.SolrQuerySupport$.getUniqueKey(SolrQuerySupport.scala:82)
      4. com.lucidworks.spark.rdd.SolrRDD.<init>(SolrRDD.scala:32)
      5. com.lucidworks.spark.SolrRelation.<init>(SolrRelation.scala:63)
      5 frames
    4. solr
      DefaultSource.createRelation
      1. solr.DefaultSource.createRelation(DefaultSource.scala:26)
      1 frame
    5. org.apache.spark
      ResolvedDataSource$.apply
      1. org.apache.spark.sql.execution.datasources.ResolvedDataSource$.apply(ResolvedDataSource.scala:222)
      1 frame
    6. Spark Project SQL
      DataFrameWriter.save
      1. org.apache.spark.sql.DataFrameWriter.save(DataFrameWriter.scala:148)
      1 frame
    7. com.tempurer.intelligence
      SolrIndexer3.main
      1. com.tempurer.intelligence.searchindexer.SolrIndexer3$.runJob(SolrIndexer3.scala:127)
      2. com.tempurer.intelligence.searchindexer.SolrIndexer3$.main(SolrIndexer3.scala:80)
      3. com.tempurer.intelligence.searchindexer.SolrIndexer3.main(SolrIndexer3.scala)
      3 frames
    8. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:498)
      4 frames
    9. Spark Project YARN Stable API
      ApplicationMaster$$anon$2.run
      1. org.apache.spark.deploy.yarn.ApplicationMaster$$anon$2.run(ApplicationMaster.scala:542)
      1 frame