{"id":697,"date":"2014-09-30T23:34:46","date_gmt":"2014-10-01T04:34:46","guid":{"rendered":"http:\/\/tiemensfamily.com\/TimOnCS\/?p=697"},"modified":"2014-09-30T23:34:46","modified_gmt":"2014-10-01T04:34:46","slug":"amazon-sdk-broken-dependencies","status":"publish","type":"post","link":"https:\/\/tiemensfamily.com\/timoncs\/2014\/09\/30\/amazon-sdk-broken-dependencies\/","title":{"rendered":"Amazon SDK broken dependencies"},"content":{"rendered":"<p>If you have received this error message:<\/p>\n<blockquote><p>java.lang.IllegalStateException: Unsupported cookie spec: default<\/p><\/blockquote>\n<p>It is because Amazon made their SDK dependency look like this:<br \/>\n+&#8212; com.amazonaws:aws-java-sdk<br \/>\n|    +&#8212; org.apache.httpcomponents:httpclient:[4.1, 5.0) -&gt; 4.4-beta1<br \/>\n|    |    +&#8212; org.apache.httpcomponents:httpcore:4.4-beta1<\/p>\n<p>i.e. they made an open-ended statement that their SDK would work will all 4.x releases of httpclient.<\/p>\n<p>As of 4.4-beta1, their statement became false.  Somewhere down in the guts of httpclient, &#8220;default&#8221; is no longer a valid cookie specification, and now parts of the AWS SDK do not work.  <\/p>\n<p>See <a href=\"http:\/\/tiemensfamily.com\/TimOnCS\/2014\/06\/28\/computer-science-hard-things\/\">2014\/06\/28\/computer-science-hard-things\/<\/a> \u200efor a full essay on the problems with &#8220;dependency resolution&#8221;.  In this case, Amazon just messed up &#8211; there is no way any particular aws-java-sdk release can claim compatibility with an entire 4.x line of the httpclient library.<\/p>\n<p>The fix (at least in gradle; it should be similar in all build systems) is to exclude httpcomponents on the aws-java-sdk line, and then add a specific httpcomponents (e.g. 4.1 worked nicely for me, since presumably Amazon actually tested with that release before their release).  Since Amazon was &#8220;fuzzy&#8221; about their actual dependency requirements, you may have to try 4.2, 4.3, etc. to  make sure you get an actually-compatible-with-aws version of httpclient.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you have received this error message: java.lang.IllegalStateException: Unsupported cookie spec: default It is because Amazon made their SDK dependency look like this: +&#8212; com.amazonaws:aws-java-sdk | +&#8212; org.apache.httpcomponents:httpclient:[4.1, 5.0) -&gt; 4.4-beta1 | | +&#8212; org.apache.httpcomponents:httpcore:4.4-beta1 i.e. they made an open-ended &hellip; <a href=\"https:\/\/tiemensfamily.com\/timoncs\/2014\/09\/30\/amazon-sdk-broken-dependencies\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[5],"tags":[],"_links":{"self":[{"href":"https:\/\/tiemensfamily.com\/timoncs\/wp-json\/wp\/v2\/posts\/697"}],"collection":[{"href":"https:\/\/tiemensfamily.com\/timoncs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tiemensfamily.com\/timoncs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tiemensfamily.com\/timoncs\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/tiemensfamily.com\/timoncs\/wp-json\/wp\/v2\/comments?post=697"}],"version-history":[{"count":0,"href":"https:\/\/tiemensfamily.com\/timoncs\/wp-json\/wp\/v2\/posts\/697\/revisions"}],"wp:attachment":[{"href":"https:\/\/tiemensfamily.com\/timoncs\/wp-json\/wp\/v2\/media?parent=697"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tiemensfamily.com\/timoncs\/wp-json\/wp\/v2\/categories?post=697"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tiemensfamily.com\/timoncs\/wp-json\/wp\/v2\/tags?post=697"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}