java.lang.NoClassDefFoundError: org/apache/http/util/Args

Jenkins JIRA | Milo Hyson | 2 years ago
  1. 0

    Installing the released snsnotify-plugin v1.9 on a completely stock Jenkins v1.614 does not work. Builds using the plugin fail with the following exception on stdout: java.lang.NoClassDefFoundError: org/apache/http/util/Args at org.apache.http.conn.scheme.Scheme.<init>(Scheme.java:90) at org.apache.http.impl.conn.SchemeRegistryFactory.createDefault(SchemeRegistryFactory.java:50) at com.amazonaws.http.ConnectionManagerFactory.createPoolingClientConnManager(ConnectionManagerFactory.java:29) at com.amazonaws.http.HttpClientFactory.createHttpClient(HttpClientFactory.java:104) at com.amazonaws.http.AmazonHttpClient.<init>(AmazonHttpClient.java:198) at com.amazonaws.AmazonWebServiceClient.<init>(AmazonWebServiceClient.java:132) at com.amazonaws.AmazonWebServiceClient.<init>(AmazonWebServiceClient.java:116) at com.amazonaws.services.sns.AmazonSNSClient.<init>(AmazonSNSClient.java:147) at com.amazonaws.services.sns.AmazonSNSClient.<init>(AmazonSNSClient.java:128) at org.jenkinsci.plugins.snsnotify.AmazonSNSNotifier.send(AmazonSNSNotifier.java:156) at org.jenkinsci.plugins.snsnotify.AmazonSNSNotifier.sendSafe(AmazonSNSNotifier.java:102) at org.jenkinsci.plugins.snsnotify.AmazonSNSNotifier.onStarted(AmazonSNSNotifier.java:79) at org.jenkinsci.plugins.snsnotify.BuildListener.onStarted(BuildListener.java:19) at org.jenkinsci.plugins.snsnotify.BuildListener.onStarted(BuildListener.java:8) at hudson.model.listeners.RunListener.fireStarted(RunListener.java:215) at hudson.model.Run.execute(Run.java:1740) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:374) Caused by: java.lang.ClassNotFoundException: org.apache.http.util.Args at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1376) at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1326) at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1079) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ... 19 more An easy fix is to add the following to the pom.xml and rebuild: <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpcore</artifactId> <version>4.4.1</version> </dependency>

    Jenkins JIRA | 2 years ago | Milo Hyson
    java.lang.NoClassDefFoundError: org/apache/http/util/Args
  2. 0

    Installing the released snsnotify-plugin v1.9 on a completely stock Jenkins v1.614 does not work. Builds using the plugin fail with the following exception on stdout: java.lang.NoClassDefFoundError: org/apache/http/util/Args at org.apache.http.conn.scheme.Scheme.<init>(Scheme.java:90) at org.apache.http.impl.conn.SchemeRegistryFactory.createDefault(SchemeRegistryFactory.java:50) at com.amazonaws.http.ConnectionManagerFactory.createPoolingClientConnManager(ConnectionManagerFactory.java:29) at com.amazonaws.http.HttpClientFactory.createHttpClient(HttpClientFactory.java:104) at com.amazonaws.http.AmazonHttpClient.<init>(AmazonHttpClient.java:198) at com.amazonaws.AmazonWebServiceClient.<init>(AmazonWebServiceClient.java:132) at com.amazonaws.AmazonWebServiceClient.<init>(AmazonWebServiceClient.java:116) at com.amazonaws.services.sns.AmazonSNSClient.<init>(AmazonSNSClient.java:147) at com.amazonaws.services.sns.AmazonSNSClient.<init>(AmazonSNSClient.java:128) at org.jenkinsci.plugins.snsnotify.AmazonSNSNotifier.send(AmazonSNSNotifier.java:156) at org.jenkinsci.plugins.snsnotify.AmazonSNSNotifier.sendSafe(AmazonSNSNotifier.java:102) at org.jenkinsci.plugins.snsnotify.AmazonSNSNotifier.onStarted(AmazonSNSNotifier.java:79) at org.jenkinsci.plugins.snsnotify.BuildListener.onStarted(BuildListener.java:19) at org.jenkinsci.plugins.snsnotify.BuildListener.onStarted(BuildListener.java:8) at hudson.model.listeners.RunListener.fireStarted(RunListener.java:215) at hudson.model.Run.execute(Run.java:1740) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:374) Caused by: java.lang.ClassNotFoundException: org.apache.http.util.Args at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1376) at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1326) at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1079) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ... 19 more An easy fix is to add the following to the pom.xml and rebuild: <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpcore</artifactId> <version>4.4.1</version> </dependency>

    Jenkins JIRA | 2 years ago | Milo Hyson
    java.lang.NoClassDefFoundError: org/apache/http/util/Args
  3. 0

    RunListener failed - Build Passes do not update commit statuses

    GitHub | 1 year ago | techman83
    java.lang.NoClassDefFoundError: hudson/tasks/test/TestObject
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Do not depend on cobertura plugin

    GitHub | 11 months ago | kwisatz
    java.lang.NoClassDefFoundError: hudson/plugins/cobertura/CoberturaBuildAction
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.ClassNotFoundException

    org.apache.http.util.Args

    at jenkins.util.AntClassLoader.findClassInComponents()
  2. jenkins.util
    AntClassLoader.loadClass
    1. jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1376)
    2. jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1326)
    3. jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1079)
    3 frames
  3. Java RT
    ClassLoader.loadClass
    1. java.lang.ClassLoader.loadClass(ClassLoader.java:358)
    1 frame
  4. Apache HttpClient
    SchemeRegistryFactory.createDefault
    1. org.apache.http.conn.scheme.Scheme.<init>(Scheme.java:90)
    2. org.apache.http.impl.conn.SchemeRegistryFactory.createDefault(SchemeRegistryFactory.java:50)
    2 frames
  5. AWS SDK for Java - Core
    AmazonWebServiceClient.<init>
    1. com.amazonaws.http.ConnectionManagerFactory.createPoolingClientConnManager(ConnectionManagerFactory.java:29)
    2. com.amazonaws.http.HttpClientFactory.createHttpClient(HttpClientFactory.java:104)
    3. com.amazonaws.http.AmazonHttpClient.<init>(AmazonHttpClient.java:198)
    4. com.amazonaws.AmazonWebServiceClient.<init>(AmazonWebServiceClient.java:132)
    5. com.amazonaws.AmazonWebServiceClient.<init>(AmazonWebServiceClient.java:116)
    5 frames
  6. AWS Java SDK for Amazon SNS
    AmazonSNSClient.<init>
    1. com.amazonaws.services.sns.AmazonSNSClient.<init>(AmazonSNSClient.java:147)
    2. com.amazonaws.services.sns.AmazonSNSClient.<init>(AmazonSNSClient.java:128)
    2 frames
  7. org.jenkinsci.plugins
    BuildListener.onStarted
    1. org.jenkinsci.plugins.snsnotify.AmazonSNSNotifier.send(AmazonSNSNotifier.java:156)
    2. org.jenkinsci.plugins.snsnotify.AmazonSNSNotifier.sendSafe(AmazonSNSNotifier.java:102)
    3. org.jenkinsci.plugins.snsnotify.AmazonSNSNotifier.onStarted(AmazonSNSNotifier.java:79)
    4. org.jenkinsci.plugins.snsnotify.BuildListener.onStarted(BuildListener.java:19)
    5. org.jenkinsci.plugins.snsnotify.BuildListener.onStarted(BuildListener.java:8)
    5 frames
  8. Hudson
    Executor.run
    1. hudson.model.listeners.RunListener.fireStarted(RunListener.java:215)
    2. hudson.model.Run.execute(Run.java:1740)
    3. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    4. hudson.model.ResourceController.execute(ResourceController.java:98)
    5. hudson.model.Executor.run(Executor.java:374)
    5 frames