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

GitHub | Driox | 2 months ago
  1. 1

    Sample code from the doc don't work

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

    Jenkins using the wrong commons-io

    Stack Overflow | 2 years ago | Chaps
    java.lang.NoSuchMethodError: org.apache.commons.io.IOUtils.lineIterator(Ljava/io/InputStream;Ljava/nio/charset/Charset;)Lorg/apache/commons/io/LineIterator;
  3. 0

    In a Maven Build JOB which is using Maven 3.0.5 the Artifactory Plugin is not working ... java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239) at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:178) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at hudson.maven.Maven3Builder.call(Maven3Builder.java:136) at hudson.maven.Maven3Builder.call(Maven3Builder.java:71) at hudson.remoting.UserRequest.perform(UserRequest.java:121) at hudson.remoting.UserRequest.perform(UserRequest.java:49) at hudson.remoting.Request$2.run(Request.java:324) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.NoSuchMethodError: org.apache.commons.io.IOUtils.lineIterator(Ljava/io/InputStream;Ljava/nio/charset/Charset;)Lorg/apache/commons/io/LineIterator; at hudson.plugins.analysis.util.JavaPackageDetector.detectPackageName(JavaPackageDetector.java:34) at hudson.plugins.analysis.util.AbstractPackageDetector.detectPackageName(AbstractPackageDetector.java:25) at hudson.plugins.analysis.util.PackageDetectors.detectPackageName(PackageDetectors.java:30) at hudson.plugins.checkstyle.parser.CheckStyleParser.convert(CheckStyleParser.java:96) at hudson.plugins.checkstyle.parser.CheckStyleParser.parse(CheckStyleParser.java:72) at hudson.plugins.analysis.core.AbstractAnnotationParser.parse(AbstractAnnotationParser.java:54) at hudson.plugins.analysis.core.FilesParser.parseFile(FilesParser.java:323) at hudson.plugins.analysis.core.FilesParser.parseFiles(FilesParser.java:281) at hudson.plugins.analysis.core.FilesParser.parseSingleFile(FilesParser.java:239) at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:198) at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:31) at hudson.FilePath.act(FilePath.java:989) at hudson.FilePath.act(FilePath.java:967) at hudson.plugins.checkstyle.CheckStyleReporter.perform(CheckStyleReporter.java:129) at hudson.plugins.analysis.core.HealthAwareReporter.postExecute(HealthAwareReporter.java:337) at hudson.maven.Maven3Builder$MavenExecutionListener.recordMojoEnded(Maven3Builder.java:634) at hudson.maven.Maven3Builder$MavenExecutionListener.mojoSucceeded(Maven3Builder.java:615) at org.jfrog.build.extractor.maven.BuildInfoRecorder.mojoSucceeded(BuildInfoRecorder.java:274) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:87) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:42) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:228) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:117) ... 21 more

    Jenkins JIRA | 2 years ago | podskalsky
    java.lang.reflect.InvocationTargetException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    In a Maven Build JOB which is using Maven 3.0.5 the Artifactory Plugin is not working ... java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239) at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:178) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at hudson.maven.Maven3Builder.call(Maven3Builder.java:136) at hudson.maven.Maven3Builder.call(Maven3Builder.java:71) at hudson.remoting.UserRequest.perform(UserRequest.java:121) at hudson.remoting.UserRequest.perform(UserRequest.java:49) at hudson.remoting.Request$2.run(Request.java:324) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.NoSuchMethodError: org.apache.commons.io.IOUtils.lineIterator(Ljava/io/InputStream;Ljava/nio/charset/Charset;)Lorg/apache/commons/io/LineIterator; at hudson.plugins.analysis.util.JavaPackageDetector.detectPackageName(JavaPackageDetector.java:34) at hudson.plugins.analysis.util.AbstractPackageDetector.detectPackageName(AbstractPackageDetector.java:25) at hudson.plugins.analysis.util.PackageDetectors.detectPackageName(PackageDetectors.java:30) at hudson.plugins.checkstyle.parser.CheckStyleParser.convert(CheckStyleParser.java:96) at hudson.plugins.checkstyle.parser.CheckStyleParser.parse(CheckStyleParser.java:72) at hudson.plugins.analysis.core.AbstractAnnotationParser.parse(AbstractAnnotationParser.java:54) at hudson.plugins.analysis.core.FilesParser.parseFile(FilesParser.java:323) at hudson.plugins.analysis.core.FilesParser.parseFiles(FilesParser.java:281) at hudson.plugins.analysis.core.FilesParser.parseSingleFile(FilesParser.java:239) at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:198) at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:31) at hudson.FilePath.act(FilePath.java:989) at hudson.FilePath.act(FilePath.java:967) at hudson.plugins.checkstyle.CheckStyleReporter.perform(CheckStyleReporter.java:129) at hudson.plugins.analysis.core.HealthAwareReporter.postExecute(HealthAwareReporter.java:337) at hudson.maven.Maven3Builder$MavenExecutionListener.recordMojoEnded(Maven3Builder.java:634) at hudson.maven.Maven3Builder$MavenExecutionListener.mojoSucceeded(Maven3Builder.java:615) at org.jfrog.build.extractor.maven.BuildInfoRecorder.mojoSucceeded(BuildInfoRecorder.java:274) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:87) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:42) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:228) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:117) ... 21 more

    Jenkins JIRA | 2 years ago | podskalsky
    java.lang.reflect.InvocationTargetException
  6. 0

    java.lang.NoSuchMethodError: org.springframework.http.MediaType.getCharset()Ljava/nio/charset/Charset

    Stack Overflow | 5 months ago | Zack Macomber
    com.avada.rest.api.GroupsIntTest: org.springframework.http.MediaType.getCharset()Ljava/nio/charset/Charset;

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    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