Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-31444

SNS Notify Plugin fails because of missing dependency

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: snsnotify-plugin
    • Labels:
      None
    • Environment:
      Master Jenkins v1.636 on Amazon Linux 2015.09
      Slave on OS X 10.11
      Support Core logs attached
    • Similar Issues:

      Description

      After installing the Amazon SNS Notify plugin and providing a global configuration, jobs report the following errors in the Jenkins log when run.

      RunListener failed
      java.lang.NoClassDefFoundError: Could not initialize class com.amazonaws.ClientConfiguration
      at com.amazonaws.services.sns.AmazonSNSClient.<init>(AmazonSNSClient.java:128)
      at org.jenkinsci.plugins.snsnotify.AmazonSNSNotifier.send(AmazonSNSNotifier.java:144)
      at org.jenkinsci.plugins.snsnotify.AmazonSNSNotifier.onCompleted(AmazonSNSNotifier.java:85)
      at org.jenkinsci.plugins.snsnotify.BuildListener.onCompleted(BuildListener.java:30)
      at org.jenkinsci.plugins.snsnotify.BuildListener.onCompleted(BuildListener.java:8)
      at hudson.model.listeners.RunListener.fireCompleted(RunListener.java:201)
      at hudson.model.Run.execute(Run.java:1786)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:98)
      at hudson.model.Executor.run(Executor.java:410)

        Attachments

          Activity

          Hide
          emofine1 Edwin Fine added a comment -

          I have a similar situation.

          Dec 06, 2015 1:41:52 AM INFO hudson.model.Run execute
          test_stash_webhook-deploy #13 main build action completed: SUCCESS
          Dec 06, 2015 1:41:52 AM INFO org.jenkinsci.plugins.snsnotify.AmazonSNSNotifier onCompleted
          Prepare SNS notification for build completed...
          Dec 06, 2015 1:41:52 AM INFO org.jenkinsci.plugins.snsnotify.AmazonSNSNotifier send
          Setup SNS client 'sns.eu-central-1.amazonaws.com' ...
          Dec 06, 2015 1:41:52 AM WARNING hudson.model.listeners.RunListener report
          RunListener failed
          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:144)
          at org.jenkinsci.plugins.snsnotify.AmazonSNSNotifier.onCompleted(AmazonSNSNotifier.java:85)
          at org.jenkinsci.plugins.snsnotify.BuildListener.onCompleted(BuildListener.java:30)
          at org.jenkinsci.plugins.snsnotify.BuildListener.onCompleted(BuildListener.java:8)
          at hudson.model.listeners.RunListener.fireCompleted(RunListener.java:201)

          Show
          emofine1 Edwin Fine added a comment - I have a similar situation. Dec 06, 2015 1:41:52 AM INFO hudson.model.Run execute test_stash_webhook-deploy #13 main build action completed: SUCCESS Dec 06, 2015 1:41:52 AM INFO org.jenkinsci.plugins.snsnotify.AmazonSNSNotifier onCompleted Prepare SNS notification for build completed... Dec 06, 2015 1:41:52 AM INFO org.jenkinsci.plugins.snsnotify.AmazonSNSNotifier send Setup SNS client 'sns.eu-central-1.amazonaws.com' ... Dec 06, 2015 1:41:52 AM WARNING hudson.model.listeners.RunListener report RunListener failed 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:144) at org.jenkinsci.plugins.snsnotify.AmazonSNSNotifier.onCompleted(AmazonSNSNotifier.java:85) at org.jenkinsci.plugins.snsnotify.BuildListener.onCompleted(BuildListener.java:30) at org.jenkinsci.plugins.snsnotify.BuildListener.onCompleted(BuildListener.java:8) at hudson.model.listeners.RunListener.fireCompleted(RunListener.java:201)
          Hide
          emofine1 Edwin Fine added a comment -

          The answer appears to be a duplicate library, as seen in this post, which has a workaround, but it's not a good one for people like me, who automate building the Jenkins server.

          https://wiki.jenkins-ci.org/display/JENKINS/Amazon+SNS+Notifier?focusedCommentId=83362519#comment-83362519

          If this is the solution, it would be great if you could fix this problem. Thanks for a nifty plugin!

          Show
          emofine1 Edwin Fine added a comment - The answer appears to be a duplicate library, as seen in this post, which has a workaround, but it's not a good one for people like me, who automate building the Jenkins server. https://wiki.jenkins-ci.org/display/JENKINS/Amazon+SNS+Notifier?focusedCommentId=83362519#comment-83362519 If this is the solution, it would be great if you could fix this problem. Thanks for a nifty plugin!

            People

            • Assignee:
              Unassigned
              Reporter:
              kix_mdouglass Matthew Douglass
            • Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: