java.lang.NoSuchMethodError: org.apache.http.protocol.RequestUserAgent.<init>(Ljava/lang/String;)V

couchbase.com | 6 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

    Exception when using scala to call java sdk,and run with Spark - Spark Connector - Couchbase Forums

    couchbase.com | 6 months ago
    java.lang.NoSuchMethodError: org.apache.http.protocol.RequestUserAgent.<init>(Ljava/lang/String;)V
  2. 0

    Why after including JRJC dependency in pom.xml http exception are coming?

    Stack Overflow | 2 months ago | pokemon blue
    java.lang.NoSuchMethodError: org.apache.http.nio.protocol.HttpAsyncRequester.<init>(Lorg/apache/http/protocol/HttpProcessor;)V

    1 unregistered visitors

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      org.apache.http.protocol.RequestUserAgent.<init>(Ljava/lang/String;)V

      at com.couchbase.client.ViewConnection.<init>()
    2. Couchbase Java SDK
      CouchbaseClient.<init>
      1. com.couchbase.client.ViewConnection.<init>(ViewConnection.java:156)
      2. com.couchbase.client.CouchbaseConnectionFactory.createViewConnection(CouchbaseConnectionFactory.java:254)
      3. com.couchbase.client.CouchbaseClient.<init>(CouchbaseClient.java:266)
      4. com.couchbase.client.CouchbaseClient.<init>(CouchbaseClient.java:194)
      4 frames
    3. com.eyespage.dc
      Run.main
      1. com.eyespage.dc.etl.c2s.Run$.main(main.scala:16)
      2. com.eyespage.dc.etl.c2s.Run.main(main.scala)
      2 frames
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:606)
      4 frames
    5. Spark
      SparkSubmit.main
      1. org.apache.spark.deploy.SparkSubmit$.launch(SparkSubmit.scala:303)
      2. org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:55)
      3. org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
      3 frames