java.lang.NoSuchMethodError: org.apache.http.client.methods.RequestBuilder.setCharset(Ljava/nio/charset/Charset;)Lorg/apache/http/client/methods/RequestBuilder;

GitHub | Driox | 5 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. 1

    Sample code from the doc don't work

    GitHub | 5 months ago | Driox
    java.lang.NoSuchMethodError: org.apache.http.client.methods.RequestBuilder.setCharset(Ljava/nio/charset/Charset;)Lorg/apache/http/client/methods/RequestBuilder;

    1 unregistered visitors

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      org.apache.http.client.methods.RequestBuilder.setCharset(Ljava/nio/charset/Charset;)Lorg/apache/http/client/methods/RequestBuilder;

      at com.twilio.http.NetworkHttpClient.makeRequest()
    2. com.twilio.http
      TwilioRestClient.request
      1. com.twilio.http.NetworkHttpClient.makeRequest(NetworkHttpClient.java:64)
      2. com.twilio.http.HttpClient.reliableRequest(HttpClient.java:38)
      3. com.twilio.http.HttpClient.reliableRequest(HttpClient.java:22)
      4. com.twilio.http.TwilioRestClient.request(TwilioRestClient.java:42)
      4 frames
    3. com.twilio.rest
      MessageCreator.execute
      1. com.twilio.rest.api.v2010.account.MessageCreator.execute(MessageCreator.java:307)
      2. com.twilio.rest.api.v2010.account.MessageCreator.execute(MessageCreator.java:25)
      2 frames
    4. com.twilio.base
      Creator.execute
      1. com.twilio.base.Creator.execute(Creator.java:45)
      1 frame
    5. services.twilio
      TwilioService.sendMessage
      1. services.twilio.TwilioService.sendMessageUnsafe(TwilioService.java:35)
      2. services.twilio.TwilioService.sendMessage(TwilioService.java:17)
      2 frames
    6. controllers
      Application.test
      1. controllers.Application.test(Application.java:48)
      1 frame
    7. 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:483)
      4 frames
    8. Play
      Invoker$Invocation$1.apply
      1. play.mvc.ActionInvoker.invokeWithContinuation(ActionInvoker.java:527)
      2. play.mvc.ActionInvoker.invoke(ActionInvoker.java:478)
      3. play.mvc.ActionInvoker.invokeControllerMethod(ActionInvoker.java:454)
      4. play.mvc.ActionInvoker.invokeControllerMethod(ActionInvoker.java:449)
      5. play.mvc.ActionInvoker.invoke(ActionInvoker.java:161)
      6. play.server.PlayHandler$NettyInvocation.execute(PlayHandler.java:326)
      7. play.Invoker$Invocation$1.apply(Invoker.java:290)
      8. play.Invoker$Invocation$1.apply(Invoker.java:287)
      8 frames
    9. Play
      JPAPlugin$TransactionalFilter.withinFilter
      1. play.db.jpa.JPA.withTransaction(JPA.java:258)
      2. play.db.jpa.JPA.withinFilter(JPA.java:217)
      3. play.db.jpa.JPAPlugin$TransactionalFilter.withinFilter(JPAPlugin.java:299)
      3 frames
    10. Play
      PlayHandler$NettyInvocation.run
      1. play.Invoker$Invocation.withinFilter(Invoker.java:271)
      2. play.Invoker$Invocation.run(Invoker.java:287)
      3. play.server.PlayHandler$NettyInvocation.run(PlayHandler.java:303)
      3 frames
    11. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:266)
      3. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
      4. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
      5. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      6. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      7. java.lang.Thread.run(Thread.java:745)
      7 frames