title: java.lang.NoSuchMethodError with AWS SDK
body: <p>I'm attempting to upload images to Amazon S3 bucket using the following code:</p>
  
  <pre><code>   AmazonS3 s3Client = AmazonS3ClientBuilder.standard()
  
     .withRegion("us-east-1")
     .withCredentials(credentialsProvider)
     .build();
  </code></pre>
  
  <p>However, Eclipse throws the following exception:</p>
  
  <pre><code>Exception in thread "main" java.lang.NoSuchMethodError: com.fasterxml.jackson.core.JsonFactory.requiresPropertyOrdering()Z
      at com.fasterxml.jackson.databind.ObjectMapper.&lt;init&gt;(ObjectMapper.java:537)
      at com.fasterxml.jackson.databind.ObjectMapper.&lt;init&gt;(ObjectMapper.java:448)
      at com.amazonaws.partitions.PartitionsLoader.&lt;clinit&gt;(PartitionsLoader.java:51)
      at com.amazonaws.regions.RegionMetadataFactory.create(RegionMetadataFactory.java:30)
      at com.amazonaws.regions.RegionUtils.initialize(RegionUtils.java:64)
      at com.amazonaws.regions.RegionUtils.getRegionMetadata(RegionUtils.java:52)
      at com.amazonaws.regions.RegionUtils.getRegion(RegionUtils.java:105)
      at com.amazonaws.client.builder.AwsClientBuilder.getRegionObject(AwsClientBuilder.java:249)
      at com.amazonaws.client.builder.AwsClientBuilder.withRegion(AwsClientBuilder.java:238)
      at order_fulfilment.amazon.AmazonS3API.perform(AmazonS3API.java:68)
      at amzn.Main.main(Main.java:126)
  </code></pre>
  
  <p>Based on <a href="https://github.com/aws/aws-sdk-java/issues/1459" rel="nofollow noreferrer">this</a> thread it seems to be an issue with Jackson version. However, I tried every version of Jackson (including version 2.6.7 and 2.6.6. as suggested in thread) to no avail. </p>
  
  <p>I was able to confirm the Jackson version was correct using the following code:</p>
  
  <pre><code>System.out.println(com.fasterxml.jackson.databind.ObjectMapper.class.getProtectionDomain().getCodeSource().getLocation());
  </code></pre>
  
  <p>As suggested in <a href="https://github.com/aws/aws-sdk-java/issues/1167" rel="nofollow noreferrer">this</a> and <a href="https://stackoverflow.com/questions/43362138/aws-java-sdk-is-taking-old-version-of-jackson-jar">this</a> thread on stackoverflow.</p>
  
  <p>What am I doing wrong?</p>
  
  <p><strong>All Dependencies:</strong></p>
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
      &lt;groupId&gt;amz&lt;/groupId&gt;
      &lt;artifactId&gt;amz&lt;/artifactId&gt;
      &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
      &lt;packaging&gt;war&lt;/packaging&gt;
      &lt;build&gt;
          &lt;sourceDirectory&gt;src&lt;/sourceDirectory&gt;
          &lt;resources&gt;
              &lt;resource&gt;
                  &lt;directory&gt;src&lt;/directory&gt;
                  &lt;excludes&gt;
                      &lt;exclude&gt;**/*.java&lt;/exclude&gt;
                  &lt;/excludes&gt;
              &lt;/resource&gt;
              &lt;resource&gt;
                  &lt;directory&gt;lib&lt;/directory&gt;
                  &lt;excludes&gt;
                      &lt;exclude&gt;**/*.java&lt;/exclude&gt;
                  &lt;/excludes&gt;
              &lt;/resource&gt;
          &lt;/resources&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                  &lt;version&gt;3.3&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;source&gt;1.8&lt;/source&gt;
                      &lt;target&gt;1.8&lt;/target&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;artifactId&gt;maven-war-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.6&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;failOnMissingWebXml&gt;false&lt;/failOnMissingWebXml&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.seleniumhq.selenium&lt;/groupId&gt;
              &lt;artifactId&gt;selenium-java&lt;/artifactId&gt;
              &lt;version&gt;3.5.2&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.commons&lt;/groupId&gt;
              &lt;artifactId&gt;commons-lang3&lt;/artifactId&gt;
              &lt;version&gt;3.5&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.sun.xml.messaging.saaj&lt;/groupId&gt;
              &lt;artifactId&gt;saaj-impl&lt;/artifactId&gt;
              &lt;version&gt;1.3&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;javax.activation&lt;/groupId&gt;
              &lt;artifactId&gt;activation&lt;/artifactId&gt;
              &lt;version&gt;1.1&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;javax.mail&lt;/groupId&gt;
              &lt;artifactId&gt;mail&lt;/artifactId&gt;
              &lt;version&gt;1.4&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;javax.mail&lt;/groupId&gt;
              &lt;artifactId&gt;javax.mail-api&lt;/artifactId&gt;
              &lt;version&gt;1.5.1&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;ru.yandex.qatools.ashot&lt;/groupId&gt;
              &lt;artifactId&gt;ashot&lt;/artifactId&gt;
              &lt;version&gt;1.5.2&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.httpcomponents&lt;/groupId&gt;
              &lt;artifactId&gt;fluent-hc&lt;/artifactId&gt;
              &lt;version&gt;4.5.3&lt;/version&gt;
          &lt;/dependency&gt;
  
  
  
  
  
          &lt;dependency&gt;
              &lt;groupId&gt;com.google.apis&lt;/groupId&gt;
              &lt;artifactId&gt;google-api-services-sheets&lt;/artifactId&gt;
              &lt;version&gt;v4-rev520-1.23.0&lt;/version&gt;
              &lt;exclusions&gt;
                  &lt;exclusion&gt;
                      &lt;groupId&gt;com.fasterxml.jackson.core&lt;/groupId&gt;
                      &lt;artifactId&gt;jackson-core&lt;/artifactId&gt;
                  &lt;/exclusion&gt;
              &lt;/exclusions&gt;
          &lt;/dependency&gt;
  
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.geronimo.gshell.support&lt;/groupId&gt;
              &lt;artifactId&gt;gshell-io&lt;/artifactId&gt;
              &lt;version&gt;1.0-alpha-2&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;commons-io&lt;/groupId&gt;
              &lt;artifactId&gt;commons-io&lt;/artifactId&gt;
              &lt;version&gt;2.6&lt;/version&gt;
          &lt;/dependency&gt;
  
  
          &lt;dependency&gt;
              &lt;groupId&gt;com.amazonaws&lt;/groupId&gt;
              &lt;artifactId&gt;aws-java-sdk-s3&lt;/artifactId&gt;
              &lt;version&gt;1.11.358&lt;/version&gt;
          &lt;/dependency&gt;
  
  
      &lt;/dependencies&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p><strong>Note:</strong> I played around with many different versions of each dependency (this is the most recent version I tried) but they all lead to the same error.</p>